# Transformers in the Dark: Navigating Unknown Search Spaces via Bandit Feedback

*Jungtaek Kim, Thomas Zeng, Ziqian Lin, Minjae Lee, Chungpa Lee, Jy-yong Sohn, Hyung Koo, Kangwook Lee*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/156799) · [Open on the map](../papers.html#p156799)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Tool-Integrated Reasoning](../pgroup/257.md) · Type: new method · Keywords: transformer architectures, tree search, bandit feedback, search strategies, language model fine-tuning

## Summary
Transformers in the Dark shows that Transformer architectures can be trained from scratch to approximate search strategies in unknown tree search with bandit feedback, enabling generalization to longer horizons and deeper trees.

## Explained to a 5-year-old
People make big computer programs that can talk and think. To solve hard problems, they sometimes use a helper that explores many possible steps like a tree. This paper asks if the computer programs themselves could learn to explore such trees without needing a separate helper. They created a simple game where the computer sees a tree and gets hints, and they taught the programs to guess good steps. The programs can then solve new problems they haven't seen before, and training them more makes them even smarter.

## Explained to a 5-year-old, longer
Big computer brain models called large language models can write sentences and answer questions. When they try to solve a tricky problem, they often need a separate tool to explore many possible ideas. This tool looks at possibilities like a tree, where each branch is a new idea and the leaves are possible answers. The paper asks whether the language models themselves could learn to explore such trees without needing that extra tool. The researchers created a simple setting called unknown tree search with bandit feedback, where the tree and hints are given. In this setting, the models receive limited feedback after each guess, similar to learning by trial and error. They trained the models from scratch to mimic different search strategies, such as always picking the deepest branch or trying random branches. The models were able to generalize to longer trees and deeper branches they had never seen before. Additionally, the researchers fine-tuned an already-trained large language model on these search experiences, which made it much better at solving new problems. This shows that language models can learn to search on their own, reducing the need for external helpers.

## For a technical reader
The paper introduces a framework where Transformers are trained to perform tree search using bandit feedback, eliminating the need for a separate search algorithm. By defining a controlled unknown tree search environment, the authors prove that Transformers have sufficient expressive power to approximate various search strategies. Empirically, the models generalize to longer horizons and deeper trees, and fine-tuning a pretrained LLM on search trajectories significantly boosts its problem-solving capabilities.

## Problem
How can language models approximate search algorithms that balance exploration and exploitation in tree-structured spaces without requiring external search components?

## Method
The approach introduces a simplified setting called unknown tree search with bandit feedback, where tree extensions and feedback signals are externally specified. Transformers are trained from scratch to approximate distinct search strategies within this setting, and pretrained LLMs are fine-tuned on search trajectories to unlock full capabilities.

## Results
The approach shows that Transformers can approximate search strategies, generalize to longer horizons and deeper trees, and fine-tuning a pretrained LLM on search trajectories unlocks its full capabilities.

## Contributions
The paper proposes the unknown tree search with bandit feedback setting, demonstrates the expressive power of Transformers for search, and shows that fine-tuning LLMs on search trajectories enhances their reasoning abilities.

## Limitations and assumptions
The setting assumes externally specified tree extensions and feedback signals, which may limit realism compared to fully autonomous search.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/156799)
