Explore the research collection
57 entries · showing 1–24 · Follow this search
- Paper
BasinKV: Bounded-VRAM Sparse KV-Cache Serving for llama.cpp, SGLang, and vLLM
BasinKV (Zellige; github.com/zellige-ai/basinkv, Apache-2.0, released Dec 1 2026) is an open-source implementation and extension of the OasisKV lookahead-prefetch architecture (Xiao, Cho, et al., arXiv 2608.08097 - summarized here, not separately cataloged). It serves long contexts with bounded VRAM by capping each full-attention head at a fixed GPU working set (W = 2,048 tokens by default: sink blocks, retrieved sparse blocks, and a local ring, in static-shaped pages so stock FlashAttention/FlashInfer kernels and full-model CUDA graphs run unmodified), keeping the full KV history in pinned host RAM or on NVMe, scoring evicted blocks on the GPU, and prefetching needed blocks over PCIe while earlier layers compute. No retraining and no weight changes. Two precision tiers: the quality default is INT8 host KV with a Quest INT8 block index whose partial-RoPE radius weight alpha = 0.25 down-weights the non-rotary box radius (on Qwen3.8-27B, D = 256 with 64 RoPE + 192 NoPE dims, that radius averages 2.70x the midpoint magnitude; alpha = 0.25 raises per-step Top-8 recall from 29.9% unweighted and 82.5% at alpha = 0.5 to 95.5%, and restores 128K RULER from 0/5 to 5/5); the high-compression tier pairs WHT-INT4 host KV (1.97x smaller than INT8, 3.88x vs BF16, under 0.5% decode-speed cost) with a SphereIndex of WHT-rotated INT4 centroids (7.53x smaller GPU index than BF16 min/max). A successor co-fetch propagates each block's score one hop forward so cues straddling a block boundary fetch both halves, and content-addressed prefix caches persist in RAM/NVMe including hybrid recurrent state. Project-reported benchmarks (first-party, single-user llama.cpp decode unless noted): Qwen3.6-35B-A3B Q4_K_M at 256K on a 24 GB L4 runs at 67.12 tok/s with 84.8 MiB of GPU KV+index where stock llama.cpp OOMs from 64K, with live passkeys passing at 64K and 203K; on A100-80GB the same model goes 95.01 to 141.12 tok/s (1.49x) with 96.2% retrieval at 240K; Qwen3-8B at 128K goes 54.28 to 124.29 tok/s (2.29x); Gemma 4 E4B at 128K on L4 goes 31.69 to 61.46 tok/s (1.94x). Gains shrink where the baseline already fits comfortably: gpt-oss 20B 1.02-1.20x, and Inkling 2 Mini (looped + SWA) only 1.08x at 64K - most of its attention is already windowed. In SGLang, Qwen3.8-27B at batch 16 x 64K (1.02M tokens) runs 581.4 tok/s with native MTP on one A100 where stock OOMs with MTP. Limits stated in the repo: MLA models (DeepSeek-V3/R1, GLM-5, Kimi K2) are rejected at init on all engines; the vLLM integration's zero-fork mode is prefix caching only (sparse decode needs upstream hooks) and rejects recurrent hybrids today; quality evidence is passkey/RULER retrieval and short-output parity, not long-form generation quality. Flags: the repo is one day old at cataloging (14 commits) and every benchmark is the project's own. Cross-references: the serving-side member of the KV-cache thread, alongside training-free block-sparse attention (Factorized Context Attention, ID 1896); the Quest alpha detail - down-weighting NoPE dims in block scoring - is the transferable nugget for partial-RoPE hybrids.
- Paper
Rewirable Circuits in Transformers with Loom Attention
Xiao, Meng, Li & Yuan (Caiyun-AI), 'Rewirable Circuits in Transformers with Loom Attention' (arXiv 2611.30634, Nov 23 2026, v2 Nov 24, CC BY 4.0; code at github.com/Caiyun-AI/LoomFormer). Loom attention lets each token dynamically rewire head circuits: a head's vertical attention over the outputs of earlier heads (which produces its query, key and value) is interwoven with its horizontal attention over tokens. Vertical attention is instantiated efficiently with normalized, gated linear attention over a per-token matrix memory that stores compressed head outputs and serves as a second residual stream - yielding LoomFormer, a dual-stream architecture that splits control (vector stream) and content (matrix stream). Across model sizes and token budgets, LoomFormer matches Transformers trained with over 3x compute and recent residual-stream baselines (HC/mHC, MUDDFormer, AttnRes) trained with ~1.7-2.8x. Headline: trained on the same 300B tokens with only 2% extra FLOPs, LoomPythia-2.8B achieves ~1.6x the average downstream gain of mHC-Pythia-2.8B over Pythia-2.8B, and matches (0-shot) or surpasses (5-shot) Pythia-12B. Flags, as entered: abstract-level at cataloging, authors' own numbers; Pythia-scale evidence (2.8B, 300B tokens). Cross-references: the residual-stream expansion cluster - SimpleHC (staged slot 5, the mHC ablation), ARLoop/AttnRes (live ID 1820 and staged enrichment slot 8), Hyperloop (ID 1710, hyper-connections between loops); Loom is the matrix-memory member of that family, where the second stream is a per-token matrix rather than an expanded vector residual. For the user's stack: not a drop-in for the 3:1 SWA hybrid - it replaces the residual stream itself - but it is the strongest current evidence that the residual stream, not attention, is the bottleneck worth spending 2% extra FLOPs on, and its baselines (mHC, AttnRes) are exactly the staged alternatives it should be compared against.
- Paper
Sample-Efficient In-Context Adaptation via Sleep
Lee et al. (CMU, Yale, Microsoft Research; alphaXiv, Nov 24 2026) ask whether sleep - N recurrent forward passes refining a model's representations of a chunk of context - improves in-context adaptation for plain transformer LMs on general, non-synthetic tasks, not just long-context reasoning in SSM-attention hybrids where it was first shown. They pretrain LMs up to 1.2B parameters on up to 100B tokens with sleep mechanisms. Longer sleep learns faster in-context on multiple few-shot algorithmic and question-answering tasks and reaches lower next-token prediction loss on out-of-distribution evaluations. On held-out code, N=2 matches the no-sleep baseline's loss using 2.10x fewer tokens in-context, and N=4 using 2.39x fewer. The authors frame it as a tradeoff between in-context adaptation and decoding latency: sleep buys sample efficiency with extra recurrent passes per chunk. Flags, as entered: abstract-level at cataloging, authors' own numbers; alphaXiv Exclusive - NO arXiv ID exists for this paper (the '2611.sample-efficient-in-context-adaptation-sleep' string is the alphaXiv slug, not an arXiv identifier) and no license is confirmed; code/release status not confirmed. Cross-references: NOT a duplicate of ID 506 (Behrouz et al., Google Sleep, arXiv 2606.03979 - a different mechanism: MoE consolidation plus dreaming) - this is the recurrent-pass sleep of Lee et al.'s own earlier 'Do Language Models Need Sleep?' (arXiv 2605.26099, SSM-attention hybrids), which is itself NOT in the catalog. Sits beside the looped cluster (recurrent passes over context vs recurrent passes over layers) and the in-context-adaptation question of staged slot 18-adjacent work. For the user's 250M stack, the transferable idea is sleep as a pretraining mechanism for in-context sample efficiency at his scale (1.2B/100B evidence), with the caveat that it costs inference-time recurrent passes and must be baked in during pretraining, not bolted on after.
- Paper
No Second Run: Does RSI Stop at Frontier Pre-training?
Cai et al. (arXiv 2611.10719, Nov 7 2026, CC BY 4.0) ask whether recursive self-improvement (RSI) stops at frontier pre-training - and answer that it changes form. Public RSI work so far has targeted POST-training: start from an existing base, run GPU-hour-scale trials, get verifiable scores. Pre-training breaks all three conditions: a run consumes hundreds of thousands of GPU-hours over months and CANNOT be repeated (hence 'no second run'); its objective, post-training headroom, cannot be read off any single score; and what must improve is not a model but the whole production system - data pipelines, training infrastructure, the teams running them. Since no end-to-end loop can close over a single unrepeatable run, they decompose RSI into SMALLER LOOPS that can close, each repairing a step the full run breaks. The artifact is 801-30B-A3B-Base, a 30B-A3B MoE trained from scratch on 11.8T tokens in three months by a newly formed team, released open-source along with the lightweight SFT data. As a base model it outperforms Qwen3-30B-A3B and Nemotron-3.5-Lightning-30B-A3B and trails only the larger Qwen3.5-35B-A3B, keeping that position under identical SFT; with lightweight SFT alone (6B tokens, NO RL) it achieves the highest average on four agentic benchmarks against fully post-trained models, including Qwen3.6-35B-A3B. Flags, as entered: abstract-level record at cataloging time - the headline comparisons are the authors' own and the internal architecture/recipe details and the decomposed loop inventory live in the full text; the authors claim to be the first to apply RSI to an entire frontier pre-training run and report it in detail. Cross-references: the RSI thread - this is the pretraining-scale counterpart to Mirendil's mission (recursive self-improvement / automating AI R&D), to the staged doubleAI entry (self-redesign during training, small-scale experiments) and to Hedra's Model Factory (the loop as a service); it is the first detailed field report of RSI inside a frontier run, at 30B/11.8T, rather than as a post-training loop or a lab-platform announcement. For the user's own 250M training, the transferable idea is the decomposition itself - improving the training SYSTEM through closable sub-loops (data, infra, eval probes) is the pretraining-scale analogue of the same loop, not a claim that his run can be restarted.
- Paper
On the Design of Hyper-Connections: Simplification, Stability, and Scalability
Ablation-driven simplification of Hyper-Connections (HC / mHC), the expanded-residual architecture increasingly adopted in frontier LMs, whose components the authors argue are poorly understood and carry non-negligible training overhead (arXiv 2611.05984, Nov 4 2026). Two findings drive the redesign: (1) the HC interaction decomposes into two independently effective groups - learned read/write gating WITHOUT residual mixing, and unconstrained mixing with FIXED gates - and either alone matches full mHC performance, so the full combination is redundant; (2) repeated access to the expanded residual state is a major source of training overhead even without any mixing. The resulting architecture, SimpleHC, removes residual mixing entirely and simplifies execution through shared memory access, exploiting the additive structure and shared gate inputs: layer-specific gates share a group-entry state, enabling batched reads and deferred writes, and scalar corrections exactly preserve the contributions of preceding sublayer outputs. Results: SimpleHC costs only 2.4% extra end-to-end training time over a vanilla residual baseline at the largest tested scale, maintains performance comparable to mHC when scaling from 15B to 30B MoE models, shows smoother gradient dynamics during standard training, and remains stable under stress tests. Flags, as entered: abstract-level record (ablation details and per-component numbers live in the full text); evidence is at 15B-30B MoE scale, far above small-model regimes, so the transferable claim for smaller stacks is the qualitative one - that HC's mixing machinery appears dispensable and its systems overhead is mostly memory access, not the mixing itself; license not confirmed from the arXiv record at cataloging time. Cross-references: the catalog's HC family - ID 1540 (Hyper-Connection Factory repo), ID 1688 (xHC: Expanded Hyper-Connections), ID 1654 (Multi-Stream Attention Residuals); Junchi Yan also co-authored ID 1805 (DepthGraft), whose references cite this work.
- Paper
DepthGraft: Structural Regularization through Hierarchical Cross-Layer KV Reconstruction
Cross-layer KV sharing, reframed: the cache saving may be the least interesting thing it does. The problem setting is depth-wise information dilution in Pre-LN architectures, which limits how much deep layers get used. Prior cross-layer connectivity either costs extra compute/memory or treats KV sharing purely as cache compression. The paper's analysis: every KV reuse edge also creates a direct gradient path from deep layers back to the source layer's KV projections, so sharing acts as an implicit structural regularizer on KV representation geometry - and the topology matters: properly chosen sharing sharpens key retrieval directions while enriching the value content subspace, whereas adjacent-layer sharing and global-anchor designs do not fully exploit the effect. DepthGraft is the topology their analysis motivates: a hierarchical scheme that reconstructs each deep layer's KV from stride-aligned shallow-middle source PAIRS, distributing the non-local gradient flow across many source layers instead of concentrating it on neighbors or a single anchor. It preserves prefill early completion and cuts KV cache by roughly one third. Experiments span dense and MoE models from 0.5B to 16B parameters, under both GQA and MLA, with consistent downstream improvements; the headline is the 16B MoE model: +7.0 absolute on MMLU-Pro, +6.6 on CMMLU, +6.4 on C3 over its non-grafted baseline. Caveats: abstract-level evidence, all first-party, and effect sizes that large from a sharing topology are unusual enough to want the full tables and training-token counts before treating them as settled; a project page is linked from the paper (GitHub). Paired reading with ID 1804 (Depth Hybrid Attention, shared the same morning): both papers move information across depth inside attention, but in opposite directions - DHA ADDS a per-token depth bank and a learned router so layers can read earlier layers' values at inference, while DepthGraft REMOVES deep layers' own KV (reconstructing it from shallow sources) and argues much of the benefit is a training-time gradient-path effect. Together they bracket the design question for deep stacks: is cross-depth flow worth paying inference-time machinery for, or is it mostly a pretraining regularizer you can have while also shrinking the cache?
- Paper
Deeper Backpropagation or More Updates? Training Looped Language Models Across Budgets
Studies how many final loop repetitions should keep gradients (the backward window) when training looped LMs, comparing deeper backprop vs more updates across training budgets.
- Paper
Depth through Recurrence: Towards Ultra-Efficient On-Device ASR
Revisits depth in on-device ASR and replaces stacked layers with recurrence over shared layers to get deep-model accuracy at a fraction of the parameters for watches/glasses-class hardware.
- Paper
Don't Stop Long-Context Continual Pre-Training Too Early: An Empirical Scaling Law
Asks how the benefits of long-context continual pre-training (LCCP — the stage after short-context pre-training that extends the window) scale with its token budget, and whether they can be predicted. Setup: five dense full-attention scales S1–S5 (non-embedding N = 31M–821M; total 165M–1.22B; S5 = 36 layers, hidden 1,536, GQA 24Q/2KV heads, vocab 130,560, attention sink enabled), all trained with Muon in bf16 on 16×H800. Short stage: 4K sequences, WSD schedule. LCCP stage: 32K sequences, RoPE base 10,000 → 500,000, LR starting at the 4K stage's terminal value, on a fixed 32K mixture of public + internally curated data (not fully released — exact replication impossible). Metric: LongPPL (Fang et al. 2025) — perplexity only on tokens a reference model (Llama-3.1-8B) predicts well with full context but badly with a 4K chunk (only 1.42% of tokens on 10K GovReport 32K documents); ShortPPL is the matched local-token control. (1) THE LAW: an additive Chinchilla-style power law with short-context tokens D_s and LCCP tokens D_l as SEPARATE predictors — log(LongPPL) = A/N^α + B_s/D_s^β_s + B_l/D_l^β_l + C — fit on 109 Linear-Decay configurations. Held-out-scale extrapolation: fit S1–S4 → S5 R² 0.9516 / MAPE 1.71% (Linear-Decay) and 0.9718 / 0.66% (Constant-Last4), despite S5's ~100B LCCP tokens being >8× the largest D_l in the fitting set; collapsing D_s+D_l into one budget wrecks extrapolation (R² 0.849), and no-offset variants collapse entirely (R² −0.10 / −4.09 on S5) — separating the two budgets is doing real work. (2) CONSTANT-LAST4 PROTOCOL: linear decay needs a pre-committed endpoint, blocking open-ended scaling; their alternative trains LCCP at constant LR (extensible trajectory) but OBSERVES it through the uniform average of the 4 most recent checkpoints — merging is an observation mechanism only, training always continues from the latest raw checkpoint. It tracks budget-matched Linear-Decay endpoints closely (32K LongPPL 2.241 vs raw-constant 2.312; RULER-32K 45.48 vs 44.29), but its small edge shrinks and slightly reverses after the larger SFT budget (−0.16) — the authors explicitly decline to claim merging improves downstream training. (3) DOWNSTREAM: RULER-32K rises across the whole 5N→120N LCCP trajectory with no clear saturation, driven by intermediate-difficulty retrieval (niah_multikey_2 51.2 → 71.2, niah_multivalue 10.2 → 28.75, niah_multiquery 18.75 → 45.0); gains transfer to 128K after a fixed 2.10B-token extension and persist through identical long-context and agentic SFT stages (the agentic arm — GAIA / BFCL-WebSearch / τ²-telecom — improves with upstream 32K LCCP budget). Proxy sanity checks: LongPPL improves much faster than ShortPPL (elasticity ratio 3.35 → 2.22, always >2 — gains are not just general LM improvement), while retrieval-head probes plateau after ~30N even as behavior improves to 120N — mechanistic probes saturate before behavior does. Caveats: everything ≤1.22B params, 32K LCCP (128K only as fixed extension), one data mixture — frontier transfer asserted, not shown; the law is explicitly finite-range (fitted offset C is negative, so it eventually predicts LongPPL < 1 — authors compute the zero crossing and disown asymptotic interpretation); downstream evidence is mostly figure trends at modest absolute levels with non-monotonic per-subtask movement; "no saturation" ≠ no diminishing returns (their own elasticity ratio shrinks); the HF weights release was mid-upload at check time (several checkpoint repos incomplete/"coming soon").
- Paper
Video Generation Models Are Good Latent Reward Models
Extending reward feedback learning (ReFL) to video generation is blocked by pixel-space reward models: they need near-complete denoising plus expensive VAE decoding, OOM on full-frame sequences, and supervise only late-stage steps. PRFL (Process Reward Feedback Learning) conducts preference optimization entirely in latent space. A Process-Aware Video Reward Model (PAVRM) reuses the first 8 DiT blocks of the pretrained video-generation backbone (Wan2.1-14B) as a feature extractor, compresses spatiotemporal features with a learnable query-attention, and predicts motion-quality scores from noisy latents at arbitrary timesteps — trained on human labels of finished videos only, with noise injected at random timesteps (no per-step annotations). Training rolls out gradient-free to a sampled timestep, backpropagates reward through a single gradient-enabled denoising step, and alternates with SFT to prevent over-optimization. On Wan2.1-14B at 480p/720p (T2V and I2V): T2V dynamic degree +46.00 (480p) / +56.00 (720p), human anatomy +10.49 / +12.16; PRFL wins 67% of human comparisons (25 prompts, 30 annotators, 2,250 pairs) vs RGB ReFL. Timestep ablation on 100 prompts: early-only better on motion (DD 51.00 vs 44.00), late-only better on anatomy (HA 91.54 vs 87.52), full-trajectory sampling best on both. PRFL processes all 81 frames within 67 GB VRAM at 1.42×–1.49× faster training than first-frame-only RGB ReFL (whose full-frames variant OOMs). Caveats: the RGB ReFL baseline uses PickScore on the first frame only — a weak comparison; the missing control is the same ReFL setup with a different full-video reward model, so the results support the system but don't isolate the backbone-reward contribution. Author-stated limitation: focuses on motion quality; aesthetics/semantics evaluation left to future work. No code released at catalog time.
- Paper
xHC: Expanded Hyper-Connections
xHC (Expanded Hyper-Connections) is the first Hyper-Connections-family method to achieve meaningful residual-stream expansion beyond N=4. Hyper-Connections expand the Transformer residual stream into N parallel streams (memory scaling beyond width and depth); mHC stabilized this at scale but stopped at N=4, where scaling mHC further gives diminishing gains at rising cost. xHC combines (1) temporal feature augmentation — MLP write-back enriched with multi-scale local features from causal depthwise convolutions (kernels {4,8,12}) over neighboring tokens — with (2) sparse residual-stream updates: dense read access to all N=16 streams, but residual mixing/write-back routed through only k=4 active streams (2 fixed + 2 routed), cutting residual-mapping generation cost from O(N³C) to O(k³C); mixing is Sinkhorn-normalized over active streams. On an 18B MoE, xHC improves the average downstream score over mHC by 4.0 points across 12 benchmarks (3.1 points at 28B, winning 11/12), with only modest extra training FLOPs; vanilla and mHC need 1.50× and 1.19× xHC's compute to reach the same loss; expanding N=4→16 improves xHC's loss by 0.012 at +4% FLOPs vs 0.006 at +32% for mHC. xHC-Flash (sharing full-state ops across sublayers) cuts per-sublayer memory traffic from 73.5C to 40C (Flash-4sub), near mHC's 34C at N=4, while retaining the gains. Fused Triton forward/backward kernels: mHC adds ~15% training overhead over baseline, xHC-Flash-4sub ~11% on top of mHC; inference prefill +11.4%/+12.9%. Author-open-sourced the training code (Megatron-LM based; xHC-Flash not included): github.com/aHapBean/xHC (Apache 2.0).
- Paper
Vela: User Behavior as Supervision Sparks LLM Intelligence
User behavior as supervision: from anonymized behavior records of 100,000 users on a large social media platform, Vela builds 100,000 tasks across 91 real-world question templates. Each user's history (Views, Searches, Purchases, Posts, Follows, Dislikes) is split into a visible segment and a hidden future; Predictive questions (Objective candidate selection; Open-prediction free-form) are scored against ground truth extracted from the hidden future, while Rubric questions (Open summaries; Attribution explanations) are evaluated against task-specific rubrics, both by a larger scorer model (Qwen3.8-2.4T-A95B). Difficulty-based filtering (keep tasks with mean 4-shot score in [0.2, 0.8]) plus trajectory acceptance (best-of-4, must exceed the filtering mean) retains ~75,000 tasks forming Vela-Instruct, with a 9,375-sample self-generated Vela-RFT variant. Fine-tuning Qwen3.6-35B-A3B on Vela-Instruct: VelaBench (982 held-out tasks) 51.5 → 63.0 (+11.5); user-related OOD average 41.3 → 47.5 (+6.2), led by ProfileSummary +10.1 and AdRecommendation +11.2 while PurchaseIntent barely moves (+0.2); general OOD average 54.2 → 58.2 (+4.0), led by IFBench +6.7 and CL-bench Life +5.6, with no regressions on any of the five. More behavior data monotonically improves user-related performance (4.7K → 75K). GSPO reinforcement learning after Vela fine-tuning beats RL from the base model by 7.7 points on both VelaBench and ProfileSummary (using the 18.8K checkpoint). Limitations: proprietary single-platform data means no external reproduction is possible; the task templates, prompts, and code are promised but not released; rubric and scorer-based metrics use the authors' own larger sibling model; VelaBench is same-domain as training; no multi-platform generalization or deployment evidence; all results are the authors' own.
- Paper
Distributionally Robust Mixture-of-Experts Training
The hidden reliability problem in sparse MoE is not uneven utilization but uneven expert competence: imperfect routing sends tokens to experts that were never well trained for them. DRMoET (Distributionally Robust MoE Training) treats each layer's routed experts as endogenous robustness groups and optimizes the layer-wise worst expert-attributed loss — a drop-in objective with no auxiliary losses and no routing changes. It maintains a per-layer distribution over experts, updated by an entropy-regularized softmax on EMA-smoothed (β=0.999), activation-weighted (routing-probability × expert-output-norm, stop-gradient) expert losses, strengthening plausible non-top routing paths while the router, architecture, and sparse forward/backward stay unchanged. Under the FLAME-MoE recipe from-scratch pretraining at 746M-total (~33.5B tokens) and 10.3B-total (67B tokens) scales, evaluated 0-shot on ARC-E/ARC-C, HellaSwag, PIQA, WinoGrande, SciQ, ReCoRD: at 1.7B-10.3B the seven-task average rises 0.6625 → 0.6767 (+1.42pp absolute, +2.14% relative) vs standard FLAME-MoE and 0.6431 for auxiliary-loss-free balancing (Wang et al. 2024, DeepSeek's method) — +3.36pp over aux-loss-free. At 290M-746M DRMoET's best setting reaches 0.5523 vs 0.5403 FLAME-MoE and 0.5084/0.5055 aux-loss-free. Mechanistic probes: expert-loss std −8.58% with mean loss nearly unchanged (−0.05%), worst-expert loss −2.05%; forced mid-k misrouting shows 4.3% lower excess loss degradation; domain–expert specialization metrics all improve (competence advantage ΔQ +30.2%, expert–domain MI +12.9%). Training-throughput measurement shows no slowdown: 67.19 vs 64.17 TFLOP/s/GPU (+4.7%), iteration time −4.6%, lower variance — the authors attribute this to reduced straggler variance rather than an algorithmic guarantee. Convergence guarantee (Theorem 4.1): entropic mirror ascent on the entropy-regularized objective reaches stationarity at Õ(T^(−1/2)). Limitations: two model scales and fixed expert configs; no imbalanced or long-tail evaluations; probes are diagnostics on trained checkpoints.
- Paper
Multi-Stream Attention Residuals
Attention Residuals (AttnRes) replaces fixed residual accumulation with learned depth-wise softmax retrieval over earlier layer outputs — single-head softmax attention along the depth axis. Multi-Stream Attention Residuals (MSAR) generalizes this to multi-head depth attention. The obstacle: in depth attention the retrieved value is the hidden state itself, so AttnRes's channel-splitting into heads degraded performance, and Hyper-Connection-style write-back candidates are near-identical scalar reweightings with little cross-head diversity. MSAR instead draws diversity from the sequence axis: a small set of multi-scale causal depthwise convolutions applied to each layer output produces m (default 4) full-dimensional streams whose receptive fields encode different local-context scales; each stream performs its own softmax retrieval over depth, and the retrieved states are fused by a lightweight H^pre-style adaptive mixer into the single-stream layer input. Because all streams are deterministically regenerated from the single stored residual source on demand, persistent storage and pipeline communication stay O(Nd) — matching AttnRes — and MSAR remains compatible with AttnRes block mode (~8 blocks by default), cache-based pipeline communication, and two-phase inference. Overhead at 28B MoE: +0.5% training FLOPs, +0.3% activated parameters. Across all 12 downstream benchmarks MSAR beats Vanilla, mHC, and AttnRes at both scales: 18B MoE average 45.7 vs 37.5 Vanilla (+8.2), 41.7 mHC (+4.0), 41.8 AttnRes (+3.9), with final training loss 1.750 vs 1.799/1.776/1.769; 28B MoE average 52.4 vs 44.6 (+7.8), 47.4 (+5.0), 49.4 (+3.0). Scaling-law fits across four scales give an iso-loss compute speedup of 1.58× over the standard residual baseline, vs 1.35× for AttnRes and 1.30× for mHC. Ablations on a 10B MoE (Pile loss): MSAR 1.847 vs AttnRes 1.867, mHC 1.871, and a direct AttnRes+mHC hybrid 1.861; removing the convolutions (identical replicated streams with independent queries) raises loss to 1.862, showing contextual source diversity — not merely multiple retrieval heads — carries the gain; two streams capture most of the improvement and eight add little.
- Paper
Fold2Reason: Does Learning Protein Folding Generalize to Broader Reasoning?
Fold2Reason asks whether solved protein structures can serve as a non-linguistic reasoning teacher. It builds FoldingCorpus — 1,200 proteins, 14,400 QA records via 12 deterministic structural operators (contact, distance comparison, segment orientation, center proximity, local direction, chirality, multi-constraint, 32-way global summary) applied to the OpenFold monomer short-protein collection, with 1,000/100/100 train/dev/test proteins in cluster-disjoint partitions and independently recomputed, auditable answers. Fold2Reason post-trains Qwen3.5-9B with LoRA through a shared training-time workspace using two complementary signals: discrete structural answers predicted via the native language head (L_qa) and continuous 3D geometry decoded by a frozen coordinate/distogram decoder (L_geo = coordinate + pair-distance + contact + distogram + local-frame + torsion + radius-of-gyration losses). At inference, protein inputs, workspace, and geometry decoder are all detached — only the adapted LM is evaluated. On FoldBench, structure prediction scores are 2.7–3.5× the base Qwen3.5-9B. On the "General-10" set of 10 benchmarks spanning spatial, graph, scientific, and general reasoning (text, image, and video tasks), macro-average accuracy rises 45.09% → 48.33% (+3.23 pp) across three seeds, positive on all 10 — while matched controls built from random, synthetic, and shuffled structures yield substantially smaller or negative gains. Ablations: FoldingCorpus supervision alone gives +2.93 pp; geometry adds +0.30 pp concentrated in spatial evaluations; gains extend to three Qwen3.5 scales and InternVL3.5-8B (Gemma-4-12B-IT neutral); a 50–4,000-protein study peaks at +3.70 pp with 2,000 proteins.
- Paper
Scaling Trajectories for Complex Tasks through Recursive Self-Rewrite
RSR: use one base model (Qwen-3.8-27B) to discover successes under diverse harnesses, then reconstruct them as training trajectories under a general harness - planner extracts runbooks, critic screens for verifier/solution leakage and guides recursive revision, executor follows qualified runbooks in fresh sandboxes.
- 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
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
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
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
Targeting Pivotal Decisions for Credit Assignment in Agentic Reinforcement Learning
GRPO gives every token in a trajectory the same advantage, so the training signal cannot distinguish decisive steps from the rest. ProVer targets potentially pivotal decisions for fine-grained credit assignment: given a rollout group, an agentic judge contrasts successful and failed trajectories to propose the segment responsible for their divergent outcomes; rather than trusting the judge directly, ProVer verifies the segment by estimating its advantage from the difference in terminal success rates between current-policy continuations sampled before and after the segment, folding positive estimates into the GRPO advantages of policy tokens within the segment. Model judgment is used only to select where to verify, grounding local credit in observed outcomes without exhaustively evaluating every intermediate state. Across ALFWorld, WebShop, and SearchQA, ProVer achieves the strongest average performance at both model scales, with relative improvements over GRPO of 9.91% for Qwen3.5-2B and 7.12% for Qwen3.5-4B; informed segment selection works with modest additional generation overhead even without a frontier-scale judge.
- 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/.