Introduction
Salesforce AI Research has introduced xGen-small, a family of compact Transformer models with 4B and 9B parameters. These models are designed to address the growing need for efficient, high-performance AI in enterprise environments where massive LLMs are often impractical due to high latency and operational costs. Despite their smaller footprint, xGen-small models bridge the performance gap in complex domains like mathematics, coding, and long-document processing.
Methodology: A Vertically Integrated Pipeline
The superior performance of xGen-small stems from a specialized development pipeline that optimizes data curation, training stages, and reinforcement learning.
1. Frequency-Aware Data Curation
Standard data pipelines often prioritize aggressive deduplication, which can remove valuable natural frequency signals. xGen-small treats document frequency as a quality indicator, retaining "top-k" fuzzy duplicates to maintain lexical diversity while using frequency metadata to guide sampling.
2. Distributional Sharpening and Quality Annealing
Pre-training is conducted in stages, starting with a broad 8-trillion-token corpus. The process then "anneals" the distribution toward higher-quality subsets. This ensures the model builds a robust general language foundation before specializing on the most informative data.
3. Two-Stage Context Extension
To support a 128k token window, the models utilize a two-stage extension process (4k → 32k → 128k). This involves tuning Rotary Position Embeddings (RoPE) and implementing cross-document attention masking to ensure efficiency and coherence at extreme lengths.
4. Advanced Post-Training with GRPO
Beyond standard fine-tuning, the researchers employed Group Relative Policy Optimization (GRPO). This online reinforcement learning technique significantly enhances reasoning rigor, particularly in STEM and coding tasks.
Key Results and Evaluation
The xGen-small models were evaluated against leading open-weights competitors across a wide array of benchmarks, including MMLU, GSM8K, and HumanEval.
Performance in Math and Coding
The impact of GRPO is most evident in mathematical reasoning. The xGen-small-9B-instruct model achieved a 91.6 on MATH, a dramatic increase from its base score of 52.5. In comparison, Llama-3.1-8B scored 48.9. In coding, the 9B model also showed strong results on HumanEval and MBPP.
Chat and Long-Context Robustness
On the Arena-Hard benchmark, xGen-small-9B scored 60.1, nearly doubling the score of Llama-3.1-8B (28.9). Furthermore, on the RULER benchmark, which tests retrieval and reasoning up to 128k tokens, xGen-small-9B maintained a flat performance curve. It achieved an average score of 86.42, showing only a ~2 point drop from 4k to 128k, whereas competitors often see significant degradation beyond 32k.
Discussion and Insights
- Frequency as a Signal: Explicitly tracking natural frequency in web data helps models prioritize information breadth and longevity.
- Latent Reasoning Capabilities: The massive jump in MATH scores post-RL suggests that compact models possess significant latent reasoning abilities that require specific reinforcement strategies to unlock.
- Efficiency at Scale: Both the 4B and 9B models offer high performance-to-size ratios, making them ideal for low-latency or edge applications without sacrificing the reasoning depth typically associated with larger models.
Limitations
This release is intended for research purposes. While safety supervised fine-tuning was performed, the authors recommend additional red-teaming for specific enterprise use cases. Future work may explore how these curation and annealing techniques scale to larger parameter counts and more diverse, low-resource languages.
Summary updated