用概念树对比搜索提升大模型编程发现效率
Contrastive Concept-Tree Search for LLM-Assisted Algorithm Discovery
- 构建程序的概念层次结构,通过对比学习筛选有效概念组合
- 在组合数学问题上搜索效率比基线提升,且生成可解释的逻辑树
- 适合想提升大模型编程探索能力的研究者与开发者
大语言模型(LLM)辅助的算法发现是一个迭代式的黑箱优化过程,其中LLM生成候选程序,外部评估器提供任务反馈。尽管该领域研究活跃且成果显著,如何最大化利用LLM对程序空间的内部表示仍是个开放问题。本文提出对比概念树搜索(CCTS),从生成的程序中提取分层概念表示,并训练对比概念模型以指导父节点选择。通过计算高性能与低性能解之间的似然比分数对父节点重加权,CCTS引导搜索聚焦于有效概念组合,避开误导性组合,而非依赖LLM自身构建的算法演化路径。实验表明,CCTS在基准的开放埃拉托斯特尼型组合问题上显著提升了搜索效率,并生成可解释的任务特定概念树。分析显示,性能提升主要源于学会规避无效概念。我们在受控合成环境中进一步验证了这些发现,其搜索动态与真实LLM环境定性一致。
原文摘要 · Abstract (English)
Large language Model (LLM)-assisted algorithm discovery is an iterative, black-box optimization process over programs to approximatively solve a target task, where an LLM proposes candidate programs and an external evaluator provides task feedback. Despite intense recent research on the topic and promising results, how can the LLM internal representation of the space of possible programs be maximally exploited to improve performance is an open question. Here, we introduce Contrastive Concept-Tree Search (CCTS), which extracts a hierarchical concept representation from the generated programs and learns a contrastive concept model that guides parent selection. By reweighting parents using a likelihood-ratio score between high- and low-performing solutions, CCTS biases search toward useful concept combinations and away from misleading ones, providing guidance through an explicit concept hierarchy rather than the algorithm lineage constructed by the LLM. We show that CCTS improves search efficiency over fitness-based baselines and produces interpretable, task-specific concept trees across a benchmark of open Erdős-type combinatorics problems. Our analysis indicates that the gains are driven largely by learning which concepts to avoid. We further validate these findings in a controlled synthetic algorithm-discovery environment, which reproduces qualitatively the search dynamics observed with the LLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。