Explore the research collection
219 entries · showing 49–72 · Follow this search
- Paper
MIMESIS: Learning User Simulators as Training Environments for Interactive Agents
MIMESIS is a purpose-built 9B user simulator (Qwen3.5 backbone) for training and evaluating interactive agents. Agent RL setups normally let an off-the-shelf assistant LLM play the user, but those are overly cooperative, explicit, and behaviorally homogeneous: on tau-bench a fixed GPT-5.5 agent succeeds 63.6% of the time with real users, but 82.4-84.4% when frontier API models (GPT-5.5, Gemini-3.8-Flash, Claude-Opus-5) play the user - while pretrained Qwen3.5 models make it harder (-14.9/-16.0 pp). MIMESIS-9B hits 66.1% (+2.4 pp), far closer to real users. Training is two-stage: (1) mid-training on 21.2M human-assistant conversations (9.51B tokens) adapting Qwen3.5 to the user role, and (2) reasoning-supervised RL on SOUL environments with explicit supervision over a taxonomy of 13 realistic user behaviors mined from ThoughtTrace conversations (hidden evaluation criteria, incremental goalpost shifting, clarification noncooperation, infeasibility persistence, underspecified-then-blames, abrupt intent switching, artificial constraint stacking, fabricated/false premise, impatient low-signal pressure, unresolved thread abandonment, self-contradiction, request overloading, belittling/entitled pressure). During interaction the simulator generates both a private thought and a public utterance; only the utterance is shown to the agent. Results: SOUL-Index 65.7 (5 axes: conversational, social, cognition, role play, eval/judgment), beating Claude-Opus-5 (64.9) and GPT-5.5 (64.1) and +15.2 over its pretrained backbone; on RealUserSim it improves behavioral fidelity over Claude-Opus-5 by 13.4 points and reduces SimulatorArena Turing distance by 3.6 points. Freezing the simulator and training agents with multi-turn GRPO across eight Gym environments (Travel, Turtle, Function, Tau, Persuade held in; Intention, Telepathy, Search held out), MIMESIS-trained agents beat GPT-5.5-trained agents under all nine unseen evaluation user models (frontier APIs + released simulators). The paper also introduces Coached On-Policy Self-Distillation (CSD): a coach model turns the simulator's private reasoning traces and subsequent utterances into concise coaching notes, adding dense token-level supervision (L = L_GRPO + alpha L_CSD) beyond sparse task rewards, with further gains under all nine evaluation user models while the deployed agent conditions only on public dialogue. Code: github.com/VietHoang1512/mimesis (project page viethoang1512.github.io/mimesis). Paper license CC0 1.0.
- Paper
Periodic Weak Spots: Phase Sensitivity from Chunked KV-Cache Compression
Chunked KV-cache compression groups consecutive tokens into fixed-size windows and compresses each window into fewer cache entries at a fixed stride S, cutting long-context memory and attention cost. The paper shows this creates a new positional coordinate — the token's phase, its position modulo S — and a systematic failure mode called phase sensitivity: the same information can be easy to retrieve at one phase and difficult at another. In the DeepSeek-V4 family (which uses compressed sparse attention, CSA, with stride S=4), single-token needle-in-a-haystack retrieval at 128K context differs by up to 40.2 percentage points across phases, and a code-completion top-1 prediction flips periodically with period 4 matching the CSA stride. To isolate the cause, the authors pretrained a family of Qwen3-0.6B-derived transformers from scratch with chunked KV compression as the only substantial architectural change: every compressed variant shows periodicity matching the compression stride — even plain within-window averaging — while full-attention baselines show none. Window boundaries (key-value pairs split across windows) do not fully explain it: accuracy varies widely across phases that keep the pair inside one window. Mechanistic analysis (KV-head/layer knockouts in their models and attention-readout interventions) reveals phase specialization: different heads contribute asymmetrically to retrieval at different phases, also in DeepSeek-V4 itself. Compression gates that can learn separate positional preferences develop persistent per-head phase preferences during pretraining, and an idealized bigram-retrieval analysis shows gradient flow drives gates toward sharp static phase concentration. The practical takeaway: evaluating chunked-KV models requires measuring across compression phases (e.g., shifting the input by a few tokens while keeping the queried information fixed) — high average accuracy can coexist with systematic periodic positional failures.
- Paper
Relative Generalization Invariance of LLM Pretraining
Introduces Relative Generalization Invariance (RGI): the validation-loss difference between any two tokens is preserved across models, i.e. L_A(d) = L_B(d) + C_AB — different training choices produce a token-independent constant shift rather than selective per-token improvement. GPT-style models (124M, 0.7B) trained on FineWeb with six optimizers (Adam, Adam-mini, Lion, Muon, Soap, Scion) from shared initialization and data streams show concordance correlation r_CCC > 0.95 and relative discrepancy r_diff < 0.05 after ~2,000 steps; at 10K steps the validation-loss relationship between optimizers is near-perfectly linear (R^2 >= 0.99). RGI persists approximately across architectural changes: RoPE/NoPE/ALiBi positional encodings, full vs sliding-window attention, GELU/SiLU/Squared-ReLU FFN activations, different initializations, and moderate width changes. Changing the training data breaks it: FineWeb-trained vs ArXiv- or CodeParrot-trained models (same Adam optimizer) fail to exhibit RGI; C4 shows partial, unstable alignment. Not explained by NTK/lazy training — parameters and hidden states move substantially from initialization and cross-optimizer similarity decreases while RGI persists — nor by mean-field regimes (RGI appears in narrower models); the authors prove RGI can emerge in an overparameterized quadratic model. License: CC BY 4.0.
- Paper
EngramEdit: Decoupled Knowledge Updates in LLMs through Conditional Memory
EngramEdit turns the n-gram conditional-memory modules of architectures like DeepSeek Engram into an editable knowledge interface, decoupling factual knowledge updates from the Transformer backbone. Conditional memory uses input n-grams to look up learned embeddings; ablations show disabling it collapses factual-knowledge performance (~39% of enabled) while largely preserving in-context understanding and reasoning (~72%), so facts live in the n-gram tables while computation lives in the backbone. The core problem: different phrasings of one fact activate different n-gram embeddings, and editing shared embeddings can corrupt unrelated facts. EngramEdit's procedure: (1) generate multiple expressions of each fact to broaden n-gram coverage; (2) temporarily add a shared learnable perturbation to the memory representations of its expressions and optimize only that perturbation by backpropagating the new-fact prediction loss, yielding a target memory representation per expression (mirroring ROME-style locate-then-edit FFN targeting); (3) jointly solve for updates to the shared n-gram embeddings that match these targets across all expressions and edits, with reuse-based regularization that penalizes large updates to frequently reused (short/frequent) n-gram embeddings more strongly. Results: near-perfect editing success on CounterFact and ZsRE, revised knowledge usable across unseen expressions and in multi-hop reasoning (nearly 3x the strongest baseline's MQuAKE accuracy under chain-of-thought prompting), with unrelated knowledge and general capabilities largely preserved under extended sequential editing. Because only a small subset of n-gram embeddings changes, the edit set is a few-MB overlay that can be swapped per user, enabling continual per-user learning without touching the backbone. Limitation: edits are currently primitive [subject, relation, object] triples only. Code: https://github.com/ModalityDance/EngramEdit
- Paper
Memory Mosaics at scale
Memory Mosaics (Zhang et al., 2025) replace transformer attention blocks with networks of associative memories: each unit stores key-value pairs (keys encode the recent past, values the near future) and retrieves via Gaussian kernel regression (fuzzy, soft retrieval), using L2-normalized keys, a symmetric key/query kernel, and no explicit position encoding. Memory Mosaics v2 scales this to 10B size (llama-8B scale) trained on 1T real-world tokens, adding three modifications: adaptive kernel bandwidth scheduled with memory size, a gated time-variant key feature extractor, and a 3-level memory design (short-term, long-term, persistent). The paper evaluates across three dimensions. Memory mosaics v2 only MATCH transformers on training-knowledge storage (first dimension) but significantly outperform them on new-knowledge storage and in-context learning (second and third dimensions): on new-knowledge storage, a 1T-token MM v2 beats a 1T-token transformer by 12.3% (53.4% vs 41.1%), and an 8x-data transformer (8T tokens) still lags by 6.5% (46.9% vs 53.4%); on anonymous-label in-context learning, the 8T transformer lags by a large margin, while on easier semantic-label ICL the 8T transformer matches MM v2. The paper frames this as 'predictive disentanglement' — compositional, in-context behavior achieved in a comparatively transparent way versus transformers. Code: github.com/facebookresearch/MemoryMosaics. Paper is CC BY-NC-ND 4.0 (non-commercial, no-derivatives).
- Paper
NeMo-DCR: Bit-Exact Delta-Compressed Refit for Scalable Agentic RL at Trillion-Parameter Scale
NeMo-DCR (Delta-Compressed Refit): bit-exact weight synchronization from training to rollout clusters for agentic RL, where each policy update must reach the rollout clusters before the next batch. Measurements of BF16 training show about 1% of weights (0.6-1.2% across the six models measured) change their stored values per RL step, yet a standard refit copies the full checkpoint every update - 87.5 minutes for a 1T model between two AWS regions. NeMo-DCR sends only the changes and still yields the exact same parameter and buffer bits as a dense refit. For placement, fixed affine mappings project changes from training shards into the checkpoint's canonical coordinates (residual conversion covers the rest), and the serving runtime's native loader places all changes in receiver storage. For exactness, compressible XOR masks carry affine changes whose projection and loader preserve stored bits, while overwrites carry the others; receivers apply both in place. For efficiency, object storage or a relay tree streams payloads while the delta is still being built, with no cross-cluster collective. Retries overwrite partial writes, and a joint commit binds the policy to the baseline for the next delta, recovering from mid-refit failures. Even at 3% and 5% change rates, refits of 30B-1T models are 12-40x faster than a transport-only full-checkpoint reference: a 1T relay-tree refit at 3% change rate takes 150 seconds instead of 87.5 minutes, making refits practical for cross-cluster agentic RL at trillion-parameter scale.
- Paper
Self-Supervised Scaling of Terminal Environments for Scientific Domains
SWR (software-in-the-loop reconstruction): turn existing scientific software workflows into self-supervised, verifiable terminal-agent training environments - run workflows, reveal some input-output examples, hide others; the agent reconstructs the behavior and the original software supplies reference outputs for checking via a hierarchical verifier (domain-specific semantic comparison, structural validity, anti-shortcut checks).
- Paper
AECP: Artifact-Exclusive Communication Protocol for Multi-Agent Code Generation
AWS AI Labs (first author Jiaqi Xue, UCF, during an AWS internship). In free-form multi-agent coding teams, shared findings are just context — agents can ignore them, and deviations from agreed module interfaces go undetected. AECP requires agents to communicate exclusively through structured artifacts, and specifies how the harness processes them: the harness supplies recorded findings when an agent accesses relevant code, screens implementations against recorded interface commitments, and requires affected agents to revisit an agreement when it changes. These coordination steps become part of harness execution rather than actions agents must initiate from prior messages. Across Doc2Repo, NL2Repo, and CodeProjectEval, with closed- and open-source models including Opus-4.8 and DeepSeek-V4-Flash, AECP improves average test pass rate by 28.2% and reduces average wall time by 16.5% relative to a team using free-form inter-agent messages. Artifact-exclusive communication also blocks relay of malicious instructions between agents: they reach other agents 0% of the time (vs 95%) and are acted on 0% of the time (vs 40%). CC BY 4.0.
- Paper
VERA: Scaling Verifiable Environments for Agentic co-Evolution
VERA (NVIDIA) addresses agent training's environment bottleneck by converting benchmark trajectories into 9,000+ restartable, rubric-scored sandboxes, then co-evolving the LLM and its harness on them. Auto-Rubric turns trajectories into sandboxes: a coding agent writes binary rubric items (scored {0,1} from observable evidence) over action arguments, execution effects, artifacts, and output quality; executable checks and an Agent Judge verify each sandbox, and a failed executable check overrides any judge score. Trajectories are segmented into five stages (plan, setup, verify, execute, submit), each restorable and scored independently. The co-evolution loop alternates two updates with the other component frozen: model rounds run full-parameter GRPO with rubric rewards (a Reward Verifier checks the rollout evidence behind each reward; a checkpoint is accepted if its dev-benchmark score drops no more than 20% relative to the previous accepted checkpoint), and harness rounds add/merge/remove skills (accepted only if a paired frozen-model rerun shows target-stage improvement, no end-to-end regression, safety checks pass, and self-tests pass with at least +5 Overall points on the dev set; at most three edits per round). At 9B (Qwen3.5-9B), the co-evolved agent beats the strongest single-axis baseline by 10.3 points on AutoCoWorkBench and 13.0 on AutoMedBench, leading SWE-Bench Verified and MedXpertQA under their official protocols. At 27B (Qwen3.8-27B), VERA reaches 71.6 on AutoCoWorkBench (above Claude Opus 4.8, 1.0 point below GPT-5.6-Sol) and 80.7 on AutoMedBench (within 1.2 of Claude Opus 4.8, highest Agentic score 94.1), and transfers out of domain to Automation-Bench (43.8%) and AgentClinic (76.4%). Only at 27B are general capabilities retained/improved (AIME 2026 +10.0, ALFWorld +3.8, GPQA-Diamond +7.7, IF-Bench +1.8 for the CoWork agent); 4B/9B agents lose heavily on AIME.
- Paper
Scaling Verifiable Environments for Long-horizon Work Agents
WorkForge is a scalable synthesis framework for building verifiable long-horizon work-agent environments from real-world resources. From expert-authored 'Scene Blueprints' (workflow, deliverable, source requirements, domain decisions), an acquisition agent iteratively searches, downloads, and previews real files to instantiate a workspace; profiling then extracts observable factual anchors (file roles, dependencies, verifiable facts). Task generation derives each task's instruction, hidden solution plan, and complementary verifiers from those anchors: programmatic verifiers check deterministic requirements on final artifacts (mean pass rate over rubric items), while semantic verifiers score open-ended deliverables via an LLM judge with criterion-specific scoring guides (scores 0-10, normalized). The corpus is 16,665 environments across 40 professional domains (top 4 = 31.9% of tasks), workspaces covering 60 file types, avg 42.3 files / 279KB, avg 21.9 rubrics per task; solver rollouts (GLM 5.3 with Claude Code and OpenClaw harnesses) average 31.8 steps, 33.8 tool calls, 76.5K tokens. Full-parameter SFT of Qwen3.5-35B-A3B-Base on the 16,665 trajectories lifts GDPval 45.5 to 73.6 (+28.1) and APEX Score 5.0 to 21.3 (+16.3), with similar gains on WildClaw, ClawEval, and Agents' Last Exam; the 73.6 GDPval beats the prior sub-100B specialized SOTA (ClawGym-30A3, 35.0) by 38.6 points. Applied to the post-trained Qwen3.5-27B, WorkForge-27B reaches GDPval 82.4, beating Qwen3.5-397B-A17B (79.7) with ~15x fewer parameters. Scaling holds across data volume (1K to 16K trajectories: ALE +13.0, WildClaw +8.4) and interaction horizon (41-60-turn training trajectories vs 0-20: ALE +4.2, WildClaw +5.0). Hybrid verification-based trajectory selection beats programmatic-only or LLM-only selection; real-workspace environments have 5.4x more files and 2.4x more file types than synthetic ones.
- Paper
LoGRA: Scaling LLM Reinforcement Learning with Low-Rank Gradient Sketches
NVIDIA's LoGRA makes RL post-training memory-efficient via low-rank gradient sketches: instead of storing full d×k gradients, it accumulates sketches S=GAᵀ (d×r, r≪min(d,k)) directly during backprop by projecting layer inputs before multiplying by backward derivatives, so full gradients are never formed. A random projection A (random signs /√r, fresh each step) keeps successive updates from being rank-limited; the sketch is optimizer-adjustable (U) and merged into full-size weights as W ← W − αηUA, with predicted-KL step control estimating policy change before the update and scaling α to fit a KL budget. The compact sketch doubles for policy synchronization: the rollout engine regenerates A from a seed and applies αηU, cutting communication. On DAPO-Math-7.5K (128 prompts, 1 response each, 4k context) with an annealed predicted-KL budget vs dense Adam: average training memory falls 21.8% at 1.5B and 45.7% at 7B over 300 updates with no task-performance loss; at 27B on a single 8×H100 node, LoGRA completed 1,100+ steps while dense Adam OOMed during its first Adam-state allocation. Intuition: binary outcome rewards carry little per-token supervision, so a compact update suffices; precedents include GaLore, FLORA, and LoRA-without-regret.
- Paper
Balancing Memory Pathways: Analyzing and Improving Memory Utilization in Hybrid LMs
Recurrent-attention hybrid LMs (e.g., Qwen3.5) interleave attention and recurrent layers as two complementary memory pathways: attention supports precise recall of earlier tokens, recurrent layers consolidate disparate information over long contexts. The paper shows hybrids rely substantially more on attention than on the recurrent state — and that standard SFT improves overall performance but does not fix the imbalance: the model becomes more reliant on attention-propagated information while recurrent-pathway use stays limited. Fix: an auxiliary loss that limits attention's access to earlier context while the recurrent state propagates through the full sequence, forcing the model to retain and use information through the recurrent pathway alongside attention. Results: overall performance improves with especially strong gains on longer-context and information-aggregation tasks; QA avg +4.6%, agentic tasks avg +12.1% across multiple hybrid LMs; also generalizes to attention-only models combining different memory types (+28.6%). Core message: simply providing multiple memory pathways does not ensure their effective use — targeted supervision is needed to coordinate them.
- Paper
ALoDLM: Adaptively Looped Diffusion Language Models
Amazon AGI introduces ALoDLM, a diffusion language model that replaces uniform denoising depth with token-adaptive latent recurrence, attacking the computation-difficulty mismatch: within one denoising step, easy masked tokens need little compute while hard ones need a lot, yet standard DLMs apply the same fixed-depth denoiser to every position. ALoDLM partitions a Qwen3 backbone into a Prelude, a shared Recurrent Core, and a Coda; at each denoising step the core runs up to K=4 recurrent passes. After each pass, an LM head predicts token distributions and an exit gate gives per-token halting probabilities: positions with predictive entropy <= tau are sampled and committed (their embeddings fed back as context for the next pass), while unresolved positions carry their latent states forward for further refinement. The inner loop ends when the mean cumulative halting probability reaches q, no unresolved positions remain, or K is reached. Training treats token-wise exit schedules as latent variables and derives a conditional negative ELBO; a single-trajectory gradient estimator is provably unbiased for the objective (Prop. 1), with a truncated-geometric prior (c=0.4) favoring shallow exits and a practical recipe relaxing the KL term and adding variance reduction (intermediate supervision, first-pass control variate). ALoDLM-1.7B and 8B are trained from Qwen3 by direct SFT on a 5B-token corpus (no continued pretraining; largest looped DLM to date at 8B). On eleven reasoning/knowledge/math/code benchmarks via the OpenCompass protocol, ALoDLM beats all evaluated DLMs (LLaDA-8B, Dream-7B, Fast-dLLM-v2, SDAR-8B, WeDLM-8B) and its Qwen3 AR counterparts in average score at both scales: 65.5 vs 63.8 at 1.7B, 80.3 vs 78.5 at 8B. It keeps fast parallel decoding: on GSM8K, ALoDLM-8B delivers ~2.7x the throughput of vLLM-served Qwen3-8B (93.25% at 612.4 tok/s on one NVIDIA B200) at comparable or higher accuracy, and 13.6% fewer GFLOPs per token than WeDLM at the same accuracy threshold. Recurrent depth is an effective test-time scaling axis, and the model learns token-dependent refinement preferences without difficulty labels (e.g., numerical tokens refine longer). Caveats: longer time-to-first-token than AR models and input-dependent throughput; the speed advantage can shrink on difficult or out-of-distribution inputs. Code: github.com/amazon-science/ALoDLM (optimized CUDA-graph inference engine included); weights: huggingface.co/amazon/ALoDLM-8B and amazon/ALoDLM-1.7B; project page: alo-dlm.github.io. Joins the looped-models cluster (670, 952, 1545, 1548, 1549, 1551, 1563, 1566, 1579). Directly relevant to the user: a practical recipe for adaptive per-token compute and the strongest current DLM quality-efficiency tradeoff.
- Paper
Sentry: Learning to Recover from LLM Agent Failures at Test Time
Test-time framework for recovering LLM agents from failures, from Stanford's ACE (Agentic Context Engineering) team. Core finding: failure knowledge is conditional — how it reaches the agent matters as much as what it contains. Failure lessons kept in context misfire when their failure is absent: ACE-style memory that keeps past failure lessons in context for every task distracts the agent (e.g., on WebShop the agent found the right product then kept comparing alternatives and never acted); simply removing failure lessons improves ACE by +17% on WebShop and +14% on Mind2Web Replay. Conversely, runtime-intervention methods (AgentGuard) act only on failure but learn nothing — fixed rules can fire at the wrong time (a 'no progress' warning made the agent abandon correctly picked product options). Sentry combines both: it learns from experience like ACE, but keeps failure knowledge in a separate playbook outside the agent's main context; a failure detector watches for failures, retrieves failure-specific guidance (hard repair for invalid actions, soft repair with hints), and a verifier checks recovery without access to task rewards — the playbook is updated only if recovery succeeded. Results on WebShop, AppWorld, SWE-bench Lite, Mind2Web Replay: +37% over the best runtime-intervention baseline on average (up to +77% on WebShop), +39% over ACE; ACE+Sentry combined performs best overall, with task-level and failure-level learning as complementary. Learned lessons transfer to held-out tasks; controlled experiments confirm exposing the full playbook hurts even when relevant lessons remain available on demand. CC BY 4.0 license. Directly relevant to the user's agent app (memory design: storing knowledge is easy, deciding when the agent sees it is what matters) and to Launch Helm's intervention/control angle.
- 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
SelfSearch: Reward-Free Search for Self-Improving Agents
Reward-free search procedure in which a coding agent rewrites its own harness (instructions, tools, execution procedures) using records of previous self-improvement episodes, which capture the reasoning, tool actions, and outcomes of earlier modification attempts; the modified agent then becomes the next improver. Avoids the cost and task-tied search of repeated downstream evaluation required by existing self-improvement approaches. Without downstream reward signals during search, population-mean success improves over the initial agent in all six model-benchmark settings, with individual agents gaining up to 11.2 percentage points on Terminal-Bench 2.1. On SWE-bench Multilingual, one evolved agent gains 5.0 percentage points while reducing execution cost by 38.5% on tasks solved by both versions. Achieves competitive success with evaluation-guided search baselines at lower search cost: with only $4.03 in search cost it produces a harness solving 82.0% of Terminal-Bench 2.1 tasks with DeepSeek V4 Flash under a public nine-harness comparison's settings, matching the top-scoring harness Codex.
- Paper
Attribution-Guided and Coverage-Maximized Pruning for Structural MoE Compression (MoE-Slimming)
Structural pruning framework for MoE LLMs built on the observation that MoE expert information is concentrated in a small fraction of channels — expert-level importance is too coarse to capture internal redundancy, and even 'high-importance' experts may not need large capacity. Three components: (1) Attribution-guided Loss Approximation (ALA) estimates expert importance layerwise via first-order Taylor approximations over calibration data, without exhaustive ablation (20x fewer GPU hours); (2) Coverage-maximized Budget Allocation (CBA) reformulates prune-ratio allocation as channel-score coverage maximization under a global budget, retaining high-contribution channels and pruning low-score tails; (3) Alignment-Aware Redistribution (AAR) adjusts dimensions to satisfy low-bit kernel constraints for quantized storage and efficient inference. On DeepSeek and Qwen MoEs, retains accuracy under 50% or 25% structured pruning jointly with 4-bit quantization: Qwen3-30B-A3B memory footprint reduced 5.27x, at most 1% average accuracy drop on general knowledge, 94.5 on MATH500, and outperforming SOTA baselines across diverse benchmarks. Pipeline: score -> mask generation + LoRA fine-tuning (fake pruning during training, masks anneal) -> physical slimming into a smaller dense checkpoint + lm-eval-harness benchmarks.
- 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
The Surprising Effectiveness of Shared Memory in Looped Transformers
Looped Transformers add compute without parameters by re-applying the same layers, but each recursion writes its own KV cache, so memory grows with compute. This paper pretrains looped models to share memory instead: only the first recursion writes a cache; later recursions read it while keeping a short window of their own. Sharing memory does not cost quality — it improves it. At 150M-1B parameters, the Looped Prediction Transformer (LPT) and its hybrid variant set a new quality-memory frontier for looped models: with five recursions, the hybrid lowers FineWeb-Edu validation perplexity by 1.12-1.82 vs a same-size standard Transformer while using 76-79% less context memory. Analysis: shared and local memory develop different representations, later recursions attend mostly to the shared memory, which also acts as a gradient highway to the first recursion.
- 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
Triadic Linear Attention: Three-Dimensional Recurrent States for Long-Context Sequence Modeling
Generalizes linear attention from a matrix state to a third-order tensor state: writes the triadic outer product of a key, a second key, and a value (k tensor k' tensor v) into S_t in R^{d x E x d}, and reads by contracting both key axes with two queries. An E-dimensional second key yields an E-fold state-size increase while adding only two projections (negligible parameter overhead; E=16 gives 16x capacity at 1.08x non-embedding params in MQAR tests). Compatible with data-dependent forgetting (per-slice decay gates), the delta rule applied jointly to both keys (removing the value stored under the key pair), and chunkwise-parallel training via custom CuTe kernels that tile the per-head state along the value axis (blocks of 32 columns, all E slices held in registers) so no SM holds the full tensor. Applied to Gated DeltaNet and scalar-gated linear attention, it substantially improves long-context LM and recall, outperforming alternatives that enlarge state via wider heads/values, more heads, or multiple value heads per key. A pretrained linear-attention model can be converted post hoc to its triadic form during long-context extension. Training overhead over vanilla GDN (custom kernels, H100, 1.3B, 2k-64k tokens): 9-11% (E=2), 14-15% (E=4), 28-30% (E=8); E=8 is 3% slower than a Transformer at 4k but faster beyond, reaching 5.1x faster at 64k.