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

Introduction

Standard Large Language Models (LLMs) are primarily trained on the objective of next-token prediction. While effective, this approach suffers from two significant limitations: reporting bias, where humans omit "obvious" logical steps in writing, and confirmation bias, where models rely on statistical word co-occurrences (e.g., "Bruce Lee" and "Kung Fu") rather than logical context. These issues often lead to factual hallucinations and a lack of deep reasoning capabilities.

To address this, we introduce Thoughts of Words (ToW), a training-time data augmentation method that transforms next-word prediction into a reasoning task by injecting fine-grained explanations, or "thoughts," into pre-training texts. By treating next-word prediction as a core reasoning task, we teach the model why a specific word follows the previous context.

Methodology: The ToW Pipeline

The ToW framework augments raw text with explanatory metadata through a multi-stage pipeline designed to ground model predictions in logic.

  1. Distillation: A teacher model (e.g., GPT-4o) predicts the next word and provides a reasoning "thought" without initially seeing the ground-truth word. This "information bottleneck" ensures the generated thoughts are logically grounded rather than superficial paraphrases.
  2. Categorization: Words are classified into four categories: Trivial (filtered), Exact Match (logically predictable), Soft Consistent (contextually aligned), and Unpredictable (cannot be reasonably inferred).
  3. Denoising and Summarization: To prevent models from becoming "lost" in verbose explanations, thoughts are summarized into concise, high-quality snippets using GPT-4o-mini.
  4. Continual Pre-training: Base models are trained on these augmented texts, with thoughts wrapped in special <ToW> tags to internalize reasoning paths.
The ToW pipeline: from thought generation and consistency checking to denoised thought synthesis.

Experimental Results

We evaluated ToW across five base models, including Mistral-7B, LLaMA2-7B, and LLaMA3-8B, using 70,000 high-quality annotations derived from OpenWebMath and C4 (~8M tokens).

Reasoning and Hallucination Performance

ToW significantly improved average reasoning scores by 7% to 9% across benchmarks such as GSM8K (Math), CSQA (Common Sense), and ARC-Challenge (Science). Notably, LLaMA3-8B's performance on GSM8K saw a massive jump, moving from 17.29% to 40.03%. Furthermore, hallucination benchmarks (TruthfulQA and HaluEval) showed improvements of up to 10%.

Relative accuracy improvements across various reasoning and hallucination benchmarks for Mistral, LLaMA2, and LLaMA3 models.

Key Insights

  • Conciseness is King: Shorter, summarized thoughts outperformed verbose ones. Long explanations often caused models to "get lost in the middle," degrading performance.
  • Mitigating "Bruce Lee" Syndrome: By explicitly labeling words as "unpredictable," ToW teaches models when to avoid guessing based on mere association, directly combating the confirmation bias that leads to hallucinations.
  • Efficiency: These substantial gains were achieved with a relatively small dataset, suggesting that high-quality, "reasoned" data is significantly more potent than raw token volume.

Conclusion and Future Work

ToW demonstrates that integrating reasoning into the pre-training phase makes improvements task-agnostic and generalizable without needing task-specific fine-tuning. While currently reliant on synthetic data from teacher models, future work will explore larger-scale annotation using open-source models and better inference control to ensure reasoning consistently precedes conclusions in long-form 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