Chain or tree? Re-evaluating complex reasoning from the perspective of a matrix of thought

Fengxiao Tang, Yufeng Li, Zongzong Wu, Ming ZhaoarXiv 2025 · DOI

Abstract

Large Language Models (LLMs) often struggle with complex, multi-hop reasoning tasks. While frameworks like Chain of Thought (CoT) and Tree of Thought (ToT) have been proposed to structure LLM reasoning, they suffer from error propagation and high computational costs, respectively. This paper introduces the Matrix of Thought (MoT), a novel framework that organizes reasoning into a grid structure. By implementing a column-cell communication mechanism and structured retrieval-augmented knowledge units, MoT achieves state-of-the-art accuracy while significantly reducing reasoning time to just 14.4% of leading baselines.

The Limitations of Linear and Branching Thought

Current methods for structuring LLM reasoning face a fundamental trade-off between breadth and depth.

  • Chain of Thought (CoT) follows a linear path; a single early error often leads to an incorrect final answer as the model lacks the mechanism to backtrack or explore alternatives.
  • Tree of Thought (ToT) explores multiple branches to find the best path but is plagued by high computational costs and massive redundancy, often generating identical ideas across different branches.
  • Retrieval-Augmented Generation (RAG), while helpful for factual grounding, often provides fragmented data that can mislead models during complex multi-step logic.
Comparison of Chain of Thought (CoT), Thought of Tree (ToT), and the proposed Matrix of Thought (MoT) in handling complex reasoning queries.

The Matrix of Thought (MoT) addresses these issues by structuring reasoning as an $M \times N$ matrix of thought nodes, allowing for parallel exploration and cross-node verification within a single layer.

The Matrix of Thought (MoT) Framework

The MoT framework introduces three core innovations to enhance reasoning efficiency and accuracy:

  1. Column-Cell Communication: Unlike the isolated branches of a tree, MoT allows nodes within a column to communicate. By using portions of previous thought nodes as examples, the model is guided to explore diverse strategies rather than repeating previous mistakes.
  2. Structured Knowledge Units: MoT moves beyond raw text retrieval by constructing "Knowledge Units." These combine Knowledge Graph (KG) triples (subject-predicate-object) for logical structure with original source text for contextual nuance.
  3. Refinement and Summarization: Each column concludes with a summary node that aggregates strategies and applies RAG-based corrections to factual inconsistencies before proceeding to the next reasoning stage.
The MoT architecture, highlighting the integration of Retrieval-Augmented Knowledge Units and the column-cell communication mechanism.

Experimental Evaluation

The framework was rigorously tested across three domains:

  • Mathematical/Logical Reasoning: The 24-point game (4nums dataset).
  • Question Answering: NaturalQuestions (single-hop), HotpotQA, and 2WikiMultihopQA (multi-hop).
  • Open-Ended Writing: Proposition writing in specialized fields (biology, law, computer science, and physics) using the UltraDomain dataset.

Key Results

  • Accuracy: In the 24-point game, MoT achieved a 66% success rate, a significant jump from the 45% achieved by the RATT baseline. In QA tasks, F1 scores improved by up to 9.1% over non-RAG baselines.
  • Efficiency: MoT demonstrated remarkable speed, requiring only 14.4% of the reasoning time of the best-performing baseline (RATT). For instance, in biology tasks, MoT completed reasoning in ~3.22 minutes compared to RATT's ~22.43 minutes.
  • Human Evaluation: In writing tasks, MoT maintained an 80%+ win rate against baselines in terms of comprehensiveness and accuracy.

Insights and Future Directions

Analysis revealed that a $3 \times 4$ matrix size offers the optimal balance between accuracy and computational cost. Furthermore, the study highlighted that suppressing the influence of previous thoughts in early stages encourages the model to "think outside the box," leading to more diverse and effective strategies.

Future research will focus on dynamic scaling of the matrix based on query difficulty and more sophisticated weighting mechanisms for column-cell communication to further refine the balance between diversity and logical consistency.

Summary updated

BibTeX
@misc{tang2025chain,
  author = {Fengxiao Tang and Yufeng Li and Zongzong Wu and Ming Zhao},
  title = {{Chain or tree? Re-evaluating complex reasoning from the perspective of a matrix of thought}},
  year = {2025},
  eprint = {2509.03918},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.03918},
}
Figure