Explore the research collection
2 entries · Follow this search
- Paper
Length Generalization Needs Proper Regularization
Argues transformers need no architectural changes for length generalization — proper dropout regularization suffices, making the problem architecture-agnostic rather than a positional-encoding or attention-mechanism question. Diagnoses training-procedure culprits for extrapolation failure: weight decay can hinder extrapolation, while dropout improves it only when its placement is reconsidered — standard dropout before layer normalization introduces a systematic distributional mismatch; applying dropout just before the linear projection resolves it. Proposes Variance-Preserving Affine Dropout (VPAD), which substantially reduces the resulting pre-activation variance mismatch and further improves extrapolation; VPAD is complementary to attention-scaling methods. Results: modified SmolLM3 with sliding-window attention, continually pre-trained with dropout, extrapolates perfectly to 64x on Needle-in-a-Haystack and far beyond pre-training context on RULER and HELMET; training SmolLM3 from scratch reaches RBA 100.0 at 32x training length; matches a 'perfect' baseline at 2-8x extrapolation and improves on ICL/NIAH/RULER at longer contexts. Mamba2 also benefits from dropout, supporting the architecture-agnostic claim. CC BY 4.0 license. Directly relevant to the user's long-context training work (3:1 SWA:full-attention hybrid stack) — the dropout-placement fix applies to their architecture too.
- Paper
RRSI: Regularized Recursive Self-Improvement of Agent Harnesses
RRSI regularizes BOTH proposal (annealed L0-style edit budget, evidence-aware credit, structured exploration on stall) AND selection (leakage critic, noise-adjusted floor, Ridge-style cost-aware acceptance, L1-style structural pruning) while keeping the harness fully editable. Evaluated on 8 benchmarks across 3 domains. Key numbers: up to +14.1 evolve (Gemini 3.5 Flash on Terminal-Bench 64.6→78.7); up to +4.7 OOD; ~30% fewer policy tokens than unregularized evolution. Claude Opus 4.8 frozen policy main; SWE-bench Verified 82.0→83.8 OOD; Harvey LAB evolve 90.5, OOD avg JobBench/GDPval/APEX 43.6 vs H0 39.7; ablation removing regularizers raises evolve but hurts OOD. Baselines: Meta-Harness, AHE, TTHE, HarnessX. Code MIT-style at google-research/rrsi.