Sample-Efficient Language Modeling with Linear Attention and Lightweight Enhancements
Patrick Haller, Jonas Golde, Alan Akbik
TL;DR
The paper tackles the challenge of sample-efficient language modeling under BabyLM’s strict data and epoch limits by swapping self-attention for a linear-time mLSTM token mixer (BLaLM) and applying lightweight enhancements such as ShortConv, Sliding Window Attention, Dynamic Modulation, and Hedgehog feature maps. It also investigates the Muon optimizer as a superior alternative to AdamW for matrix-shaped parameters, all within a curated, pedagogy-focused corpus. Across experiments, linear attention with local enhancements yields strong zero-shot performance in low-resource settings and competitive results at higher scales, while Muon stabilizes training and reduces perplexity. Collectively, the work offers practical, data-efficient design choices for compact language models that avoid reliance on scale alone and provides actionable guidance for educational NLP applications within tight resource constraints.
Abstract
We study architectural and optimization techniques for sample-efficient language modeling under the constraints of the BabyLM 2025 shared task. Our model, BLaLM, replaces self-attention with a linear-time mLSTM token mixer and explores lightweight enhancements, including short convolutions, sliding window attention with dynamic modulation, and Hedgehog feature maps. To support training in low-resource settings, we curate a high-quality corpus emphasizing readability and pedagogical structure. Experiments across both STRICT and STRICT-SMALL tracks show that (1) linear attention combined with sliding window attention consistently improves zero-shot performance, and (2) the Muon optimizer stabilizes convergence and reduces perplexity over AdamW. These results highlight effective strategies for efficient language modeling without relying on scale.
