LinTree: Improving LLM Reasoning with Explicitly Structured Search Histories
Large language models (LLMs) often solve complex problems by generating a sequence of thoughts, effectively performing an internal search. While these models can backtrack and revise their work, their reasoning traces are typically written as a flat, linear stream of text. This paper investigates whether LLMs can perform better if they are explicitly shown the underlying "tree" structure of their search process—identifying exactly which previous state they are returning to when they backtrack—rather than leaving that structure implicit.
The Limits of Implicit Search
When an LLM generates a reasoning trace, it acts like a search algorithm exploring a tree of possibilities. However, because the model usually just writes out its steps in a single line, the "topology" of the search—the connections between branches and the specific points of origin—is hidden. The researchers tested whether simply having access to the full history of a search is enough to outperform traditional search methods that use a local heuristic (a "guide" that only looks at the current state). They found that raw access to the history is not enough; without an explicit structure, the model struggles to effectively utilize the information it has already gathered.
Introducing LinTree
To address this, the researchers developed LinTree. Instead of a standard, unstructured reasoning trace, LinTree adds "parent pointers" to the model's output. These pointers explicitly label the search tree, allowing the model to clearly identify which earlier state it is revisiting when it decides to try a different approach. By turning a loosely narrated reasoning trace into a serialized, structured tree, the model can better understand its own exploration process.
Performance and Efficiency
The researchers evaluated this approach across three reasoning environments: Blocks World, grid Navigation, and Sokoban. They compared the performance of models using implicit traces against those using the explicit LinTree structure. Their results showed that when the tree topology is made explicit, the model significantly outperforms both implicit reasoning models and standard heuristic-guided search. By making the search history easier to interpret, the model achieves both higher success rates and greater search efficiency, suggesting that the way reasoning traces are represented is just as important as the model's ability to generate them.
Implications for Future Reasoning
The findings suggest that the current way we prompt or train LLMs to "think" may be missing a key component: structure. Because the model's reasoning is essentially a search process, providing it with a representation that reflects that search structure helps it navigate complex problems more effectively. This work highlights that for LLMs to reach their full potential in reasoning tasks, we should move toward more structure-aware representations that make the logic of their search process transparent.
Comments (0)
to join the discussion
No comments yet
Be the first to share your thoughts!