Abstract
Recently, Large Language Models (LLMs) have undergone a significant transformation, marked by a rapid rise in both their popularity and capabilities. Leading this evolution are proprietary LLMs like GPT-4 and GPT-o1, which have captured widespread attention in the AI community due to their remarkable performance and versatility. Simultaneously, open-source LLMs, such as LLaMA, have made great contributions to the ever-increasing popularity of LLMs due to the ease to customize and deploy the models across diverse applications. Although open-source LLMs present unprecedented opportunities for innovation and research, the commercialization of LLMs has raised concerns about transparency, reproducibility, and safety. Many open-source LLMs fail to meet fundamental transparency requirements by withholding essential components like training code and data, which may hinder further innovations on LLMs. To mitigate this issue, we introduce Moxin 7B, a fully open-source LLM developed, adhering to principles of open science, open source, open data, and open access. We release the pre-training code and configurations, training and fine-tuning datasets, and intermediate and final checkpoints, aiming to make continuous commitments to fully open-source LLMs. After pre-training the base model, we finetune the Moxin Base model with SOTA post-training framework and instruction data to obtain Moxin Instruct model. To improve the reasoning capability, we further finetune our Instruct model with chain-of-thought data distilled from DeepSeek R1, and then use Group Relative Policy Optimization (GRPO) following DeepSeek R1 to finetune our model, leading to the Moxin Reasoning model. Moreover, we develop our vision language model based on our Moxin model. Experiments show that our models achieve superior performance in various evaluations such as zero-shot evaluation, few-shot evaluation, and CoT evaluation.
1. Introduction
The AI community is currently navigating a period of "open-washing," where many models marketed as "open-source" (e.g., Llama or Mistral) are effectively "open-weight." While these models provide final parameters, they often withhold the training data, code, and configurations necessary for true reproducibility. This lack of transparency hinders innovation and complicates safety assessments.
Moxin-7B addresses these challenges by adhering to the Model Openness Framework (MOF), providing a blueprint for open science. Beyond transparency, Moxin-7B explores whether small-scale models (7B parameters) can master complex reasoning tasks previously reserved for much larger architectures through advanced reinforcement learning techniques.
2. Model Architecture
The Moxin-7B architecture is an evolution of the Mistral 7B design. Key modifications include increasing the depth from 32 to 36 transformer blocks to enhance representational capacity. The model utilizes Grouped-Query Attention (GQA) to optimize inference efficiency and Sliding Window Attention (SWA) to support a context length of up to 32K tokens.
As shown in the architectural summary above, the model maintains a hidden dimension of 4096 and a head dimension of 128, utilizing 32 attention heads and 8 key-value heads to balance performance and memory overhead.
3. Training Methodology
The development of Moxin-7B follows a rigorous three-stage pipeline:
3.1 Pre-training
The base model was pre-trained on over 2 trillion tokens, including a mixture of SlimPajama (627B tokens), DCLM-BASELINE, and The Stack for code proficiency. This stage represents a significant investment in open data, with all configurations and intermediate checkpoints made public.
3.2 Post-training and Instruction Tuning
The base model underwent Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO) using the Tülu 3 framework and the 10-million-sample Infinity Instruct dataset. This process ensures the model follows complex user instructions reliably.
3.3 Reasoning Enhancement via GRPO
To boost logic and mathematical capabilities, we employed Group Relative Policy Optimization (GRPO). Unlike standard PPO, which requires a separate "critic" model, GRPO computes rewards relative to a group of outputs from the same prompt. This significantly reduces memory requirements, making reinforcement learning feasible for 7B models on consumer-grade hardware. We further seeded the Chain-of-Thought (CoT) process using high-quality reasoning data distilled from DeepSeek-R1.
3.4 Vision-Language Integration
Using the Prismatic VLM framework, we fused the Moxin backbone with DINOv2 (for spatial features) and SigLIP (for semantic features). This dual-backbone approach allows the model to better understand both the "what" and "where" of visual inputs.
4. Experimental Results
Our evaluations demonstrate that Moxin-7B punches well above its weight class:
- General Benchmarks: Moxin-7B-Enhanced achieved an average score of 75.44 across standard benchmarks (HellaSwag, ARC), outperforming Llama 3.1-8B (73.79).
- Reasoning Performance: On the MATH 500 benchmark, the Moxin-7B-RL model achieved a 68.6% Pass@1 accuracy. This significantly exceeds the performance of much larger models, such as Llama-3.1-70B-Instruct (40.48%).
- Multimodal Capabilities: Moxin-VLM outperformed LLaVA v1.5 7B across nearly all metrics, particularly in spatial reasoning (GQA) and reducing hallucinations (POPE).
5. Conclusion
Moxin-7B demonstrates that the principles of open science and high-performance reasoning are not mutually exclusive for small-scale models. By releasing all components of the training pipeline, we aim to foster a more transparent and collaborative AI research environment. Future work will focus on reducing dependency on distilled data and scaling this methodology to larger model architectures.
Summary updated