On the Efficiency of Structured Pruning in Small Language Model Pretraining
Under full-cost accounting, where the tokens spent pretraining the enlarged model count against the budget, conventional enlarge-and-prune pipelines with separate train, prune and recover stages do not reliably beat training a small language model from scratch. IDEA Prune fixes this by folding enlarged-model pretraining, iterative structured pruning and recovery into a single cosine annealing learning-rate schedule. Compressing 2.8B models to 1.3B with up to 2T tokens, it reaches 46.4% MMLU versus 31.4–33.4% for conventional pipelines, modestly beats the scratch baseline, and keeps its edge after supervised fine-tuning. Pruning works better from intermediate checkpoints than from fully converged ones, and an enlargement factor of about 2.6× gave the best pruned models in the tested regime.
Related posts
- Large Language Models: A New Moore's Law?
Hugging Face easyNoviceMegatron-Turing NLG 530B and the 10x-per-year growth in language model size look like a new Moore's Law heading for diminishing returns, with roughly $100M of DGX A100 hardware, 6.5 kW per server and a large carbon footprint buying only small benchmark gains. Most teams are better served by starting from pretrained models and choosing the smallest one that meets their accuracy target. Distilled or compact models such as DistilBERT (97% of BERT's language understanding, 40% smaller, 60% faster) and T0 (beats GPT-3 on many tasks at 16x smaller) show this is practical. Fine-tuning instead of training from scratch, running on cloud infrastructure, and applying pruning, layer fusion and quantization further cut cost and energy.
- Can we change an AI model’s architecture without retraining it from scratch?
Amazon Science hardMasterPriming converts pretrained Transformers into hybrid state space models by reusing attention query/key/value projections as SSM input projections. Layers that tolerate sliding-window substitution are distilled into SSM layers, and the full hybrid is then fine-tuned, using under 0.5% of the source model's pretraining tokens. In controlled comparisons Gated KalmaNet beats Gated DeltaNet, which beats Mamba-2, and SSM hybrids beat sliding-window attention hybrids even when the window gets 2–4× the memory. A 32B GKA hybrid matches Qwen3-32B on reasoning while decoding up to 2× faster at 128K context, offers a runtime iteration knob trading accuracy for speed, and extends to 256K context training-free via state composition. Models, training code, Triton kernels and a vLLM plugin are released under Apache 2.0.
- Introducing Olmicro: Small, efficient hybrid models built in the open
Hugging Face hardMasterOlmicro is a suite of five fully open base language models (275M to 2.7B parameters) trained with one three-stage recipe. The models use a hybrid architecture of 80% Gated DeltaNet recurrent layers and 20% full-attention layers with no positional encodings, and support 64K context. Olmicro 2.7B roughly matches SmolLM3 3B on OlmoBaseEval (56.5 vs 56.7) with less than half the training tokens, and needs an estimated 1.55 GiB of context memory at 65K tokens versus 7.50 GiB for an all-attention equivalent. RL alone at least doubles MATH-500 accuracy across all sizes in 400 steps, and the release includes 1,707 intermediate checkpoints, data and code for small-compute research.
- Apriel-H1: The Surprising Key to Distilling Efficient Reasoning Models
Hugging Face hardMasterServiceNow converted its 15B Apriel reasoning model into a Mamba/attention hybrid via distillation, reaching 2.1x throughput with small benchmark shifts (MATH500 up, GPQA and AIME24 slightly down) using 76.8B tokens. The key finding is that distilling on the teacher's high-quality SFT reasoning traces works, while pretraining data or mixed data degrades reasoning. Reverse KL beat forward KL. A staged procedure does the conversion: leave-one-out layer importance for the first 25 layers, then a dynamic MIL-Mamba-Replacement loss heuristic to progressively reach 30–40 Mamba layers, with the 40-layer variant reaching 3.4x throughput. Training uses the open-source Fast-LLM framework, inference runs on Transformers and vLLM, and the authors warn that hybrid deployment tooling is still immature.
- What is LLM fine-tuning?
Modal mediumAdept
Fine-tuning adjusts a pretrained LLM's weights for a specific task or domain, often matching larger models' quality at lower cost and latency. One cited example puts a fine-tuned Llama 7B at roughly 50x cheaper per token than GPT-3.5. The guide compares where to fine-tune (OpenAI, Predibase, Modal, Colab, SageMaker) and which frameworks to use (HuggingFace transformers, TRL, Axolotl). It then walks through choosing a base model, formatting and tokenizing an instruction dataset with optional custom special tokens, training, and efficiency techniques such as LoRA-based PEFT and quantization.