Explore the research collection
83 entries · showing 25–48 · Follow this search
- 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
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.
- 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
Mid-Harness: Scaling Actions Between Model and Harness for Terminal Agents
Terminal agents act through stochastic model generations, but the ability to generate a useful action doesn't ensure reliable execution — one bad shell command (wrong package install) can poison the environment even when the model could have generated a better alternative. Investigates allocating test-time compute at the model-harness boundary: Mid-Harness samples and verifies candidate actions before forwarding one for execution, leaving generator and harness unchanged. With a TMAX-9B generator, more action sampling helps little under weak verification, while a capable verifier exploits useful alternatives from the same generator. On TerminalBench-Lite, a GPT-5.6 Sol verifier raises Pass@1 from 50.00% to 68.03% with 8 sampled actions; with TMAX-9B as its own verifier, pairwise verification performs best; distilling the stronger verifier into TMAX-9B improves Pass@1 further without touching the generator. Combining action and trajectory scaling reaches higher success at lower estimated token cost than more trajectories alone. Key design rule: spend more on the verifier than on extra samples. Practitioner takeaway (@thesignalnow): label candidate pairs offline with the strong verifier, fine-tune a small model, deploy it as the always-on checker — avoids paying frontier-model prices per action. Directly relevant to the user's agent-harness work.
- 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
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
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.
- Paper
AgentWorld: Benchmarking Long-Horizon Collaboration of Multi-agent LLMs
Existing multi-agent benchmarks test competitive settings, short-horizon interactions under 20 steps, or simply aggregate individual performance — failing to isolate genuine collaboration. AgentWorld is a benchmark of 100 human-annotated tasks (plus 100 augmented variants) for long-horizon multi-agent collaboration: tasks span 50+ interaction rounds in a rich MMORPG sandbox and require 3-20 agents with asymmetric roles and abilities to coordinate through communication, joint planning, and resource sharing under a blackbox setting where each agent acts independently without access to others' internal states. To quantify collaboration effectiveness beyond binary task success, it introduces Causal Collaboration Effectiveness (CCE), a graph-based metric tracing causal dependencies between agent actions to measure what fraction of a team's effort actually contributed to the outcome. Experiments with Gemini 3 Flash, Claude Haiku 4.5, GPT-5 Mini, and DeepSeek R1-70B: even the best model achieves only 52.0% task success, with systematic failure modes including communication breakdowns, role confusion, and inability to maintain shared plans across rounds. Fully open-source.
- Paper
cua-speedrun: Standardized Benchmarking of the Speed of Computer-Use Agents
Proposes cua-speedrun, a standardized framework for evaluating computer-use agents (CUAs) on speed, cost, and performance under a uniform virtual machine setup, execution pipeline, and common agent interface, addressing a reproducibility crisis where varying machine/container configurations confound speed measurement. Across four CUA benchmarks (OSWorld, OSWorld 2.0, CUA-World, MyPCBench), no single model family is optimal across performance, speed, and cost, and no open-weight models lie on the efficiency frontier. Counterintuitively, for some models increasing reasoning effort speeds up overall task completion (better actions, shorter trajectories), while faster environment input-output (40-1000x) can slow agents down because they act before the UI finishes updating. The benchmark task sets can also be substantially reduced without degrading statistical power, enabling faster, cheaper evaluation. All code, infrastructure, and analysis are public.
- Paper
LLaMA-Berry: Pairwise Optimization for O1-like Olympiad-Level Mathematical Reasoning
SR-MCTS treats a full solution as a state and Self-Refine (critique+rewrite) as the action; PPRM (Gemma2-2B DPO on 7.78M PRM800K/OpenMathInstruct pairs) predicts pairwise prefs; Enhanced Borda Count plus Floyd-Warshall lifts them to global quantiles. Untrained LLaMA-3.1-8B-Instruct at 16 rollouts: GSM8K 96.1 rm, MATH 75.3, AIME24 8/30 (26.7) vs 2/30 greedy, AMC23 54.2, GPQA-Diamond 92.4. Beats ToT/rStar at fewer rollouts. NAACL 2025. No official code on abs.
- Paper
Reverse That Number! Decoding Order Matters in Arithmetic Learning
LEFT (Little-Endian Fine-Tuning): reverse digit order so carries are local. Addition/subtraction drop CoT; multiplication keeps a reversed step-by-step. Llama2-13B, 5K examples/op on digits 5–12: overall acc 94.4 vs Scratchpad-Detailed 83.3 using 3.04M vs 11.0M train tokens (+11.1 pp overall; multiply 88.5 vs 52.8). Add/sub use ~1/20 the tokens of the detailed scratchpad baseline at similar accuracy. Code/data https://anonymous.4open.science/r/RAIT-9FB7/.
- Paper
SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration
PTQ attention: subtract the token-mean of K to smooth channel outliers so QK can be INT8, and keep PV in FP16 with an FP16 accumulator (INT8 PV is too noisy on some layers). Triton kernels on RTX4090/3090; peak ~341 TOPS at headdim 64/128 vs FlashAttention2 ~165. ~2.1× FA2 and ~2.7× xformers. Plug-and-play: Llama2-7B WikiText 5.824 vs FP 5.823, MMLU 0.46=FP; CogVideoX/Unidiffuser/UltraPixel/TIMM/Llava1.6 near-parity. ICLR 2025. Code https://github.com/thu-ml/SageAttention.
- Paper
SuperBPE: Space Travel for Language Models
Two-stage BPE curriculum: subwords first, then merge across whitespace. At vocab 200k, encodes a fixed text with up to 33% fewer tokens than BPE. 8B transformers trained from scratch at matched params/vocab/FLOPs (~330B tokens): SuperBPE (t=180k) beats BPE on 25/30 tasks, +4.0% absolute average and +8.2% on MMLU, with 27% less inference compute. Superwords often match multi-word expressions. COLM 2025 camera-ready. No official code on abs.
- Paper
Qwen2.5-Omni Technical Report
Block-wise audio/vision encoders feed a shared LLM; TMRoPE interleaves time-aligned audio/video. Thinker generates text; Talker is a dual-track AR speech head on Thinker hidden states plus sliding-window DiT. Qwen2.5-Omni-7B sits between Qwen2-7B and Qwen2.5-7B on text (MMLU-redux 71.0 vs Qwen2.5-7B 75.4 / Qwen2-7B 67.3). OmniBench avg 56.13 vs Gemini-1.5-Pro 42.91; MMMU val 59.2; Video-MME w/o sub 64.3; speech-instruction MMLU 65.6 vs text Qwen2-7B 69.3. Streaming TTS WER 1.42/2.33/6.54 on SEED test-zh/en/hard. Code https://github.com/QwenLM/Qwen2.5-Omni; blog https://qwenlm.github.io/blog/qwen2.5-omni/.
- Paper
Reasoning Models Can Be Effective Without Thinking
NoThinking prefills an empty thinking block on DeepSeek-R1-Distill-Qwen-32B so the model writes the solution directly. At matched budget it often beats Thinking, especially low-budget (AMC 2023 51.3 vs 28.9 at ~700 tokens) and as pass@k grows. Parallel NoThinking + best-of-N (verifier or self-certainty) matches sequential Thinking at up to 7–9× lower latency and, with verifiers, ~4× fewer tokens (MiniF2F/ProofNet). LiveCodeBench is the main exception. No official code on abs.
- Paper
SPICE: Self-Play In Corpus Environments Improves Reasoning
One model plays Challenger (mines a raw doc, writes MCQ or typed free-form QA with document-extracted gold) and Reasoner (solves without the doc). Challenger reward is a Gaussian on answer-variance peaked at 50% pass; Reasoner gets binary correctness (DrGRPO, role-specific advantages). 20k docs from Nemotron-CC-Math + NaturalReasoning. Qwen3-4B-Base 35.8→44.9 (+9.1); Qwen3-8B 43.0→48.7; OctoThinker-3B 14.7→25.2; OctoThinker-8B 20.5→32.4, beating R-Zero and Absolute Zero. Math avg +8.9 / general +9.8. Fixed-Reasoner pass 55%→35% as the Challenger hardens.
- Paper
Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free
Compares ~30 gating variants on 15B MoE (15A2B, 2.54B active) and 1.7B dense models trained on up to 3.5T tokens. A head-specific sigmoid gate after SDPA (G1) is best: MoE 400B-token Avg PPL 5.761 vs 6.026 baseline and MMLU 60.82 vs 58.79, beating parameter-matched KV-head/expert expansions. Gains come from non-linearity between low-rank Wv and Wo plus query-dependent sparse gates (mean score 0.116). First-token attention falls 46.7%→4.8%; YaRN-extended RULER at 128k is 58.82 vs 31.65. Gate also damps loss spikes and allows higher LR (8e-3) where the baseline diverges. Claims first attention-sink-free models.
- Paper
Soohak: A Mathematician-Curated Benchmark for Evaluating Research-level Math Capabilities of LLMs
SOOHAK Challenge (340) and Refusal (99) plus companion SOOHAK-Mini (702), newly written by 105 mathematicians under NDA/IP transfer (~$550k MSIT Sovereign-AI budget). Challenge: Gemini-3-Pro / GPT-5 / Claude-Opus-4.5 Avg@3 30.4/26.4/10.4%; best open-weight Kimi-2.5 13.9%; 124 Challenge items unsolved by any of 11 models. Refusal (diagnose ill-posed prompts): no model >50% Avg@3, GLM-5 leads 49.5%. Mini: GPT-5 72.2%. Human baseline 5 teams / 25 solvers cover 50.6% of a 79-item slice; only Gemini-3-Pro exceeds combined humans. Public release planned late 2026; evals on request via guijin.son@snu.ac.kr. Project https://novamath.github.io.
- Paper
Generative Recursive Reasoning
GRAM adds learned stochastic residual guidance ε~N(μθ,σθ²I) on the high-level latent of an HRM/TRM-style hierarchy and trains via a truncated ELBO. Width scaling samples N trajectories and ranks them with an LPRM or majority vote. Sudoku-Extreme 97.0% vs TRM 87.4% at 16 steps; N=20 at 16 iters beats TRM at 320 (97.0 vs 90.5). ARC-1/2 52.0/11.1 vs TRM 44.6/7.8. N-Queens 8×8 accuracy 99.7% / coverage 90.3% vs TRM 66.8/36.1. Unconditional Sudoku 99.05% validity (10.9M, 16 steps) vs D3PM-Big 91.33% (55.1M, 1000 steps); binarized MNIST FID 73.34 at 256 steps vs TRM collapse 303. Project https://ahn-ml.github.io/gram-website/.
- Paper
Emergent Analogical Reasoning in Transformers
Synthetic two-category task with atomic, compositional, and analogical facts. Emergence is sensitive to entity/relation counts, OOD ratio, optimization, and scale. Mechanism: (1) geometric alignment of relational structure in the embedding space (Dirichlet energy) and (2) functor application inside the Transformer. Same qualitative signatures in pretrained Gemma-2-2B/9B and Llama-3.1-8B. ICML 2026 spotlight. Code https://github.com/gouki510/Analogy_in_Transformer.
- Paper
More Expressive Feedforward Layers: Part I. Token-Adaptive Mixing of Activations
MoA mixes a small activation dictionary (GELU/SiLU/ReLU²/etc.) with lightweight per-token gates on shared FFN projections; LA is the input-independent linear-combination ablation. Finite-width theory: fixed-activation FFN ⊊ LA ⊊ MoA. Pretrains dense Llama 0.12B–0.5B (AdamW, cosine, 20/100 TPP) and LlamaMoE 0.25B–2B (Muon, WSD, ~100 tokens/active param). Type-II one-MoA/qd-MoA beat well-tuned SwiGLU/Muon baselines by >0.01 terminal loss with ~1.03–1.13× wall-clock and negligible params; LlamaMoE-2B zero-shot avg 42.20→42.86/42.96. Also helps MAE ViT-B. No official code on abs.
- Paper
Understanding and Mitigating Premature Confidence for Better LLM Reasoning
Defines premature confidence by probing truncated CoTs: the answer is often already fixed, so remaining tokens cannot causally shape it. On CSQA, prematurely confident traces have 2.8x more logical flaws than progressive ones (pattern holds on GPQA/LSAT/MuSR and on correct answers). Progressive confidence shaping subtracts η⟨c,w⟩ from GRPO advantages with a fixed decreasing vector w, no PRM labels. Hard Countdown Pass@1 19.1%→61.1% (+42.0pp) and issue rate 93.5%→45.5%; AIME Pass@64 +6.6pp; SciQA +2.9–5.8pp from 1.7B–8B. Also raises hint-acknowledgement on a safety benchmark. Premature confidence grows with model size and task difficulty (accessibility dominates utility). No official code on abs.
- Paper
Ceiling of a Task: When Can a Transformer Succeed Without Its Chain of Thought?
Asks whether chains of thought do real computational work or are decorative, by viewing a transformer as a shallow circuit: one forward pass has constant depth, so any constant number of passes is a shallow circuit, and the best accuracy such a circuit can reach on a task is the task's ceiling. Three results hold for every transformer on serial tasks (ceiling below one): Necessity — replacing the chain with content-independent filler or a restated question drops accuracy to the ceiling, and to chance on a maximally serial task; Depth — no shallow computation can write the chain of a model that exceeds the ceiling; Locality — the answer is one shallow pass from the finished chain, so all serial reasoning happens in the chain. Experiments confirm the predictions: on finite-group word problems, chain-trained small transformers solve every input length and fall to chance when the chain is erased, and on MATH-500/AIME erasing the chain costs open reasoning models 0.52 to 0.82 accuracy while a sentence shuffle is harmless and a token shuffle is as harmful as erasing.