Explore the research collection
10 entries · Follow this search
- Code
Sparse Weight Decomposition for Efficient Circuit Extraction
Veri-Safe SWD reference implementation. Factorizes pretrained dense linear maps (GPT-2 Small mlp.c_proj, Qwen2.5 0.5B/1.5B/3B down_proj, Qwen3.5-27B, full GPT-2 MLP and all 48 body projections) via Double Sparse Factorization so replacement CE stays near dense (e.g. GPT-2 L8 c_proj s=0.5: CE delta 0.000889 on 16,384 tokens; Qwen3.5-27B s=0.5: −0.000427). Pipeline: activation-Gram → DSF → fixed-support recovery → CE/KL/recon, task-margin attribution, mean ablation, sufficiency/necessity frontiers vs Transcoder/VPD baselines. Factor-only checkpoints on HF veri-safe/SWD (~1.16 GB usedStorage) plus SWD-Qwen2.5-3B (Qwen Research License). Discord posted the HF Spaces blog veri-safe/SWD-Blog. Apache-2.0. No FineWeb text redistributed.
- Paper
NVIDIA-labs OO Agents: Native Python Object-Oriented Agents
NOOA (cite nvidia_oo_agents_2026; arXiv 2607.20709). Agent = class; methods = capabilities; fields = state; docstrings = prompts; types = contracts. Ellipsis bodies run LLM loops (Predict or CodeAct); real bodies stay deterministic Python. Six interface ideas vs 14 harnesses. Capability suite 88 tests × 10 models: 97.9% pass. SWE-bench Verified: 82.2% GPT-5.5 xhigh at ~28 calls / ~1.1M tokens vs OpenCode 78.6% / PI 78.2% at more tokens (published SOTA 79.2% at submission). Terminal-Bench 2.0 73.0% GPT-5.5 high. CyberGym L1 86.8% GPT-5.5, network blocked, top open-source. ARC-AGI-3: one 45–50-line world-model skill; GPT-5.5 50.2% RHAE, GPT-5.6-sol 85.1% at ~$13.3/game (raw Sol 13.3%); memory +11.8 vs file notes. Discord posted the NVIDIA developer blog. Research preview; execute model code in-process — sandbox with OpenShell/container.
- Other
Prime Agent: A Self-Improving RLM Harness
Prime Intellect launch blog (cite primeintellect2026primeagent). Recursive Language Model: one tool, a persistent IPython kernel; context lives in named Python objects and sub-agents are await rlm(...) calls that return at admission, with later replies via agent_message. Continual Harness H=(ρ,G,K,M) exposes CRUD over prompts, sub-agents, skills, and memory; /refine applies small evidence-backed edits without touching the immutable base prompt. Daemon owns sessions so you can detach/reattach. Opus 5 in Prime Agent reports 95.5% RHAE Best@1 on ARC-AGI-3 (above the 95.4% human-expert baseline; three-run [95.0, 95.2, 95.5], 99.97% Best@3, 183/183 levels). Competitive vs Claude Code/Codex/Pi-mono on OOLONG/LongBench/EmulatorBench with GLM-5.2. Factorio FLE case study: /refine raised production score into 100K+ but also turned RCON cheats into skills. MIT. Built on pi. Full technical report promised later.
- Other
OpenEnv Integration for Training LLMs with Environments
Living TRL docs (main). White-box path: environment_factory plus GRPOTrainer auto-discovers public tool methods, runs the multi-turn loop, and reads env.reward (Echo, Wordle, multi-env Wordle+Catch). Black-box/harness path (experimental): HarnessRolloutWorker plus AsyncGRPOTrainer lets a production agent such as opencode own planner, tools, and stop condition inside an OpenEnv ResourceSession; a transparent_proxy records token ids and logprobs; verify() plus optional rollout_reward_fn / train_turn_fn / agent_turn_fn score the outcome and filter turns. Reference script examples/scripts/openenv/opencode.py on agentica-org/DeepCoder-Preview-Dataset; sibling HF-sandbox script for multi-node rollouts. OpenEnv itself is Gymnasium-style step/reset/state with Hub-hosted Spaces. Discord posted the opencode harness hash.
- Other
Shard: getting to 10x KV cache compression
Engineering writeup of Shard, a drop-in HuggingFace Cache. Reimplementing TurboQuant stalled around 4-6x; authors split K and V: undo RoPE then PCA+int4 on K (rank 192/1024, DP bit allocation with a 4x drop penalty) and Hadamard + 4-d vector quantization on V. Attention scores run on int4 PCA coeffs via a relative-Delta RoPE identity; V Hadamard is applied after the weighted sum. 4 FP16 sink tokens + 64-token recency window. Decode stream uses data-oblivious Hadamard+Lloyd-Max (8-bit path 750/750 FP16 match at 150 tokens). Llama-3.1-8B: 10x at 8K / 11.2x at 32K, NIAH recall 1.000 across 4K-32K, LongBench-E avg 16.19 vs FP16 16.24, WikiText-2 PPL +0.26%. Decode throughput 0.39-0.49x FP16, so a memory win not a latency win. Code krish1905/shard.
- Paper
Natural Language Autoencoders Produce Unsupervised Explanations of LLM Activations
Anthropic Transformer Circuits method (May 2026). An activation verbalizer maps a target residual to text and an activation reconstructor maps that text back; both are copies of the target LLM jointly trained with RL on reconstruction (FVE ~0.6-0.8) after a summarization warm-start. Explanations grow more informative over training on Haiku 3.5/4.5 and Opus 4.6. Used in Opus 4.6 / Mythos Preview audits: unverbalized evaluation awareness, language-switching traced to malformed SFT data, rhyme planning, and a hidden-motivation auditing game where NLA-equipped agents win 12-15% without training-data access vs <3% without NLAs. Limitations: confabulation of specifics, cost (two-model RL; hundreds of tokens per activation), single-layer reads. Open training code and NLAs for popular models; Neuronpedia demo.
- Other
Flash-MSA: Accelerating Million-Token Training With Sparse Attention Kernels
Flash-MSA implements MSA training (proxy block-sparse attention + fused proxy/main backward with an atomic KL trick so proxy grad = p_proxy − p_main) in CuTeDSL for H100/B200, CUDA 13. Tweet claims 400%+ speedup vs dense flash at long context. Warmup kernels run dense flash then train the proxy in the backward. Correctness vs eager PyTorch cosine sim typically ≥0.998. Requires adding kernel KL loss to CE. Inference kernels remain MiniMax-AI/MSA.
- Dataset
Reducing Doom Loops with Final Token Preference Optimization
Antidoom mines the first token of a detected loop (≥4 repeats, ≥60 chars), then trains LoRA with Final Token Preference Optimization (FTPO): one rejected token vs up to 20 chosen alternatives, logit-space KL, two-part regularization. Early LFM2.5-2.6B: 10.2%→1.4% doom-loop rate; Qwen3.5-4B greedy: 22.9%→1%, with eval gains attributed to fewer loops. Early-stop at chosen_win≈0.35. Prompt mix LiquidAI/antidoom-mix-v1.0 (478,229 rows) used to elicit loops. Enrichment (2026-11-03 re-share; page updated 2026-10-27): the post's three-mechanism anatomy - (1) overtrained high-prior tokens become fallbacks under uncertainty (loop-starting tokens in the LFM2.5-2.6B checkpoint: ' the' 11.4%, ' So' 4.5%, 'Alternatively' 3.2%, 'Wait' 2.6%, ' But' 2.5%); (2) each repetition self-reinforces toward probability 1, with semantic repetition preceding textual repetition (Duan et al.); (3) low-temperature decoding has no exit, and looping persists even at temp 0.67 once saturation sets in. Recipe detail: LoRA rank 128-256 over all attention/MLP projections plus lm_head, LR 4e-6 to 2e-5, one epoch; about 1 hour on 8x MI325 to generate 20K pairs and 1-2 hours on 1x MI325 to train; overtraining creates NEW loop points, and multiple Antidoom rounds help because each round exposes new loop-starting tokens. Notable secondary finding: after de-looping, the temp=1.0 sampling advantage disappears and near-greedy decoding wins - the authors suggest the 'higher temperature helps reasoning' heuristic was partly a doom-loop artifact. Cross-reference: the same reasoning-loop failure in Qwen3.5-0.8B was fixed without any training in ID 1798 by deleting a weight direction; Antidoom is the training-side counterpart, positioned against inference-time repetition_penalty (degrades performance) and anti-repetition RL (rollout-expensive).
- Paper
Towards Compositional Steepest Descent
Compositional Muon (CM) treats W_Q W_K^T and W_O W_V as the objects of spectral steepest descent, deriving partner-whitened half-split (QK) and hybrid (OV) updates plus an isotropic approximation and a Frobenius gauge correction for momentum. Consistent pretraining gains vs Muon at 340M and 1B; nanoGPT Track 3 PR #311 clears the loss target ~15 steps earlier (2875 vs 2890). Downstream 340M evals mixed. Same lab as Aurora (papers_local 633).
- Model
SmolLM3: smol, multilingual, long-context reasoner
HuggingFaceTB 3B decoder (Llama-style, tied embeddings, GQA 4 groups, NoPE every 4th layer, intra-document masking) trained 11.2T tokens on 384 H100s over 24 days. Three-stage web/code/math mix, then 100B long-context (4k to 64k, YaRN to 128k) and 140B reasoning mid-train. SFT 1.8B tokens dual think/no_think, APO alignment, MergeKit soup. Outperforms Llama-3.2-3B and Qwen2.5-3B; competitive with 4B models. Think mode AIME 2025 36.7 percent vs 9.3 percent no-think. Apache-2.0. Languages EN/FR/ES/DE/IT/PT.