Fox-1 Technical Report

Zijian Hu, Jipeng Zhang, Rui Pan, Zhaozhuo Xu, Shanshan Han, Han Jin, Alay Dilipbhai Shah, Dimitris Stripelis, Yuhang Yao, Salman Avestimehr, Chaoyang He, Tong Zhang · OpenReview

Abstract

We present Fox-1, a series of small language models (SLMs) consisting of Fox-1-1.6B and Fox-1-1.6B-Instruct-v0.1. These models are pre-trained on 3 trillion tokens of web-scraped document data and fine-tuned with 5 billion tokens of instruction-following and multi-turn conversation data. Aiming to improve the pre-training efficiency, Fox-1-1.6B model introduces a novel 3-stage data curriculum across all the training data with 2K-8K sequence length. In architecture design, Fox-1 features a deeper layer structure, an expanded vocabulary, and utilizes Grouped Query Attention (GQA), offering a performant and efficient architecture compared to other SLMs. Fox-1 achieves better or on-par performance in various benchmarks compared to StableLM-2-1.6B, Gemma-2B, Qwen1.5-1.8B, and OpenELM1.1B, with competitive inference speed and throughput. The model weights have been released under the Apache 2.0 license, where we aim to promote the democratization of LLMs and make them fully accessible to the whole open-source community.

Introduction

As Large Language Models (LLMs) scale to hundreds of billions of parameters, the financial and environmental costs of training and deployment have become prohibitive for many researchers and edge-device applications. While "Small Language Models" (SLMs) offer a solution, they often struggle to maintain the reasoning and "System 2" capabilities of their larger cousins.

Fox-1 is a new series of 1.6B parameter SLMs designed to address the challenge of maximizing the performance-to-size ratio. By utilizing a novel three-stage data curriculum and a "deep and thin" architecture, Fox-1 provides a highly efficient, Apache 2.0-licensed alternative for edge computing and low-latency cloud applications. It punches significantly above its weight class, outperforming larger models like Gemma-2B on standard benchmarks.

Methodology

The design of Fox-1 departs from standard SLM conventions to prioritize reasoning and information density.

"Deep and Thin" Architecture

While many SLMs favor wider, shallower networks for easier memorization, Fox-1 utilizes 32 self-attention layers. This is roughly 78% deeper than Gemma-2B (18 layers) and 33% deeper than StableLM-2-1.6B. The authors argue that depth is the primary driver of reasoning capability.

Massive Vocabulary and Efficiency

Fox-1 employs a 256K token vocabulary. While the embedding layer alone accounts for approximately 30% of the model's parameters (0.5B), it increases "information density" per token, effectively extending the context window and improving downstream performance. To mitigate the parameter cost and memory overhead, the model uses Grouped Query Attention (GQA) and Shared Embeddings (where input and output layers share weights).

Three-Stage Data Curriculum

The training process follows a structured curriculum to optimize efficiency and performance:

  1. Stage 1: Foundational training on 1.05T tokens of Common Crawl data with a 2K sequence length.
  2. Stage 2: Scaling to 1.58T tokens from diverse domains (Code, Math, Science) while increasing sequence length to 4K-8K.
  3. Stage 3: A "high-quality" final polish using 62B tokens of instruction-following data and "RewriteBooks"—a dataset of books rewritten by Mixtral-8x22B to enhance pedagogical quality.

Data and Training

The model was trained on a total of 3 trillion tokens for pre-training and 5 billion tokens for fine-tuning. The pre-training mix includes a massive collection of Common Crawl, The Stack (code), ArXiv papers, Wikipedia (20 languages), and Open-Web-Math. A unique component is the RewriteBooks dataset, where high-quality books were processed by Mixtral-8x22B to improve their utility for training.

Performance Evaluation

Fox-1 was benchmarked against the Open LLM Leaderboard standard suite, including ARC Challenge, HellaSwag, TruthfulQA, MMLU, Winogrande, and GSM8k.

Fox-1 achieves a superior performance-to-parameter ratio compared to other leading SLMs.

Fox-1 achieved an average score of 47.13% across major benchmarks, surpassing Gemma-2B (46.36%), Qwen1.5-1.8B (46.81%), and StableLM-2-1.6B (45.92%). A standout result was observed in the GSM8k (5-shot) math benchmark, where Fox-1 scored 36.39%, nearly doubling the performance of Gemma-2B (17.06%).

Benchmark breakdown showing Fox-1's significant lead in mathematical reasoning (GSM8k).

In terms of deployment efficiency, the model achieves a throughput exceeding 200 tokens per second on a single H100. For edge deployment, it requires only 3.7GB of VRAM in BF16 precision, making it accessible for consumer hardware and mobile devices.

Discussion and Future Work

The success of Fox-1 highlights several key insights:

  • The Vocabulary Trade-off: The 500-million-parameter "tax" on the embedding layer is justified by the resulting increase in information density.
  • Curriculum Strategy: Transitioning from 2K to 8K sequence lengths optimized the quadratic cost of the attention mechanism while building capacity.
  • Depth for Reasoning: The strong performance on GSM8k suggests that the "deeper" architecture successfully translated into better logical processing.

Current limitations include a primary optimization for English despite the multilingual vocabulary. Future work will focus on releasing dedicated multilingual versions and exploring the optimal ratio between embedding and transformer parameters.

Summary updated

BibTeX
@misc{hu2024fox,
  author = {Zijian Hu and Jipeng Zhang and Rui Pan and Zhaozhuo Xu and Shanshan Han and Han Jin and Alay Dilipbhai Shah and Dimitris Stripelis and Yuhang Yao and Salman Avestimehr and Chaoyang He and Tong Zhang},
  title = {{Fox-1 Technical Report}},
  year = {2024},
  eprint = {2411.05281},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.05281},
}
Figure