Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Concept-Tree Search for LLM-Assisted Algorithm Discovery

Timothée Leleu, Sudeera Gunathilaka|arXiv (Cornell University)|Feb 3, 2026
Evolutionary Algorithms and ApplicationsComputer Science0 citations
TL;DR

The paper introduces Contrastive Concept-Tree Search (CCTS), a semantic, contrastive-guided method that learns a hierarchical concept tree from generated algorithms to steer LLM-assisted search toward useful concept combinations and away from harmful ones, improving efficiency and interpretability.

ABSTRACT

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.

Motivation & Objective

  • Motivate improved exploration of the algorithm space by exploiting structured semantic concepts rather than raw fitness alone.
  • Develop a contrastive, concept-based model to bias parent selection toward beneficial concept combinations.
  • Demonstrate interpretability and task-specific concept trees across Erdős-style combinatorics problems.
  • Show robustness and dynamics of CCTS in both real LLM-powered and synthetic algorithm-discovery environments.

Proposed method

  • Define a hierarchical concept space where each node is a semantic concept and edges encode refinement; concepts are activated as an ancestor-closed binary vector b.
  • Use a contrastive cross-entropy update to learn two concept distributions p_eta+(b) and p_eta−(b) over good vs. bad performers, and compute a likelihood-ratio weight w(b) to bias parent selection.
  • Represent concept utilities with a Tree-structured Parzen Estimator (TPE)-like, leaf-restricted, hierarchical model that is efficient and interpretable.
  • Guide child generation by injecting leaf concepts into prompts and by maintaining a concept-exploration mechanism that promotes novelty for new/rare concepts.
  • Maintain an evolutionary loop with an archive A_t of evaluated programs and their features, and mix exploration (uniform) with exploitation (concept-guided or other strategies).
  • Experiment with a benchmark of Erdős-style problems (circle packing, Heilbronn triangle, Arithmetic Kakeya, square-in-square) and a synthetic discovery environment to validate dynamics and concept-utility learning.
(a) Real task: circle packing
(a) Real task: circle packing

Experimental results

Research questions

  • RQ1Can explicit learning of a semantic concept hierarchy improve the efficiency and quality of LLM-assisted algorithm discovery compared to fitness-based selection alone?
  • RQ2Do contrastive, concept-based statistics identify concepts to avoid as a major driver of performance gains?
  • RQ3How does the learned concept utility relate to real vs. synthetic search dynamics, and how does it affect exploration-exploitation balance?
  • RQ4What kinds of interpretable, task-specific concept trees emerge for Erdős-style combinatorics problems?
  • RQ5How robust is CCTS to different problem settings and LLM configurations?

Key findings

  • CCTS consistently improves best scores over baseline methods across tasks and iterations in both real and synthetic settings.
  • The gains are driven largely by learning which concepts to avoid (negative concepts) rather than only identifying highly useful concepts.
  • Concept trees extracted from LLMs reflect problem structure and reveal hierarchical, interpretable semantic components across circle packing and Heilbronn triangle tasks.
  • A synthetic teacher-tree model shows qualitative agreement with LLM-based results, and the learned concept weights correlate with latent concept utilities.
  • The optimal exploitation probability p_exploit varies by task, suggesting the latent concept tree structure influences search dynamics.
(b) Synthetic task
(b) Synthetic task

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.