ToW: Thoughts of Words Improve Reasoning in Large Language Models

Zhikun Xu, Ming Shen, Jacob Dineen, Zhaonan Li, Xiao Ye, Shijie Lu, Aswin Rrv, Chitta Baral, Ben Zhou

Abstract

We introduce thoughts of words (ToW), a novel training-time data-augmentation method for next-word prediction. ToW views next-word prediction as a core reasoning task and injects fine-grained thoughts explaining what the next word should be and how it is related to the previous contexts in pre-training texts. Our formulation addresses two fundamental drawbacks of existing next-word prediction learning schemes: they induce factual hallucination and are inefficient for models to learn the implicit reasoning processes in raw texts. While there are many ways to acquire such thoughts of words, we explore the first step of acquiring ToW annotations through distilling from larger models. After continual pre-training with only 70K ToW annotations, we effectively improve models' reasoning performances by 7% to 9% on average and reduce model hallucination by up to 10%. At the same time, ToW is entirely agnostic to tasks and applications, introducing no additional biases on labels or semantics.

Introduction

Standard Large Language Models (LLMs) are primarily trained to minimize next-token prediction loss. While effective, this objective suffers from two major flaws: reporting bias, where essential logical steps are omitted from human-written text, and confirmation bias, where models prioritize frequent statistical associations over factual logic. These issues often manifest as hallucinations, where a model predicts a word based on commonality rather than contextual truth. To address this, we propose treating next-word prediction as a deliberate reasoning task through "Thoughts of Words" (ToW).

Methodology: The ToW Pipeline

The ToW method augments training data with internal rationales wrapped in <ToW> tags. The process involves three primary stages:

  1. Distillation and Categorization: A teacher model (GPT-4o) predicts the next word and provides a rationale without initially seeing the ground truth. Tokens are categorized as Trivial, Exact Match (EM), Soft Consistent, or Unpredictable.
  2. Denoising: To ensure the model remains focused, rationales are denoised and summarized using GPT-4o-mini, resulting in concise "thoughts" averaging 14 tokens. This prevents the "lost-in-the-middle" phenomenon common in longer sequences.
  3. Continual Pre-training: Base models are trained on this augmented corpus (e.g., OpenWebMath and C4 subsets), learning to generate these internal thoughts before predicting key tokens.
The ToW pipeline: from thought generation to consistency checking and denoising.

Experimental Results

We evaluated ToW across several base models, including Mistral-7B and LLaMA-3-8B, using benchmarks like GSM8K (math), CSQA (common sense), and TruthfulQA (hallucination).

Relative accuracy improvements across various benchmarks for Mistral-7B, LLaMA2-7B, and LLaMA3-8B.

Key findings include:

  • Reasoning Performance: Models showed a 7% to 9% average improvement across benchmarks. Notably, LLaMA3-8B's accuracy on GSM8K rose from 17.29% to 40.03%.
  • Hallucination Mitigation: Factual accuracy improved by up to 10% on TruthfulQA and HaluEval. By labeling certain tokens as "unpredictable," the model learns to avoid guessing based on statistical bias when context is insufficient.
  • Data Efficiency: Significant gains were achieved with only 70,000 high-quality annotations, demonstrating that high-quality reasoning data is more impactful than sheer volume.

Conclusion

ToW demonstrates that injecting explicit reasoning into the pre-training phase significantly enhances an LLM's fundamental capabilities. By teaching models the "why" behind their predictions, we can reduce hallucinations and improve complex problem-solving without task-specific fine-tuning. Future work will focus on scaling this approach and developing self-supervised methods for thought generation.

Summary updated

BibTeX
@inproceedings{xu2025tow,
  author = {Zhikun Xu and Ming Shen and Jacob Dineen and Zhaonan Li and Xiao Ye and Shijie Lu and Aswin RRV and Chitta Baral and Ben Zhou},
  title = {{ToW: Thoughts of Words Improve Reasoning in Large Language Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.157},
}
Figure