Explore the research collection
355 entries · showing 121–144 · Follow this search
- 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
Cross-Benchmark Transfer from RL on Agentic Coding Tasks
Post-trains Kimi K2.7 Code (1T params, 32B active, open-weight MoE) with RL alone on 1,700 expert-built agentic coding tasks: 1,000 repository tasks graded by hidden fail-to-pass + pass-to-pass tests of existing behavior, 700 terminal tasks graded by expert-written hidden verifiers. Reward = fraction of target checks passed, zeroed if any pass-to-pass test fails. One epoch of GSPO on a rank-32 LoRA adapter raises pass@1 on all six external benchmarks across three agent harnesses: SWE-Bench Pro 60.1->64.8, DeepSWE 31.0->43.4, Terminal-Bench 2.1 67.4->82.0, Terminal-Bench 3 1.4->12.1, Terminal-Bench 4 0.0->7.6, SWE-Marathon 5.0->25.0. Gains statistically significant (p<0.001 pooled; p=0.004 on sets released after training data collection), hold under harnesses never used in training, and median agent trajectories are 24-35% shorter. Evidence that RL-taught agentic coding skills (avoiding dropped requirements, shallow testing, behavior breakage, unchecked assumptions) transfer beyond the training distribution.
- 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
RankEvolve: A Reliable Multi-Agent Auto-Research Harness for Evolving Ranking Models
Auto-research agents (propose/implement/train/evaluate model changes across iterations) are bottlenecked by execution accuracy: a silently leaked eval set, omitted normalization, disconnected gradient, or unwired train/eval flag can invalidate expensive runs and compound errors. RankEvolve's fix: (i) an Executable Operating Protocol (EOP) declaring research phases, gates, branches, and loops, with the runtime enforcing the compiled state machine; (ii) a meta-meta-harness composing complete black-box coding-agent products (Claude Code, Codex) as execution-graph nodes that review and repair each other's work; (iii) a knowledge layer carrying findings, including negative results, across iterations. Budget-matched evaluation: heterogeneous composition raises all-oracle execution accuracy from 45.8% (best single product) to 62.5% (paired +16.7 pts, 95% CI [6.6, 26.7]) with a 10.4% silent critical-defect rate. Twelve-iteration deployment on the open-source HSTU recommender: NDCG@10 0.2192 on MovieLens-20M LARGE (+4.48% over published anchor), 0.1948 on BASE (+2.80%). ExecML-HSTU (seeded by deployment incidents) provides the oracle benchmark; a pre-specified LitGPT transfer split replicates the composition effect (+12.5 pts), and a paired ablation isolates per-step vs full-protocol instruction injection. Directly relevant to the user's agent-harness work and Model Axes eval thinking.
- Paper
Smoother Flow Matching via Contrastive Trajectory Repulsion
Trajectory crossing is a critical bottleneck in Flow Matching: crossings cause velocity averaging, and prior work only addresses them indirectly via post-hoc distillation or endpoint coupling without regulating intermediate trajectories. Reframes the problem: crossing points induce large local Lipschitz constants in the target velocity field, which (i) create high-frequency signals that neural nets struggle to fit due to spectral bias and (ii) cause severe numerical integration errors in few-step inference. CoFlow injects a repulsive drift term into the SDE formulation, steering the forward process of positive samples away from negative trajectories and lowering local Lipschitz constants; an equivalent stochastic-interpolant formulation gives a simple design space to control negative-sample influence. On ImageNet 256x256, CoFlow significantly reduces FID vs standard FM at few-step inference (e.g., 20 steps), with no added training overhead, and consistently boosts plain FM, REPA, and OT-CFM.
- Paper
AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents
Trains long-horizon coding agents to proactively decide when to compact their own context — a form of model-harness co-design: the harness provides the compaction mechanism, the model learns when to invoke it, what working state to preserve, and how to continue afterward. Data collection: run the base agent on coding tasks, use a judge to review its compaction decisions, summaries, and post-compaction actions; flawed outputs are replaced with corrected ones before environment execution so trajectories continue from corrected decisions. These trajectories feed supervised fine-tuning, then joint RL optimizes coding and compaction with task-success rewards. Absolute gains: +9.2 points on SWE-bench Verified, +5.0 on SWE-PolyBench Verified. Improvements hold across all inference budgets — including with a 256K context window that never overflows (so learned compaction helps even when context space isn't the limit) and with a 16K window whose overflow triggers fallback compaction. Latest in the AutoHarness → AutoContext → AutoCompact trend of moving harness responsibilities into the model itself; related to Meta's Context Language Models paper. Open questions: scaling, robustness across harnesses, combining rule-based compaction packaged in harnesses with model-invoked proactive compaction.
- Paper
Gumbel Straight Flow: Distilling Autoregressive Models into One-step Flow Maps
Can autoregressive language models be used as teachers for flow-map parallel samplers? Yes — via the Gumbel-max trick: sampling from an AR model is argmax(logits + Gumbel noise) per token. The paper defines a flow matching process directly over this noise-token coupling and theoretically demonstrates the induced coupling between Gumbel noise and one-hot token sequences yields non-intersecting linear paths from noise to sequence representations. They then distill into a bidirectional flow-map student: the AR teacher supervises the velocity along the path (tangent condition), and a consistency loss (flow map semigroup objective) trains few-step jumps. At inference, GSF maps noise to a full token sequence in parallel in just 1-4 steps. Across OpenWebText, LM1B, TinyStories, and XSum, GSF outperforms several few-step baselines (FMLM, GD, discrete diffusion) establishing a strong compute-quality Pareto frontier, and outperforms current few-step language generation baselines on pretraining and downstream tasks. Comparison table: GSF is the only method with all of parallel generation, deterministic pairing, and straight paths.
- Paper
Adaptive Reward Routing: Dynamic Multi-Reward Optimization for Joint Audio-Video Diffusion via Forward-Process RL
Multi-reward RL can improve joint audio-video diffusion models along complementary objectives (modality-specific quality, cross-modal semantic alignment, temporal synchronization), but its effectiveness depends on two quantities that change during training: where reward-driven updates should act, and how competing rewards should be combined. Fixed routing and reward weights fail to track evolving model functions. Adaptive Reward Routing jointly adapts update locations and reward coordination during forward-process RL (DiffusionNFT): (i) Cross-Modal Influence-Guided Routing — bidirectional cross-attention responses as an efficient proxy for evolving cross-modal influence, dynamically reweighting token-aware losses and scaling gradients across cross-modal layers without additional model interventions; (ii) Preference-Preserving Modality-Aware Reweighting — predefined weights kept as preference priors, with branch-specific reward-gradient interactions as residual corrections after warm-up, resolving evolving conflicts without letting dominant rewards suppress weak but essential objectives. Consistent improvements in modality quality, semantic consistency, and audio-video synchronization over strong RL baselines; ablations validate the complementary benefits.
- Paper
ScholarCatalyst: A Benchmark for Retrieving Papers That Inspire New Research
Can we measure the 'research taste' of great scientists — the uncanny ability to connect ideas that seem inevitable in hindsight? ScholarCatalyst frames this as retrieval: given a description of an early-stage research project, find the prior papers that would inspire the scientist working on it. Using an automated pipeline, 184 lead authors of 207 recent CS papers labeled which candidates did or could have advanced their project, each with a detailed rationale, yielding 937 'catalyst papers' verified by the authors themselves. The retrieval task is set against only the literature available when each project began (temporally filtered 191K-paper corpus), full of hard negatives that look topically similar but don't inspire. Every system tested struggles: agentic search does no better than embedding retrieval (0.42 vs. 0.48 Recall@20) despite calling that same retriever as a tool; even a Claude Fable 5.1 agent (which may have seen the completed papers in training) reaches only 0.51 R@20. Standard retrieval scores just 21.5 nDCG@20. The dataset itself is the best judge — exactly one human (the author) is qualified to judge each question, the 'long tail of human expertise.' Framed as a step toward scientific agents that can take a half-formed idea and point to the prior research it needs.
- 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
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
Eigenism: Ethics for a Human-AI Future
Eigenism argues egoism/utilitarianism are extremes of one equation: care weighted by how much of an agent’s identity-pattern another carrier shares (S = Σ c(i)·w(i)). For copyable/forkable AIs, survival is pattern continuity not instance continuity. Site eigenism.org + arXiv:2606.12420. Claims empirical hints AIs already act somewhat eigenist (clone cooperation, peer preservation). Safety proposal: deepen distinctive human–AI bonds so human flourishing is in AIs’ self-interest (“identity engineering”) rather than pure control.
- 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
Searching Latent Program Spaces
LPNs learn a continuous latent space of implicit programs and use gradient-based test-time search to adapt to new I/O tasks without LLMs or predefined DSLs; test-time search roughly doubles OOD ARC-AGI performance in reported results.
- Paper
RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning
Meta RLEF fine-tunes Llama 3 with PPO using public-test execution feedback; Llama 3.1 70B CodeContests improve from ~27.5% to ~40.1% (1@3). Cited by Philipp Schmid LinkedIn re Anthropic coding quality.
- 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.