TL;DR
CoCoMix (Continuous Concept Mixing) is a novel pretraining framework that moves beyond simple next-token prediction by forcing models to explicitly predict and "think" in high-level semantic concepts. By interleaving these continuous concept representations into the model's hidden states, CoCoMix achieves the same performance as standard training using 21.5% fewer tokens while providing built-in interpretability and steerability.
The Limitations of Next Token Prediction
The dominant paradigm for training Large Language Models (LLMs) is Next Token Prediction (NTP). While highly effective, NTP is fundamentally superficial. It treats language as a sequence of discrete, often low-level tokens. To learn high-level reasoning and abstract concepts, models currently require massive amounts of data to eventually stumble upon these patterns.
Standard pretraining lacks an explicit mechanism to bridge fine-grained tokens with abstract semantic concepts. Previous attempts to address this, such as adding "pause tokens" (giving the model extra FLOPs to process) or knowledge distillation, do not explicitly model the underlying conceptual space. CoCoMix aims to make these abstract concepts a first-class citizen during the pretraining process.
The CoCoMix Framework
CoCoMix introduces a three-step pipeline integrated directly into the transformer pretraining process:
- Concept Extraction & Selection: The framework uses a pretrained Sparse Autoencoder (SAE) to decompose the hidden states of a "teacher" model into thousands of interpretable concepts. To filter out noise, it uses attribution scores (multiplying concept activations by the gradient of the loss) to select only the concepts that actively help predict the next token.
- Concept Prediction: During pretraining, the "student" model is tasked with two simultaneous goals: predicting the next discrete token and predicting the top $K$ important continuous concepts identified in the first step.
- Continuous Concept Mixing (Interleaving): Instead of just predicting concepts as an auxiliary side-task, the model takes its predicted concept vectors and interleaves them into its own hidden sequence. If the hidden states are $h_1, h_2, \dots$, the model processes $(h_1, \hat{c}_1, h_2, \hat{c}_2, \dots)$, where $\hat{c}$ is the compressed representation of the predicted concepts. This forces the model to internalize the concepts and use them to inform subsequent token predictions.
Experimental Setup
The models were trained on OpenWebText (a standard high-quality web crawl) and OpenWebMath (to test handling of distribution shifts in technical domains). Evaluation spanned a battery of standard benchmarks, including LAMBADA and WikiText-103 for language modeling, as well as reasoning tasks like HellaSwag, PIQA, SIQA, ARC-Easy, and WinoGrande.
Key Findings & Results
- Sample Efficiency: A 1.38B parameter CoCoMix model achieved the same validation perplexity as a standard NTP model while using 21.5% fewer training tokens. While interleaving increases the sequence length (and thus the computational cost per token), the gain in sample efficiency allows the model to reach target performance levels much faster in terms of total training time.
- Consistent Superiority: Across all tested scales (69M, 386M, and 1.38B parameters), CoCoMix consistently outperformed standard NTP, Knowledge Distillation (KD), and "Pause Token" baselines on downstream reasoning tasks.
- Interleaving is Essential: Simply predicting concepts as an auxiliary loss provides only modest gains. The real performance jump comes from mixing those concepts back into the hidden states, allowing the model to leverage that abstract information for its next computation.
- Weak-to-Strong Supervision: Concepts extracted from a small, older model (e.g., a 124M parameter GPT-2) can effectively guide the training of much larger, modern models (up to 1.38B parameters). This suggests that semantic concepts are somewhat universal across model scales.
- Steerability & Interpretability: Because the model explicitly predicts concepts, researchers can intervene during inference. By manually increasing the activation of a specific concept (e.g., "website address") in the latent space, they can steer the model to generate specific types of content without changing the prompt. This provides a transparent window into the model's internal reasoning process.
Limitations & Future Directions
Currently, CoCoMix requires a pretrained model and a pretrained SAE to provide the "ground truth" concepts, making it a distillation-style method rather than a from-scratch solution. Additionally, interleaving concepts doubles the effective sequence length in the upper layers of the transformer, increasing memory usage and FLOPs per forward pass.
Future work could explore end-to-end concept learning, where the model learns to discover and predict its own concepts during pretraining without relying on a teacher model. Another promising direction is using concept selection to filter out unsafe or biased concepts during the training phase.
Summary updated