NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MoT: Memory-of-Thought Enables ChatGPT to Self-Improve

Xiaonan Li, Xipeng Qiu

Abstract

Large Language Models (LLMs) typically require extensive human-labeled data or computationally expensive fine-tuning to improve performance. We present Memory-of-Thought (MoT), a training-free and label-free framework that enables LLMs like ChatGPT to self-improve. MoT allows models to "pre-think" about unlabeled problems, storing high-confidence reasoning paths in an external memory. During inference, the model recalls relevant past insights to solve new tasks. Our evaluation across ten datasets shows that MoT consistently outperforms standard few-shot and zero-shot Chain-of-Thought baselines, achieving significant gains in arithmetic, commonsense, and factual reasoning.

Introduction

The advancement of Large Language Models (LLMs) has traditionally been gated by the availability of high-quality human-annotated data and the high cost of parameter updates. For many researchers, fine-tuning state-of-the-art models like GPT-4 is impossible due to API-only access. Memory-of-Thought (MoT) addresses this by mimicking human cognitive processes: reflecting on problems, storing lessons learned, and recalling them later. MoT provides a mechanism for self-improvement that requires neither human labels nor model training.

Methods

The MoT framework operates in two distinct stages: Pre-Thinking and Recalling.

1. Pre-Thinking (Memory Construction)

Before testing, the LLM processes an unlabeled dataset using multiple-path decoding. It generates several reasoning chains for each question and uses majority voting to identify the most consistent answer. To maintain memory quality, the authors introduce answer-entropy—a metric used to filter out "uncertain" thoughts. Only the most confident reasoning paths are saved into the external "Memory-of-Thought" pool.

2. Recalling and Inference

When a new test question arrives, the system performs a two-step retrieval process:

  • Semantic Retrieval: A standard retriever (e.g., SBERT) identifies a small group of relevant candidates from the memory pool.
  • LLM-Retrieval: The LLM itself selects the most logically relevant "memory" from those candidates. This step is crucial as LLMs are better at recognizing deep logical connections than simple vector-search algorithms.

The recalled memories are then prepended to the test question as few-shot examples, guiding the model's final reasoning during inference.

The MoT framework: Pre-Thinking builds a Memory of Thoughts, which is then used during Recall and Inference to solve new questions.

Evaluation and Results

MoT was evaluated across ten diverse datasets covering arithmetic reasoning (AQuA, DROP), natural language inference (ANLI), commonsense reasoning (OBQA, ComV), and factual reasoning (BoolQ, WikiQA).

The results demonstrate that MoT is highly effective across the board. On average, it outperformed Few-Shot-CoT by 3.7 points and Zero-Shot-CoT by 9.1 points. Notably, on the challenging DROP dataset, MoT increased the F1-score from 57.6% to 65.7%. The framework also proved robust across different model versions, including older iterations like text-davinci-002 and text-davinci-003.

Performance of MoT (F1 score) across different sampling ratios on DROP, ANLI-A3, and OBQA datasets compared to Zero-Shot and Few-Shot baselines.

Key Insights

  • LLMs as Their Own Librarians: A striking finding is that "LLM-retrieval" significantly outperforms traditional semantic retrieval. The LLM can identify which past reasoning path is actually logically useful for the current problem, rather than just looking for surface-level similarity.
  • The Necessity of Skepticism: Uncertainty Filtering via answer-entropy is vital. Storing and recalling incorrect "thoughts" can degrade performance. By filtering out the "noise," the model ensures its memory remains a source of truth.
  • Efficiency in Scale: MoT is highly efficient. Even with a very small memory (using only 10% of the available unlabeled data), it still outperformed standard few-shot baselines.

Conclusion and Future Work

MoT represents a significant step toward autonomous LLM improvement. While challenges remain—such as residual errors in memory and the risk of reinforcing existing biases—the framework's ability to boost performance without training or labels makes it a powerful tool. Future research will explore more sophisticated "false thought filtering" and more complex ways to integrate retrieved memory into the reasoning process.

Summary updated

BibTeX
@inproceedings{li2023mot,
  author = {Xiaonan Li and Xipeng Qiu},
  title = {{MoT: Memory-of-Thought Enables ChatGPT to Self-Improve}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.392},
}
Figure