Abstract
Large Language Models (LLMs) and Multimodal Large Language Models (MLLMs) have made significant advancements in reasoning capabilities. However, they still face challenges such as high computational demands and privacy concerns. This paper focuses on developing efficient Small Language Models (SLMs) and Multimodal Small Language Models (MSLMs) that retain competitive reasoning abilities. We introduce a novel training pipeline that enhances reasoning capabilities and facilitates deployment on edge devices, achieving state-of-the-art performance while minimizing development costs. InfiR aims to advance AI systems by improving reasoning, reducing adoption barriers, and addressing privacy concerns through smaller model sizes.
Introduction
The rapid evolution of Large Language Models (LLMs) like GPT-4 and Llama-3 has set new benchmarks for complex reasoning, mathematical problem-solving, and code generation. However, these models are "compute-hungry" giants, requiring massive GPU clusters for inference and raising significant privacy concerns due to their reliance on cloud-based deployment. Small Language Models (SLMs)—typically under 2 billion parameters—offer a promising alternative for edge computing and privacy-sensitive applications.
Despite their potential, SLMs often suffer from a "reasoning tax," where reduced parameter counts lead to significant performance drops in logical and multi-step tasks. InfiR addresses this gap by demonstrating that a specialized training pipeline and high-quality data can enable 1B-scale models to achieve state-of-the-art reasoning performance, rivaling much larger counterparts.
Methodology: The InfiR Training Pipeline
The development of InfiR models follows a sophisticated three-stage "crafting" process designed to maximize reasoning density within a small parameter budget.
1. Reasoning-Focused Pre-training
The models are pre-trained on 900 billion tokens. Unlike standard pre-training which often prioritizes volume, InfiR employs a "reasoning-oriented text recall" strategy. This involves using model-based classifiers (FastText) to identify and prioritize web content that exhibits high logical density, analytical thinking, and structured argumentation.
2. The Annealing Phase
A critical innovation in the InfiR pipeline is the "annealing" phase, which serves as a bridge between general pre-training and supervised fine-tuning. During this stage, the base model is trained on an additional 40 billion tokens of ultra-high-quality data, including math, code, and synthetic reasoning samples. By using a decaying learning rate, this phase allows the model's knowledge to "settle" into a state optimized for complex logic.
3. Post-training and Data Synthesis
Supervised Fine-Tuning (SFT) is conducted using a specialized Data Synthesis Pipeline. This includes "instruction evolution" to increase prompt complexity and "rejection sampling," where stronger models or code sandboxes validate reasoning paths. This ensures that only high-fidelity logical sequences are used for training.
Multimodal Small Language Models (MSLM)
For the multimodal InfiR-VL variants, a hierarchical curriculum is employed. The training progresses from image-text alignment to unfreezing the vision encoder for detailed feature learning. Finally, the entire system is fine-tuned on complex visual reasoning tasks, such as graphical user interface (GUI) navigation and visual mathematics.
Experimental Results
InfiR models establish new state-of-the-art benchmarks for the 1B parameter class across multiple reasoning-intensive domains.
Reasoning and Mathematics
InfiR-1B-Instruct achieved a score of 70.9% on the GSM8K benchmark and 46.4% on the MATH benchmark. These results represent a significant leap over existing models; for instance, it outperforms Llama-3.2-1B-Instruct by 23 percentage points on GSM8K.
Coding Prowess
On the HumanEval coding benchmark, InfiR-1B-Instruct scored 58.54%, substantially surpassing the 39.63% achieved by Llama-3.2-1B. This demonstrates that the model's reasoning capabilities translate effectively to structured programming tasks.
Multimodal Performance
The InfiR-VL-1.6B model showed exceptional performance in the "Android World" scenario, achieving a 28% accuracy increase over previous small-scale multimodal models. This proves its ability to reason through complex smartphone UI trajectories and visual contexts.
Key Insights and Conclusion
The success of InfiR highlights several critical insights:
- Data Quality over Quantity: High logical density in training data is more impactful than sheer token volume for small models.
- The Annealing Bridge: Specialized annealing is essential for transitioning small models to high-level reasoning tasks.
- Curriculum Learning for Vision: A staged approach to unfreezing vision encoders prevents catastrophic forgetting of language capabilities.
While InfiR sets a new standard for 1B-scale models, future work will explore scaling these techniques to 3B-7B models and refining long Chain-of-Thought (CoT) capabilities to match the reasoning depth of the largest frontier models.
Summary updated