xGen-small Technical Report
Erik Nijkamp, Bo Pang, Egor Pakhomov, Akash Gokul, Jin Qu, Silvio Savarese, Yingbo Zhou, Caiming Xiong
TL;DR
xGen-small presents a pair of compact decoder transformers (4B and 9B) engineered for true long-context processing up to 128K tokens. The approach combines domain-balanced, frequency-aware data curation, distributional sharpening during pre-training, and a two-stage length-extension workflow with Rotary Position Embeddings, followed by a three-phase post-training pipeline (SFT, DPO, GRPO) to achieve strong reasoning, math, and coding capabilities at reduced deployment costs. Empirical results show competitive or superior performance to similarly sized open models across standard benchmarks (MMLU, GSM8K, HumanEval) and long-context assessments (RULER), with notable gains in math and coding after post-training. These findings suggest that compact models, when backed by carefully engineered data pipelines and alignment procedures, can deliver state-of-the-art results for enterprise settings where latency, cost, and privacy are critical.
Abstract
We introduce xGen-small, a family of 4B and 9B Transformer decoder models optimized for long-context applications. Our vertically integrated pipeline unites domain-balanced, frequency-aware data curation; multi-stage pre-training with quality annealing and length extension to 128k tokens; and targeted post-training via supervised fine-tuning, preference learning, and online reinforcement learning. xGen-small delivers strong performance across various tasks, especially in math and coding domains, while excelling at long context benchmarks.
