Enhancing LLM Reasoning with Multi-Path Collaborative Reactive and Reflection agents

Chengbo He, Bochao Zou, Xin Li, Jiansheng Chen, Junliang Xing, Huimin MaarXiv 2024 · DOI

TL;DR

This paper introduces the Reactive and Reflection agents with Multi-Path Reasoning (RR-MP) framework to boost the scientific reasoning capabilities of Large Language Models (LLMs). By having multiple "reactive" agents explore different reasoning paths and "reflection" agents critique and refine those paths, RR-MP significantly improves accuracy and combats "degeneration of thought" in complex tasks, outperforming existing methods.

What Problem Does This Paper Address?

Large Language Models (LLMs) show promise in scientific reasoning, but they often struggle with complex tasks. This leads to issues like insufficient accuracy and "degeneration of thought" (DoT), where an LLM becomes overconfident in an incorrect answer and fails to self-correct. Existing methods like self-correction or chain-of-thought reasoning have limitations, such as relying on a single agent's potentially flawed self-assessment or still suffering from hallucinations. The authors aim to create a more robust and accurate reasoning system by mimicking human collaborative problem-solving.

Methods

The core of the RR-MP framework is a multi-path reasoning mechanism. Instead of a single LLM generating one reasoning path, multiple "reactive" agents are employed, each exploring a different path to solve the problem. Crucially, each path involves a "reflection" agent that critiques and refines the reactive agent's output. This collaborative process between reactive and reflection agents within each path, and the aggregation of insights from multiple paths, is designed to prevent DoT and improve accuracy. The framework doesn't require additional training and uses a summarizer to consolidate the findings from all paths. The authors also explore different interaction paradigms: same-domain collaboration, same-domain debate, different-domain collaboration, and different-domain debate.

Datasets

The authors evaluated their framework on three datasets from the Massive Multitask Language Understanding (MMLU) benchmark:

  • College Physics: Assesses domain-specific physical knowledge.
  • College Mathematics: Focuses on logical reasoning and complex computation.
  • Moral Scenarios: Examines ethical decision-making and abstract reasoning.

These datasets are chosen for their relevance to scientific reasoning and the challenges they pose to LLMs.

Key Insights and Ideas

  • Multi-path reasoning is key: Simply having one agent reason step-by-step isn't enough for complex tasks. Exploring diverse paths simultaneously is more effective.
  • Reflection agents are crucial for error correction: The "reflection" agent acts as a critical reviewer, preventing overconfidence and guiding the "reactive" agent towards more accurate solutions. This is analogous to how humans benefit from external feedback.
  • Collaboration beats debate in most cases: While debate can be useful, collaborative approaches (especially across different domains) generally yield higher accuracy, suggesting that integrating diverse perspectives is more beneficial than adversarial exchanges for problem-solving.
  • Well-defined roles matter: The success of the RR-MP framework relies on clearly defined roles for reactive and reflection agents, preventing confusion and ensuring independent task execution.

Key Results

The RR-MP framework demonstrated significant improvements in accuracy across all tested datasets and settings (zero-shot and few-shot).

  • In few-shot scenarios, the RR-MP framework achieved an average accuracy of 90.20%, outperforming baseline methods like Self-Consistency (60.76%) and Self-Refine (58.35%).
  • The Different-Domain Collaboration paradigm achieved the best performance, with an average accuracy of 75.94% in few-shot settings.
  • Ablation studies showed that the reflection agent is necessary, improving accuracy by up to 24.81% on the Moral Scenarios dataset in zero-shot settings.
  • Multi-instance dialogues (where agents operate independently) performed better than single-instance dialogues, highlighting the importance of agent independence.

Limitations and Future Work

The authors acknowledge that the framework requires task-specific design of roles and reasoning examples, which is a common challenge in prompt engineering. Future work will focus on automating prompt design to enhance the framework's generalizability and adaptability.

Summary updated

BibTeX
@misc{he2024enhancing,
  author = {Chengbo He and Bochao Zou and Xin Li and Jiansheng Chen and Junliang Xing and Huimin Ma},
  title = {{Enhancing LLM Reasoning with Multi-Path Collaborative Reactive and Reflection agents}},
  year = {2024},
  eprint = {2501.00430},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.00430},
}
Figure