Explore the research collection
13 entries · Follow this search
- 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
Elucidating the Design Space of LM Data Attribution
Introduces the Controlled Attribution Benchmark (CATT) to isolate why LM training-data attribution methods fail by varying dataset properties one at a time (Bau lab).
- Other
ScalingDepth
ScalingDepth is a community hub for tracking residual-connection research — the "zoo of residual designs" (mHC, iHC, oHC, xHC, AttnRes variants and more). It collects residual designs with one-line update rules in unified shared notation so the design differences are visible at a glance, and runs DepthBench: controlled comparisons of designs at a fixed parameter count across width–depth ratios, with open code and checkpoints, plus a research/papers/tutorials/blogs aggregation. Its "short history" runs from Highway Networks/ResNet (2015) through Pre-LN (2020), DeepNorm (2022), Depth-µP/CompleteP/Hyper-Connections/DenseFormer/mHC (2023–25), to AttnRes/MoDA/KEEL/SiameseNorm/KiteNorm (2026). Community-driven: new methods, follow-ups, reproductions, or analysis are added by opening a PR against a data file. Open to showcasing community blogs, posts, and unexpected findings.
- 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
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
Q-Sparse: All Large Language Models can be Fully Sparsely-Activated
Q-Sparse applies top-K (absolute-value) masks on activations of all linear layers, STE so non-selected grads are not zeroed, optional 8-bit quantized top-K, squared-ReLU/ReLU²GLU in FFNs, and Block Q-Sparse (N:M, e.g. 16:32) for batched GPU kernels. Inference-optimal sparsity ~45.58% full-precision (1.84× params at matched activated N_a) and ~61.25% for 1.58-bit. From-scratch 40% sparsity matches dense loss at the same size/tokens (RedPajama 50B). Continue-train Mistral-7B: 3.8B activated avg 63.7 vs dense 64.6 (ARC/HS/MMLU/WG/TQA); 2.9B 61.7, beating ReLUfication 60.8 and dReLU 61.0. Works with BitNet b1.58. No official code on abs.
- Paper
BitNet a4.8: 4-bit Activations for 1-bit LLMs
Hybrid recipe: INT4 activations into attention/FFN, plus sparsify then 8-bit on outlier-heavy intermediate states. Two-stage continue-training from BitNet b1.58 (W1.58A8 then W1.58A4; last 5B tokens for the 4-bit stage). Matches b1.58 at equal train cost while enabling 4-bit kernels; ~55% of parameters activated and 3-bit KV cache. 7B: 44.5% overall sparsity / 3.4B active vs b1.58 6.0B; a 2B model on 2T tokens stays at parity with b1.58. No official code on abs.
- Paper
One LR Doesn't Fit All: Heavy-Tail Guided Layerwise Learning Rates for LLMs
Uniform LR ignores Transformer heterogeneity. LLR fits a power-law to each layer's weight-correlation ESD (PL_Alpha_Hill) and maps weaker heavy tails (embeddings/FFN) to larger LRs and stronger tails (attention) to smaller ones, with embedding pinned at the upper bound, a soft LR switch, and updates only in the first 20% of tokens. Transfers the uniform baseline's near-optimal global LR. LLaMa-1B FineWeb: zero-shot avg 47.09→49.02; 3B 48.58→50.61; up to 1.5x token speedup. Beats LARS/LAMB/Sharpness/TempBalance/AlphaDecay; also helps Muon and GPT-nano. Code https://github.com/hed-ucas/Layer-wise-Learning-Rate.
- Paper
DepthBench: Measuring How Residual Connections Enable More Computational Depth
Introduces DepthBench, a controlled benchmark for studying computational depth across architectures, proposing effective computational depth as a new scaling axis. Systematically varies the width-depth aspect ratio (d_model/n_layer) from shallow-wide to deep-narrow shapes while keeping model size and the pretraining recipe fixed, across 10 representative architectures. Finds the benefit of allocating capacity to depth is strongly architecture-dependent: standard Pre-LN and most norm- and scaling-based variants (e.g. LayerNorm Scaling) give little benefit and can even degrade as models get deeper and narrower, whereas HC and Full AttnRes improve consistently even at extreme deep shapes. Gains extend beyond pretraining loss into improved domain-specific performance and effective computation; layer-level analyses link HC/Full AttnRes gains to more effective utilization of additional layers via distinct mechanisms. Concludes residual-connection design determines whether depth can serve as a meaningful scaling axis.
- Paper
Logic-of-Thought: Injecting Logic into Contexts for Full Reasoning in Large Language Models
Addresses unfaithful CoT-style reasoning by Logic Extraction → Logic Extension (formal rules) → Logic Translation into natural-language augmentations. Orthogonal to CoT/SC/ToT; reported gains e.g. +4.35% CoT on ReClor, +8% ToT on ProofWriter. Discord linked Forbes article; cataloged to arXiv 2409.17539.
- Paper
HRM-Text: Efficient Pretraining Beyond Scaling
Sapient Intelligence 1B Hierarchical Recurrent Model for language: slow H-module and fast L-module (2 H cycles x 3 L updates = 8 steps / 4 effective recursions), MagicNorm, warmup deep credit assignment (K=2 to K=5), sigmoid-gated attention, RoPE. Trains only on instruction-response pairs with response-only NLL and PrefixLM bidirectional prompt attention. 40B unique / 60B training tokens, ~$1500, 1.9 days on 16 H100s. Reports MMLU 60.7, ARC-C 81.9, DROP 82.2, GSM8K 84.5, MATH 56.2; competitive with several 2-7B open models at 96-432x less estimated compute and 100-900x fewer tokens. Ablations: HRM beats FLOP-matched Transformer/looped/RINS; task-completion + PrefixLM each move the needle. Discord post is a third-party ablation read (huskydogewoof) of Table 3/4, not the authors.
- Model
BitNet b1.58 2B4T
Packed ternary BitNet weights (~2B) trained from scratch on 4T tokens (SmolLM-Corpus, dclm-baseline-1.0, open-web-math) then SFT+DPO. Architecture: BitLinear, RoPE, ReLU² FFN, subln, no biases; LLaMA 3 tokenizer (128,256); ctx 4096. Card: non-emb memory 0.4GB, CPU decode 29ms, energy 0.028J vs 1–2B dense open models; average 54.19 vs Qwen2.5-1.5B 55.23 (GSM8K 58.38). Efficiency needs microsoft/BitNet (bitnet.cpp), not stock transformers. Siblings: bf16 master weights and GGUF.
- Dataset
Webscale-RL
Webscale-RL is a large-scale reinforcement learning dataset containing approximately 1.2 million verifiable question-answer pairs across more than 9 domains, created by an automated pipeline that converts large-scale pre-training documents into RL-ready data. It was released by Salesforce AI Research alongside the paper 'Webscale-RL: Automated Data Pipeline for Scaling RL Data to Pretraining Levels' (arXiv:2510.06499). Experiments show that models trained on this dataset achieve performance comparable to continual pre-training with up to 100x fewer tokens.