Improving Large Language Models with Concept-Aware Fine-Tuning

Dacheng Tao, Michael Chen, X. W. Zhang, Jiaxing Huang, Yingjie WangResearch Square 2025

Abstract

<title>Abstract</title> Large language models (LLMs) have become the cornerstone of modern AI. However, the current paradigm of next-token prediction fundamentally limits their ability to form coherent, high-level concepts, making it a critical barrier to human-like understanding and reasoning. Specifically, an LLM will first decompose text into tokens, i.e., artificial text fragments. These tokens are then learned sequentially, rather than as part of a unified, coherent phrase or semantic entity<sup>1</sup>. This fragmented representation hinders deeper conceptual understanding and, ultimately, the development of truly intelligent systems<sup>2–4</sup>. In response, we introduce Concept-Aware Fine-Tuning (CAFT), a multi-token training method that reshapes how LLMs are fine-tuned. By enabling the learning of sequences that span multiple tokens, this method fosters stronger concept-aware learning. Our experiments demonstrate significant improvements compared to conventional next-token fine-tuning. CAFT can be applied to diverse tasks, from traditional LLM tasks like coding to challenging scientific tasks involving domain-specific modalities like de novo protein design. CAFT successfully leverages the multi-token setting for fine-tuning, an approach previously considered impossible<sup>2,5,6</sup>, by introducing several technical innovations to address the inherent challenges of fine-tuning. Our results challenge the machine learning research community to rethink the ubiquitous next-token prediction paradigm and enable the broader scientific community to develop more powerful scientific LLMs involving domain-specific modalities<sup>7</sup>.

Introduction: The Tokenization Bottleneck

The "unassailable" objective of modern Large Language Models (LLMs) has long been next-token prediction. While this approach has driven the current AI revolution, it harbors a fundamental flaw: tokenization. Algorithms like Byte-Pair Encoding (BPE) decompose meaningful semantic units into arbitrary fragments. For instance, the term ribonucleic acid is typically sliced into five distinct tokens: rib, on, ucle, ic, and acid.

When a model is trained to predict only the immediate next token, it remains effectively "blind" to the broader concept. This fragmentation is particularly detrimental in technical fields—such as coding, mathematics, and chemistry—where specific multi-token sequences represent single, coherent ideas. While multi-token prediction has been explored in pre-training, it was previously considered nearly impossible to implement during the data-sparse fine-tuning phase due to optimization instabilities and distribution shifts.

Concept-Aware Fine-Tuning (CAFT)

To address these limitations, we introduce Concept-Aware Fine-Tuning (CAFT). This method adapts standard next-token models into multi-token learners during the post-training phase without adding computational overhead at inference time.

Architectural Innovations

CAFT incorporates several key technical components:

  1. Auxiliary Heads: The architecture is augmented with $n-1$ task-agnostic auxiliary heads (where $n=5$ in our study). These heads branch from the model’s final hidden layer and share a single unembedding layer to minimize parameter growth.
  2. Two-Stage Training: Training begins with an alignment phase where auxiliary heads are pre-trained on general instruction-tuning data. This is followed by task-specific fine-tuning using a composite loss function.
  3. Dynamic Loss Scaling: To maintain stability, CAFT employs a decaying sine schedule. This schedule encourages the model to focus on multi-token "concepts" early in training before shifting focus back to primary token precision as training concludes.
Architecture of CAFT and comparison between next-token and multi-token training.

Experimental Evaluation

We evaluated CAFT across a diverse array of concept-heavy benchmarks, ranging from general instruction following to specialized scientific modalities. The researchers tested the framework on coding (HumanEval), mathematics (MATH-500), and clinical text summarization (MIMIC-IV-BHC). Furthermore, the study explored scientific applications such as molecule generation (SMILES strings) and de novo protein design.

CAFT code implementation and task examples across diverse domains including math, coding, and biology.

Key Results and Insights

CAFT consistently outperformed standard next-token fine-tuning (both Full and LoRA) across all benchmarks. In coding tasks, CAFT achieved 49.3% accuracy on HumanEval, representing an 8.8% absolute improvement over the baseline.

The performance gains were most pronounced in "highly conceptual" scenarios. In chemistry, CAFT improved the Exact Match (EM) rate for molecule generation and increased the percentage of chemically valid generations by 4.76%. By allowing the model to perceive the "grammar" of a molecule or protein sequence rather than a string of disconnected characters, CAFT acts as a bridge to deeper domain understanding.

Conclusion

Concept-Aware Fine-Tuning demonstrates that the next-token prediction paradigm is not the only path forward for LLM refinement. By treating multi-token sequences as unified semantic concepts, CAFT significantly boosts performance in complex domains. Crucially, because auxiliary heads are discarded after training, these gains come with zero additional latency during deployment, offering a powerful and efficient path toward more capable scientific and technical AI systems.

Summary updated

Abstract

<title>Abstract</title> Large language models (LLMs) have become the cornerstone of modern AI. However, the current paradigm of next-token prediction fundamentally limits their ability to form coherent, high-level concepts, making it a critical barrier to human-like understanding and reasoning. Specifically, an LLM will first decompose text into tokens, i.e., artificial text fragments. These tokens are then learned sequentially, rather than as part of a unified, coherent phrase or semantic entity<sup>1</sup>. This fragmented representation hinders deeper conceptual understanding and, ultimately, the development of truly intelligent systems<sup>2–4</sup>. In response, we introduce Concept-Aware Fine-Tuning (CAFT), a multi-token training method that reshapes how LLMs are fine-tuned. By enabling the learning of sequences that span multiple tokens, this method fosters stronger concept-aware learning. Our experiments demonstrate significant improvements compared to conventional next-token fine-tuning. CAFT can be applied to diverse tasks, from traditional LLM tasks like coding to challenging scientific tasks involving domain-specific modalities like de novo protein design. CAFT successfully leverages the multi-token setting for fine-tuning, an approach previously considered impossible<sup>2,5,6</sup>, by introducing several technical innovations to address the inherent challenges of fine-tuning. Our results challenge the machine learning research community to rethink the ubiquitous next-token prediction paradigm and enable the broader scientific community to develop more powerful scientific LLMs involving domain-specific modalities<sup>7</sup>.
BibTeX
@inproceedings{tao2025improving,
  author = {Dacheng Tao and Michael Chen and X. W. Zhang and Jiaxing Huang and Yingjie Wang},
  title = {{Improving Large Language Models with Concept-Aware Fine-Tuning}},
  booktitle = {Research Square},
  year = {2025},
  doi = {10.21203/rs.3.rs-7391246/v1},
}
Figure