arXiv:2603.24780cs.LG2026-03中稿 · publication in Tra…被引 2

让Transformer自己当搜索算法,不用外部工具也能高效找解法。

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

  • 用带反馈的树结构模拟未知搜索空间,训练Transformer模仿搜索策略。
  • 模型能泛化到更长路径和更深树结构,表现接近专门设计的搜索算法。
  • 对预训练模型做任务微调后,其搜索能力显著提升,适合复杂问题求解者。

大型语言模型(LLMs)在搭配外部搜索算法时可更高效地解决问题。若将多样想法及其后续可能性视为树状结构,搜索算法便能有效平衡探索与利用。然而外部组件会增加复杂性。本文提出:能否让LLM或其底层Transformer架构自身实现搜索功能?为此,我们构建一个简化框架,外部指定树扩展与反馈信号,用于可控评估搜索能力。该场景称为‘未知树搜索与赌博反馈’。结果显示,Transformer在理论上足以实现不同搜索策略,并可从零训练逼近这些策略。模型展现出对未见条件(如更长视野、更深树)的泛化能力。此外,通过任务导向的持续训练,可充分释放预训练模型的搜索潜能,使其在搜索轨迹上进行微调。

原文摘要 · Abstract (English)

Effective problem solving with Large Language Models (LLMs) can be enhanced when they are paired with external search algorithms. By viewing the space of diverse ideas and their follow-up possibilities as a tree structure, the search algorithm can navigate such a search space and guide the LLM toward better solutions more efficiently. While the search algorithm enables an effective balance between exploitation and exploration of a tree-structured space, the need for an external component can complicate the overall problem-solving process. We therefore pose the following question: Can LLMs or their underlying Transformer architectures approximate a search algorithm? To answer this question, we first introduce a simplified framework in which tree extensions and feedback signals are externally specified, allowing for controlled evaluation of search capabilities. We call this setting unknown tree search with bandit feedback. Within this setting, we show that Transformers are theoretically expressive enough to implement distinct search strategies and can be trained from scratch to approximate those strategies. Our Transformer models exhibit the possibility of generalizing to unseen conditions such as longer horizons or deeper trees. Furthermore, we demonstrate that continued task-focused training unlocks the complete capabilities of a pretrained LLM, by fine-tuning the LLM on search trajectories.

Transformer搜索算法LLM

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。