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

iToT: An Interactive System for Customized Tree-of-Thought Generation

Alan Boyle, Isha Gupta, Sebastian Hönig, Lukas Mautner, Kenza Amara, Furui Cheng, Mennatallah El-AssadyarXiv 2024 · DOI

Abstract

Large Language Models (LLMs) often struggle with complex tasks requiring strategic planning. While the Tree-of-Thought (ToT) framework addresses this by exploring multiple reasoning branches, its implementation typically requires custom coding and lacks transparency. We present iToT, an interactive web-based system that allows users to visualize, evaluate, and intervene in the ToT process. iToT transforms black-box reasoning into a collaborative, mixed-initiative problem-solving tool, enabling users to guide models through complex logical gaps.

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities, yet they frequently falter on tasks requiring "look-ahead" reasoning or multi-step strategic planning. The Tree-of-Thought (ToT) framework was introduced to mitigate these issues by allowing models to explore various reasoning paths (thoughts) and self-evaluate their progress. However, the original ToT implementation faces three primary hurdles: a high barrier to entry due to task-specific coding requirements, a lack of transparency regarding discarded reasoning paths, and the absence of a "human-in-the-loop" mechanism to correct or steer the model mid-process.

iToT addresses these gaps by providing a generalized, interactive interface that democratizes access to advanced prompting strategies and fosters human-AI collaboration.

System Design and Methods

iToT is built on a React frontend and a FastAPI backend, designed to generalize the ToT process across diverse tasks. The system decomposes the workflow into three primary stages: Initialization, Generation, and Evaluation.

The iToT interface facilitates a three-stage workflow: (1) Initialization of prompts and settings, (2) Generation of reasoning paths, and (3) Evaluation and ranking of thoughts.

Key Technical Components

  • Generalized Prompting Architecture: Users can define a Main Prompt for the task, an Example Prompt for few-shot guidance, and an Evaluation Prompt to set the criteria for ranking thoughts.
  • Interactive Visualization: Reasoning branches are displayed in a node-link diagram. Users can navigate the tree, following "preferred paths" (highlighted in green) or "active paths" (highlighted in yellow), and expand or collapse subtrees to manage complexity.
  • Semantic Grouping: To reduce visual clutter, iToT employs SBERT and DeBERTa to group semantically similar thoughts into "stacks." This also serves as a confidence metric; highly grouped branches suggest model certainty, while scattered branches indicate high variance.
  • Mixed-Initiative Interaction: Users can manually inject "Custom Thoughts" at any point. The LLM then treats this user-provided step as a new root for subsequent generations, allowing for direct intervention in the reasoning process.

Case Studies and Key Insights

The effectiveness of iToT was evaluated through qualitative case studies involving vacation planning, mathematical proofs, and prompt engineering research.

The Power of Human Intervention

A significant finding is that users do not need to know the complete solution to be helpful. In a mathematical proof scenario involving graph theory, the LLM initially failed to bridge a specific logical gap. By identifying the missing information and adding a single "bridge" thought, the user enabled the model to successfully complete the proof.

User intervention in a mathematical proof: the model initially fails to connect subgraphs (1), the user requests the missing information (2), and the model subsequently concludes the proof correctly (3).

Transparency and Debugging

The visualization of ranked candidate thoughts allows users to pinpoint exactly where a model’s logic deviates or "hallucinates." This level of transparency, unavailable in standard chat interfaces, transforms the reasoning process into a debuggable workflow.

Conclusion and Future Work

iToT successfully lowers the barrier to entry for advanced ToT prompting, empowering non-programmers to utilize sophisticated reasoning strategies. While the system is sensitive to the quality of the "Evaluation Prompt," it demonstrates the potential of mixed-initiative AI systems. Future work will explore an "Auto-solve" mode to reduce manual stepping, token-level tree generation for finer control, and enhanced explainability features to link specific prompt elements to reasoning branches.

Summary updated

BibTeX
@misc{boyle2024itot,
  author = {Alan Boyle and Isha Gupta and Sebastian Hönig and Lukas Mautner and Kenza Amara and Furui Cheng and Mennatallah El-Assady},
  title = {{iToT: An Interactive System for Customized Tree-of-Thought Generation}},
  year = {2024},
  eprint = {2409.00413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.00413},
}
Figure