Explore the research collection
2 entries · Follow this search
- Paper
Recurrent Looped Transformer
Splits layers between a parallel causal encoder (token representations + global KV memory) and a recurrent decoder: each token's decoder input is a gated merge of the encoder output and the previous token's final decoder state, so the computation path grows with sequence length at fixed per-token cost. On six small algorithmic tasks (8-layer, ~26–29M, width 512, 3 seeds vs 8-layer decoder-only "GPT Layer 8"): parity trained ≤40 bits → 100±0% at 256 bits vs 50.07±1.63% Transformer; swap-based S₅ at 8× training length → 97.30±2.76% vs 0.85±0.30%; flat mod-5 at length 63 → 93.36±5.69% vs 33.20±2.33%. Controls: RLT-0 (no feedback) → chance on parity and swap-S₅; RLT-2 with 4-token feedback chunks keeps 64-bit parity (98.99±1.66%) but crushes swap-S₅ 100%→19.60±6.54% — permutation tracking needs per-token feedback. Chunking buys training speed: 2.27× faster step at chunk-4 vs RLT-1. Caveats: toy-scale only, no NL pretraining; standard S₅ stays near chance for ALL models (only swap-based tracking won); addition fails beyond 8 digits for every model; flat mod-5 seed-unstable (one split: 17.58/19.53/98.96% across seeds); supervised only — "RL performance is not evaluated" (authors' words); token-sequential recurrence at prefill means S4/Mamba-style parallel scans don't apply.
- 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.