Explore the research collection
6 entries · Follow this search
- 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
The Best Optimizer Depends on Batch Size
Adaptive optimizers are benchmarked at one batch size, while hyperparameter scaling rules promise that the best optimizer at one batch size stays the best at another. This paper challenges both practices. (1) No principled scaling rule for Muon works consistently across settings: the authors derive and test three competing rules against Muon - linear LR from SDE-matching, square-root LR from minimizing a convergence bound, and fixed LR with scaled weight decay from Power Lines - tuning at a reference batch size for LM and image classification, then growing batch size at fixed token budget across hundreds of rule variants; the best rule depends on task and target batch size. (2) The best optimizer for LM pretraining changes with batch size even after extensive retuning: Adam, Lion, Muon, SOAP, and Shampoo were each retuned at every batch size from 128K to 2M tokens at fixed total budget under both weight decay and HyperBall (fixed hidden-matrix norms). Under HyperBall, Muon beats Shampoo at 128K tokens/update while Shampoo beats Muon at 2M. Theory on a noisy quadratic explains why: Newton's method divides gradients by curvature, cutting bias (remaining initialization error) at the cost of higher variance from noisy gradients; larger batches shrink variance, so rankings can reverse even with optimally tuned learning rates. A SignSGD toy model shows LR scaling shifts from square-root toward linear as the curvature-to-noise ratio (CNR = h^2/c) increases - the right rule depends on landscape and noise, not just the optimizer. A sharp-subspace intervention pins down where the batch-size penalty lives: checkpoint-branching from 128K to 2M with small-batch updates kept only in the sharpest 768 directions (~0.001% of matrix-parameter space) removes up to 59.5% of the local batch-size penalty (a random same-size subspace removes at most 3%); the benefit largely fades late in training.
- 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
Towards Differentially Private Reinforcement Learning with General Function Approximation
We present the first theoretical guarantees for differentially private online reinforcement learning (RL) with general function approximation, extending beyond prior work restricted to tabular and linear settings. Our approach combines a batched policy update scheme with the exponential mechanism, together with a novel regret analysis. We show that, even under general function approximation, the regret in the model-free setting under differential privacy matches the state of the art for the linear case, scaling as…
- Paper
AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration
Large language models (LLMs) have transformed numerous AI applications. On-device LLM is becoming increasingly important: running LLMs locally on edge devices can reduce the cloud computing cost and protect users' privacy. However, the astronomical model size and the limited hardware resource pose significant deploymen…
- 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.