Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Models

Ling Yang, Zhaochen Yu, Tianjun Zhang, Shiyi Cao, Minkai Xu +3 more
2/3/2026

No official code found. Best implementation: YangLing0818/buffer-of-thought-llm (678 stars, MIT, last commit 2025-06-28).

Abstract

We introduce Buffer of Thoughts (BoT), a novel and versatile thought-augmented reasoning approach for enhancing accuracy, efficiency and robustness of large language models (LLMs). Specifically, we propose meta-buffer to store a series of informative high-level thoughts, namely thought-template, distilled from the problem-solving processes across various tasks. Then for each problem, we retrieve a relevant thought-template and adaptively instantiate it with specific reasoning structures to conduct efficient reasoning. To guarantee the scalability and stability, we further propose buffer-manager to dynamically update the meta-buffer, thus enhancing the capacity of meta-buffer as more tasks are solved. We conduct extensive experiments on 10 challenging reasoning-intensive tasks, and achieve significant performance improvements over previous SOTA methods: 11% on Game of 24, 20% on Geometric Shapes and 51% on Checkmate-in-One. Further analysis demonstrate the superior generalization ability and model robustness of our BoT, while requiring only 12% of the cost of multi-query prompting methods (e.g., tree/graph of thoughts) on average. Notably, we find that our Llama3-8B+BoT has the potential to surpass Llama3-70B model. Our project is available at: https://github.com/YangLing0818/buffer-of-thought-llm

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2024 Spotlight] Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Models

67867PythonJun 6, 20241 years agoMIT
chain-of-thought-reasoninglarge-language-modelsllm-reasoningretrieval-augmented-generation

Similar Papers

Cite this paper

@article{yang2026buffer,
  title  = {Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Models},
  author = {Ling Yang and Zhaochen Yu and Tianjun Zhang and Shiyi Cao and Minkai Xu and Wentao Zhang and Joseph E. Gonzalez and Bin Cui},
  year   = {2026},
  eprint = {2406.04271},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.04271},
  url    = {https://arxiv.org/abs/2406.04271},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.04271.svg)](https://codeofpaper.com/paper/2406.04271)

Discussion