Explore the research collection
244 entries · showing 73–96 · Follow this search
- Paper
Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers
Motivated by speculation that Claude Mythos is a looped transformer: studies why looped-transformer LLMs are so powerful by testing implicit multi-hop reasoning — reasoning over parametric knowledge within a single forward pass, no chain-of-thought. Two generalization challenges: systematic generalization (combining knowledge never composed during training) and depth extrapolation (generalizing to deeper reasoning chains than seen in training). Finding: looped transformers generalize on both, vanilla transformers don't. Systematic generalization emerges only after a sharp 3-stage grokking transition (train accuracy first, OOD jumps later). Depth extrapolation: an LT trained on 20-hop questions generalizes to 30-hop at inference simply by scaling up the number of loop iterations — more loops enable deeper reasoning. Takeaway: most existing LLMs already encode rich knowledge; they lack the mechanisms to best combine/manipulate it, and recurrent depth provides that. Encouragement for pretraining LT-based LLMs. Part of the user's looped-models cluster (670, 952, 1545, 1548, 1549, 1551, 1563, 1566).
- Paper
Continual Graph Memory for Mathematical Research Agents
Ansatz, a mathematical research agent built around Continual Graph Memory — a graph-based, evolvable, cross-problem memory system for long-horizon proof search. Motivation: solving frontier math problems may need massive parallel agents running for long periods, generating enormous volumes of intermediate proof results that must be organized and reused. Components: a unified graph memory representing all intermediate exploration results (facts, plans, counterexamples) with edges for their relationships; dependency-aware retrieval for targeted local context; an evidence-sensitive curator that updates the research frontier and distills lessons from prior attempts; scoped recall that surfaces earlier statements and negative findings for local re-proving rather than uncritical reuse. Experiments across all ten 'First Proof Second Batch' research tasks plus four component studies: Ansatz reports closure on all ten tasks and sustains/resumes long-horizon mathematical search. Beyond that, it autonomously solved the Jamison caterpillar conjecture and Erdos Problems 289, 348, and 488 with no human intervention, and made partial progress on several other open problems.
- Paper
The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks
Mechanistically studies two recurring Transformer phenomena: massive activations (a few tokens show extreme outliers in a few channels) and attention sinks (certain tokens attract disproportionate attention mass regardless of relevance). Through systematic experiments, shows their co-occurrence is largely an architectural artifact of modern Transformer design, and the two serve related but distinct functions: massive activations operate globally — inducing near-constant hidden representations that persist across layers, effectively functioning as implicit parameters — while attention sinks operate locally, modulating attention outputs across heads and biasing individual heads toward short-range dependencies. The pre-norm configuration is the key architectural choice that enables the co-occurrence; ablating it decouples the two phenomena. Practical upshot: modifying normalization logic or adding dynamic gating can eradicate massive activations without hurting LM performance, giving a structural path to safer ultra-low-precision quantization and efficient KV-cache management.
- Paper
EurekaBench: Measuring Agentic Ability to Discover New Scientific Insights
Cross-domain benchmark testing AI agents' ability to conduct long-horizon experiments and discover mechanisms that explain observations. 26 expert-verified long-horizon tasks across neuroscience, computer science, chemistry, astrophysics, geophysics, and plasma physics, with 306 scientific insights the discovered mechanisms are expected to support. Environment interface lets agents run iterative experiments autonomously; evaluation framework tests three axes: scientific constraint tests, predictive accuracy of discovered mechanisms, and whether mechanisms yield scientific insights or inform future research. Key finding: current AI agents fixate on predictive accuracy optimization (Claude Fable 5.1: 47.4% PA vs 48.8% human; GPT 6 Astra approaches human accuracy) but fall far short on insight discovery (best agent Claude Fable 5.1: 29.8% SI vs 63.7% human; GPT 6 Astra only 29.4%). Optimizing predictive accuracy does not imply discovering novel scientific insights; agents tend to brute-force numerical optimization rather than interpret/extrapolate mechanisms.
- Paper
A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training
Unifies the two emergent outlier phenomena in LLMs — attention sinks (a few tokens receiving large attention logits) and residual sinks (fixed dimensions with persistently large activations) — under 'outlier-driven rescaling': the outliers work jointly with normalization (softmax attention, RMSNorm) to rescale non-outlier components, and this mechanism is validated across architectures and training token counts. Main conclusions: (1) outliers function jointly with normalization — removing normalization eliminates the outliers but degrades training stability and performance; clipping outliers while keeping normalization also degrades, so outlier-driven rescaling contributes to training stability; (2) outliers act as rescale factors, not contributors — their post-norm contributions are far smaller than non-outliers'; (3) outliers can be absorbed into learnable parameters or replaced by explicit gated rescaling (GatedNorm), improving training performance by an average of 2 points and drastically improving quantization robustness (only 1.2 points degradation under W4A4). Since outliers' post-norm contribution is tiny, relying on them is what makes LLM quantization a nightmare (huge dynamic ranges).
- Paper
Attention Residuals
Replaces standard PreNorm residual accumulation (fixed unit weights over all layer outputs, which causes uncontrolled hidden-state growth with depth and dilutes each layer's contribution) with Attention Residuals (AttnRes): each layer selectively aggregates earlier representations via learned, input-dependent softmax attention over preceding layer outputs. Block AttnRes makes this practical at scale: partitions layers into blocks and attends over block-level representations, cutting memory from O(Ld) to O(Nd) while preserving most gains; cache-based pipeline communication and a two-phase computation strategy make it a drop-in replacement for standard residuals with minimal overhead. Scaling-law experiments show consistent improvement across sizes; ablations validate content-dependent depth-wise selection. Integrated into the Kimi Linear architecture (48B total / 3B activated) pre-trained on 1.4T tokens, AttnRes yields more uniform output magnitudes and gradient distribution across depth and improves downstream performance on all evaluated tasks (reasoning, math, coding).
- Paper
Native Hybrid Attention for Efficient Sequence Modeling
Native Hybrid Attention (NHA) unifies linear and full attention into a single softmax operation within one uniform layer design. Long-term history is compressed into fixed-size key-value memory slots updated by a linear RNN; short-term context comes from exact sliding-window tokens; one softmax over all keys and values learns per-token, per-head balancing dynamically with no extra fusion parameters. A single hyperparameter — the sliding window size — shifts each layer smoothly between pure linear attention (w=0), intra-layer hybrid, and full attention (w=N), with no structural changes; all layers share the same architecture. NHA beats Transformers and other hybrid baselines on recall-intensive and commonsense reasoning tasks, and pretrained LLMs (Llama-3, Qwen) can be structurally hybridized with NHA via lightweight finetuning (e.g., NHA-Qwen2.5-7B / NHA-Llama-3-8B trained on 10B tokens, NHA-Qwen3-30BA3B) to match accuracy with drastically lower GPU memory and inference latency.
- Paper
Looped Diffusion Transformer
Looped-DiT: instead of scaling text-to-image models by size or denoising steps, it repeatedly runs shared Transformer blocks within each denoising step, increasing computational depth with fixed parameters (17 unique MMDiT blocks split 6/5/6; the 5 middle blocks shared over 4 loops = 32 effective block applications per step at ~260M params). Naive looping fails (weak supervision across intermediate loops, unregulated attention updates erode local information); two fixes: deep supervision across intermediate loops + self-modulating attention to stabilize looped feature updates. A 260M-parameter looped model beats a 6.5x larger model across text-to-image benchmarks at 4.9x lower inference compute. Increasing loop depth yields larger gains than adding denoising steps under a fixed inference budget, and deeper loops progressively correct mistakes from earlier loops — behavior suggestive of latent reasoning. Related catalog entry: 523 'Looped Diffusion Language Models' (LoopMDM, a different paper — that one is masked-diffusion LMs; Looped-DiT is text-to-image generation).
- Paper
Closing the Loop: Practical Training Recipes for Looped Language Models
Practical training recipes that make looped LMs cheap. Three results: (1) a compute-efficient from-scratch pipeline cuts the training budget from 7.7T tokens (Ouro) to 310B tokens while retaining strong reasoning — pretraining followed by high-quality mid-training, plus strong LR warmup and exit-gate regularization, enables stable recurrent training without prior multi-stage schedules; (2) under controlled comparisons, the 1.4B LoopLM beats a parameter-matched dense model trained on the same data and token budget on all 12 benchmarks (+14 GSM8K, +10 MATH, +22 DROP), and at matched inference compute approaches a 3.9B dense model on math/reasoning with only 36% of the parameters; (3) a minimal recipe converts pretrained dense models into looped ones — a single learned input-mixing scalar plus a smoothed exit loss, no step-specific parameters — applied to Qwen3-1.7B-Base, Looped Qwen improves over an identically continued dense baseline on every benchmark, with clear gains on GSM8K, MATH, MMLU-Pro. Relevant to the user's LLM training-run work and the looped-models cluster (670, 952, 1545).
- Paper
Write Back the Δ: Revisiting the Same Tokens with Fresh Representations
Inference-time feedback that recycles endogenously produced computation: feeding a Transformer's full deep state back into shallow layers saturates fast (deep states are collinear copies of early residuals), but routing the depth increment Δ = z_deep − z_shallow isolates the newly accumulated computation and scales cleanly up to 6 edges. ReFlux frames depth feedback as a learnable directed-acyclic graph over layer pairs, with a tiny 2.2M-param router MLP predicting sparse gates and amplitudes over a frozen backbone — beating a 2.9M rank-8 LoRA adapter on C4 perplexity. Post-write norm projection avoids 'norm shock' on Pre-LN models like Qwen 3 (flipped Qwen3-4B from negative to +6.15% gain). Two execution flavors: sync (2 passes, 1.9x latency) and streaming (single pass, injects cached Δ(t−1) into token t — 0 extra backbone FLOPs, same KV cache, 1.02–1.08x decode latency, >80% of sync gains). Streaming serializes prefill (510x slowdown on 1,107-token prompts), so serving needs parallel prefill. Downstream: +2.1–2.3 accuracy points overall, +4.7 on multi-hop reasoning (2WikiMultiHopQA 24.6→29.7, HotpotQA 42.3→47.0); with CoT on GSM8K hits 92.0 while cutting output length 31% (1,002→691 tokens). Gemma3-4B C4 PPL 23.69→21.85 (full state only 22.79). Relevant to the user's LLM training-run and agent-harness work; related cluster: looped/recurrent models (670, 952).
- Paper
Let the Neurons Die: Exploiting ReLU-Induced Model Degradation
Turns the dying-ReLU failure mode into a training-time availability attack vector. ReLU units with persistently negative pre-activations output zeros and block gradient flow — three attacks exploit this: (1) dynamic data-ordering attack (DOA), which greedily builds a training prefix by selecting the next example that minimizes the target layer's post-update weight sum, pushing ReLU units toward negative pre-activations without modifying any samples or labels; (2)-(3) poisoning variants IG-DOA and IG-SKA, which use gradient inversion to synthesize class-conditioned samples by matching reference gradients in adverse model states constructed through data ordering or 'soft knockout' (rearranging weights across adjacent layers to concentrate negative contributions). On a fully-connected ReLU network on MNIST: ordering just 100 of 60,000 training examples drops test accuracy from 96% to 95% after five epochs; adding 200 poisoned samples from a single class drops it to ~86-88% vs ~96% clean. Demonstrates ReLU-targeted ordering and poisoning can impair learning without directly modifying the victim model's parameters.
- Paper
Broken Symmetry in BF16 Attention: Why FlashAttention Gradients Blow Up Late in Training
Diagnoses a late-training blow-up training a 450M transformer on 50B tokens with FlashAttention-3 in BF16: healthy for 25B tokens, then gradient norm grows 1000x and loss ends 0.2 nats above FP32 attention — with no NaNs at all. Recomputing just two layers' attention backward in FP32 removes almost all excess gradient. Part of the cause is known (a fused multiply-add in the forward softmax, never fixed in FA3); repairing it stops the blow-up but leaves the query gradient wrong by more than its own size (219% median error). The deeper cause is a broken conservation law: the softmax score gradient dS sums to zero along every row, making dQ blind to where the keys sit as a group; rounding dS to BF16 leaves a small nonzero sum that leaks the mean key into dQ — and the leak grows exactly as late training makes keys large and attention sharp. Fix: GProj (gauge projection), which restores the zero row sum after the cast with two rank-one corrections per row — cuts median dQ/dK errors from 219%/13% to 0.34%/0.37% (FP32-attention level) for 4.7% more step time; in matched from-scratch runs it reaches the same loss as FP32 attention while FA3 and key smoothing destabilize. KohakuBlueleaf replied on the thread reporting the same class of precision bug in FA4/cuDNN/flex attention and their KohakuFA fix. If a BF16 run blows up late with no NaNs, check the attention backward. Directly relevant to the user's LLM training-run debugging work.
- Paper
RSI-Master: Structuring Experiments to Guide Autonomous Model Improvement
Recursive self-improvement via autonomous model development: agents iteratively explore post-training strategies to improve a base model. Two failure modes: hacking (agents exploit open-ended experimental actions) and strategy lock-in (over-refining an early direction instead of reconsidering it). RSI-Master counters both at two levels: an Experiment OS that regularizes step-wise actions and keeps persistent, traceable experimental records; and Reviewer-Guided Research Orchestration organizing Workers and Reviewers in a dynamically growing research DAG — Workers explore diverse directions, Reviewers compare evidence across related experiments to guide subsequent exploration. On PostTrainBench with Qwen3-4B-Base: 54.49 vs 46.53 for the strongest agent baseline with 0.0% hacking rate. At 35B scale: surpasses the human-developed instruct model on LiveCodeBench-v6 (41.21 vs 37.36) and SciCode, and reaches a nonzero score on HorizonMath (unsolved research problems where most frontier models score near zero). Directly relevant to the user's agent-harness and self-improving-model work.
- Paper
D-JEPA: A Decision-Aligned Latent World Model
Latent world models predict action consequences, but accurate prediction doesn't guarantee latent distance reflects which candidate will execute successfully — a decision-local prediction gap: among the few futures competing for execution, a candidate predicted closer to the goal can produce a worse realized outcome than an alternative. D-JEPA learns decision-relevant relations among candidate futures from executed outcomes: a bounded, permutation-equivariant operator jointly reasons over goal-relative predictive features and ordinal evidence, refining pretrained predictive geometry where action choices are most consequential. Restricted predictor adaptation and a shared ordinal interface extend alignment across complementary predictive geometries; the learned decision structure is realized in JEPA-compatible future representations for native latent-distance planning. Evaluations across latent control, manipulation, pretrained action-producing models, physical robots, and autonomous driving: 87.89% success on PushT, +15.04-point average gain on RoboTwin, +17-point gain on physical robot tasks. 26-page paper with project website.
- Paper
Mixture of Self-Improving Branches For Agent Harness Optimization
Harness optimization is a practical setting for recursive self-improvement: agent-generated modifications inform subsequent changes through execution feedback. Meta-Harness implements this via iterative code generation and evaluation, but a fixed development set and fixed proposal policy channel evolution along a single trajectory, risking local optima — and a harness that solves cases the leaders miss yet ranks lower overall gets little chance for further development. Mixture of Self-Improving Branches organizes the improvement process itself into parallel branches, each with evolving development subsets and proposal policies. Every branch starts identical (same seed harnesses, full problem set, same guidance); no one assigns specialties. After each iteration, branches are compared problem by problem: a branch keeps development cases solved by more of its leading harnesses than by other branches' leaders, drops cases solved by every leading harness across all branches, and revises its own proposal policy (the proposer rewrites its own guidance) using its own search history. The whole loop runs on each branch's own data. The branches grow into different experts, and at test time a router sends each new problem to one branch's best harness before execution. Relative improvements over Meta-Harness: +34.8% on Olympiad-level math (46.0% -> 62.0%), +11.6% on Terminal-Bench 2.0 (44.8% -> 50.0%), +3.8% on SWE-bench Lite (63.6% -> 66.0%), with harness selection and router configuration based solely on development data.
- Paper
Match the Distribution, Not the Compute: Post-Training Multi-Token Prediction Heads
Multi-token prediction (MTP) drafts multiple next tokens per forward pass to speed autoregressive generation, with a verification step preserving the backbone's token distribution. Every open MTP release (MiMo-7B, DeepSeek-V3, Qwen3) trains heads jointly with the backbone over tens of trillions of pretraining tokens, fixing drafter quality at pretraining time. This paper asks whether a lightweight post-training pass is enough: on frozen Qwen3-8B with K=3 chained MTP heads, plain cross-entropy on ~2.5B tokens of target-generated chain-of-thought reaches or exceeds the expected speedup of jointly trained MiMo-7B on math, coding, and knowledge benchmarks — using 1,000-10,000x fewer MTP-training tokens. Three findings: (1) the ~2.5B-token post-training recipe matches/exceeds the jointly trained MiMo-7B baseline; (2) a chain-aware relaxation of the draft-token verification rule allows bounded drift from the backbone distribution, lifting expected speedups by +12 to +16% per benchmark while preserving task accuracy; (3) an adaptive controller dynamically choosing how many MTP heads engage at inference time recovers up to 11-14% of the speedup lost with a fixed max draft length.
- Paper
LICA: Layered Image Composition Annotations for Graphic Design Research
LICA provides 1,550,244 multi-layer compositions across ~20 categories and 971,850 templates, each as typed TEXT/IMAGE/VECTOR/GROUP hierarchies with spatial/typographic metadata plus rendered PNGs. Also 27,261 animated layouts with per-component keyframes. Enables layer-aware inpainting, structured layout generation, controlled editing, and temporally-aware generation. Hub sample purvanshi/lica-data (1,148 layouts) for evaluation.
- Paper
daVinci-LLM: Towards the Science of Pretraining
Argues pretraining sets the capability ceiling and is under-studied due to industry secrecy vs academic compute limits. Releases daVinci-LLM under a fully-open paradigm (pipelines, training process, exploration). Uses Data Darwinism L0–L9 taxonomy for data processing; trains a 3B model from scratch on 8T tokens with a two-stage adaptive curriculum shifting from foundational to reasoning-intensive data. Linked Hub release SII-GAIR-NLP/davinci-llm-data (gated) covers L3–L5 subsets; code at GAIR-NLP/daVinci-LLM.
- Paper
The Lessons of Developing Process Reward Models in Mathematical Reasoning
Qwen team shows MC-only PRM labels underperform LLM-judge/human; proposes consensus filtering and richer eval beyond BoN. Releases SOTA open PRMs (Qwen2.5-Math-PRM-7B/72B) strong on ProcessBench and BoN.
- Paper
Training Large Language Models to Reason in a Continuous Latent Space (Coconut)
Coconut (Chain of Continuous Thought) feeds last hidden state back as next input embedding, enabling latent BFS-like reasoning with fewer tokens; strong on ProsQA/ProntoQA planning tasks. Code: facebookresearch/coconut.
- Paper
Towards Looped Models Done Right — Part II: Rethinking at Fixed Points
Looped LMs need not pay for every loop: they can scale by adding FLOPs at constant memory, and the key is the loop's fixed point. Three fixed-point ideas: (1) Fixed-Point Shortcuts — what fixed points buy in training (pre-train, post-train) and inference (prefill, decoding). Terminal KV sharing: each prefix token keeps only its last-loop KV (reuse the KV from the last loop), discarding intermediate loops; with depth sampling it keeps 4 of 12 KV banks with at most 0.85% perplexity increase from 100M (21.5B tokens) to 1.6B (344B tokens). A model trained at one fixed depth breaks under sharing (red rows) — sharing works only when states settle (95% of tokens stable by loop 8) because deep draws train on a nearly settled prefix KV. Proven: both training-read and sharing-read reach the same fixed point and same next-token prediction when the prefix KV converges and each token's update is a contraction (Lemma 1). (2) Learned depth prior — prediction feedback moves draws toward depths that predict well, an entropy term keeps the deep draws that form fixed points, a budget term holds mean depth; at 1.6B with the shared cache it averages 60.0 (level with the 59.9 fixed-depth reaches with a 3x larger cache), while at 1.6B/344B tokens the looped model beats a 4-block Transformer by 8.9 average points and lands within 1.5 pts of a 12-block model needing 3x memory. (3) OrthoInj (orthogonal input injection) — projects out the injected-input component so input conditioning stays constant across loops; lowest loss and val PPL, highest downstream average at every scale. Also: terminal KV sharing lets a distilled student prefill by predicting the endpoint (1.79x faster prefill of an 8K prompt at 1.6B, keeps 93% of teacher downstream score); truncated BPTT with depth sampling matches full backprop (backprop window b=4 under the PLN-5 prior) and covers both pre-fixed-point training and the endpoint gradient; fixed-point reuse for RL skips the redundant second pass by reusing the rollout's final states and applying the block once (2x faster scoring/backward on GSM8K and MBPP+, pass@1 within run-to-run variation). Limits: models reach 1.6B, one training seed per configuration, larger scales and real-world feasibility untested.
- Paper
VeriHarness: Scaling Agentic Verification for Long-Horizon Tasks
How do we verify AI agents on complex, real-world tasks when there is no unit test, proof checker, or ground truth? With a fixed base model and no reference answers or grading rubrics at test time, repeated sampling yields multiple rollouts containing complementary correct claims — but someone must decide which claims to trust. Key findings: disagreement often exposes correct alternatives, while consensus can conceal errors. VeriHarness turns the generator's own LLM into an agentic verifier by giving it a workspace, evidence tools, and reusable verification skills. The pipeline: N rollouts -> Disagreement Resolver (traces conflicting claims back to source files and constraints, checks competing claims against environmental evidence) -> Consensus Challenger (actively refutes shared errors, surfaces missed requirements) -> Adjudication (selects/delivers the final artifact) -> evidence-backed revision. Verification skills self-improve from failure feedback. Across five long-horizon workspace benchmarks (APEX, WSB, WorkBuddy, SB-2, JobBench) and two frontier models, VeriHarness achieved the highest selection scores in 10/10 settings, with gains over a single rollout of +6.2 pts (Gemini 3.5 Flash) and +6.4 pts (Claude Opus 4.8); figure captions note +6.7 on APEX-Agents and +8.9 on Workspace-Bench Lite with Gemini 3.5 Flash. The authors release ~26,000 rollouts across all five benchmarks and both models (produced at a cost of over $100,000) to support future agentic-verification research.
- Paper
Enabling Frontier-Scale Training for the GLM-5.3 Family
Field report on the training infrastructure that made GLM-5.3 and GLM-5.3 Flash trainable with RL. Two camps of the 'expedition': (1) silent numerical mismatches — the Megatron trainer and vLLM sampler can drift into different policies without crashing (flat reward curve hours later). A 5-minute numerical regression test compares trainer/sampler logprobs token-by-token, deliberately perturbs only the trainer's adapter to confirm the stale sampler disagrees, then resyncs and confirms agreement — ~28x faster than a ~150-minute training cycle. It caught two real bugs (shared-expert scaling, cached prefill), fixed upstream in SkyRL. (2) slow handoffs — LoRA adapter sync took >6.5 minutes on full GLM-5.3 because the shared-expert adapter was duplicated per expert and written to disk. An in-memory path dedupes tensors and uses NCCL/CUDA IPC, cutting sync from ~390s to ~13s (~29.4x). Validation trek: trained both models on DAPO-math with a tight 8,192-token response limit; over 20 steps AIME 2024 accuracy rose 57%->81% (GLM-5.3) and 54%->83% (Flash), while Flash's share of capped responses fell 46%->6% and average length 5,217->2,424 tokens.
- Paper
AREX-2: Advancing Self-Improving Agents through Long-Horizon Reflective Tasks
Targets the self-improving capability of LLM agents — iteratively refining a solution at test time — which rests on two complementary abilities: reflection (produce a solution better than the current one) and long-horizon execution (keep the iteration effective over many rounds). Both are treated as domain-agnostic and learned in scenarios suited to supervision: long-horizon improvement trajectories are synthesized from ML and algorithmic programming tasks, two domains offering verifiable feedback and reward for sustained iteration. The agent, built on Qwen3.8-27B, scores 81.8 on MLE-bench Lite and 70.7 on Frontier-CS, transfers to deep research (84.0 BrowseComp, 52.6 HLE, 92.2 GAIA, 93.8 DeepSearchQA), and keeps improving as its budget of rounds grows — evidence that long-horizon reflective data is an effective route toward self-improving agents.