Papers
Topics
Authors
Recent
Search
2000 character limit reached

Interpreting Neural Combinatorial Optimization via Evolving Programmatic Bottlenecks

Published 18 Jun 2026 in cs.AI and cs.LG | (2606.19741v1)

Abstract: Neural Combinatorial Optimization (NCO) achieves strong performance, yet its black-box nature remains a key roadblock to deployment and scientific diagnosis. Standard interpretability tools, such as Concept Bottleneck Models (CBMs), are ill-equipped for NCO, whose decisions are dynamic, state-dependent, and lack proper concept vocabulary definition. To close this gap, we introduce Evolving Programmatic Bottlenecks (EPB), to our knowledge, the first framework for interpreting NCO policies by distilling black-box NCO models into human-readable program portfolios. EPB employs an LLM to autonomously evolve a bank of programs, where each program's per-step action distribution serves as the bottleneck. EPB works through an iterative framework: Block I fixes program bank capacity and introduces a hybrid textual-numerical gradient descent scheme that couples numerical gradients for student router updates and textual gradients for LLM-based program revision; Block II dynamically adapts bank capacity via fault-targeted expansion and redundancy pruning. Extensive experiments demonstrate EPB's effectiveness and broad applicability, where the distilled program portfolios largely match original performance. EPB also reveals that NCO behavior shifts across optimization stages and can be approximated as a composition of classic heuristic variants. Our work advances interpretable NCO and establishes EPB as a promising tool for interpreting sequential decision-making models.

Summary

  • The paper introduces Evolving Programmatic Bottlenecks (EPB) as a novel framework for interpreting NCO models by synthesizing executable heuristics.
  • It employs a hybrid TextGrad and SGD optimization to update a dynamic heuristic bank and state-dependent router, effectively mimicking teacher policies.
  • Empirical evaluations show near-teacher performance on TSP and CVRP tasks, with improved out-of-distribution generalization for large-scale problems.

Interpretable Neural Combinatorial Optimization via Evolving Programmatic Bottlenecks

Motivation and Problem Statement

While neural combinatorial optimization (NCO) models have achieved parity with classical algorithms in routing and scheduling tasks, their deployment is hampered by a lack of interpretability. Existing tools for interpretability, such as Concept Bottleneck Models (CBMs), are inadequate because NCO policies rely on dynamic, state-dependent decision-making that cannot be easily aligned with predefined, atomic concept vocabularies. There is a critical need to elucidate the algorithmic strategies embedded within NCO policies, particularly in sequential decision-making contexts like TSP and CVRP, to foster both scientific understanding and reliable real-world applications.

Evolving Programmatic Bottlenecks (EPB): Framework Overview

EPB introduces a fundamentally different interpretability schema by replacing static concept bottlenecks with dynamically generated "programmatic bottlenecks"—collections of executable heuristics synthesized and refined via LLMs. Each heuristic serves as an interpretable explanatory unit, mapping state features to action distributions, and is paired with a natural-language description.

The EPB student model comprises two main components:

  • Heuristic Bank: An adaptively sized portfolio of Python programs, each encoding an algorithmic decision rule and description.
  • State-dependent Router: A neural network that dynamically assigns routing weights to the heuristics based on decision context, facilitating mixture-of-experts behavior.

During training, EPB iteratively refines the heuristic bank via LLM-driven "TextGrad" updates based on failure attribution, and simultaneously optimizes the router via SGD, ensuring the surrogate policy closely matches the black-box teacher.

Two-Block Optimization: Hybrid Textual-Numerical Procedure

The optimization is decomposed into two alternating blocks:

  1. Fixed-capacity Hybrid Gradient Descent: At a given bank size, heuristics are updated through textual feedback (TextGrad), driven by attributed mixture-path errors, while continuous router parameters are optimized numerically under a shared KL-distillation loss.
  2. Dynamic Capacity Management: The heuristic bank is augmented or pruned based on observed failure modes and redundancy analyses. Add operations spawn new specialized heuristics for unresolved errors; Drop operations prune those whose removal minimally impacts validation loss.

This scheme enables efficient exploration of the combinatorial space of decision rules and proper allocation of bank capacity, yielding compact, interpretable surrogate policies without significant numerical degradation.

Empirical Evaluation and Distillation Results

EPB was evaluated by distilling state-of-the-art NCO models—POMO and LEHD—on TSP and CVRP tasks. The distilled student models achieved solution costs within 1-4% of the teachers under greedy decoding, with search-based refinements further reducing gaps to below 2%. Moreover, the structure and composition of the heuristic banks provided explicit, algorithm-level insights into the underlying black-box NCO strategies. Quantitative results indicate strong fidelity:

Model Problem Avg. Gap (Greedy) Avg. Gap (Search)
POMO TSP 3.02--3.79% 0.03--0.10%
LEHD TSP 2.63--3.60% 0.40--2.16%
POMO CVRP 1.03--3.94% 0.13--1.25%
LEHD CVRP 3.60% 2.16%

A particularly notable finding is the superior out-of-distribution (OOD) generalization of distilled students on large-scale tasks:

  • EPB students outperformed POMO on TSP-500 and CVRP-500 by 13–15%, demonstrating that explicit programmatic distillation filters out artifacts tied to training scale and induces robust inductive bias.

Interpretation of Heuristic Banks and Policy Logic

The distilled heuristic banks encode algorithmic structures with high semantic granularity:

  • POMO-TSP surrogates exhibit phase-adaptive tour construction, switching from hull/outlier exploration to late-stage start-closing.
  • LEHD-TSP surrogates rely more on local geometric corrections, including angular sweeps and two-step closure strategies.
  • POMO-CVRP banks adapt to sector exploration and depot-return logic, dynamically modifying behavior based on vehicle capacity and spatial structure.
  • LEHD-CVRP banks employ load-aware, depot-anchored strategies sensitive to remaining customer geometry and demand fit.

Empirical activation analyses confirm that the mixture routing weights are consistently assigned to heuristics whose geometric or phase logic aligns with the underlying NCO teacher, substantiating EPB's ability to recover decision structure beyond feature attribution. For TSP, phase-driven heuristics dominate POMO, while geometric correction rules prevail in LEHD; for CVRP, capacity-dependent and depot-return strategies are prominent.

Ablation Studies

Ablations reveal that:

  • Hybrid gradients (TextGrad + SGD) are required to reach optimal accuracy; pure numerical or textual updates plateau prematurely.
  • Dynamic slot management substantially improves accuracy, escaping bottlenecks in search space.
  • Output-conditioned dynamic routing (OCDR) outperforms static routing, highlighting the necessity of state-dependent mixture policies.

Practical and Theoretical Implications

EPB provides a scalable methodology to extract and formalize the internal logic of NCO models as executable code, presenting both practical and theoretical advances:

  • Trustworthy deployment: The distilled surrogate exposes decision logic for verification and regulatory compliance in settings requiring transparent operational procedures.
  • Model improvement and debugging: By isolating strategies and failure modes, EPB offers systematic directions for model refinement and transfer learning, especially for OOD scenarios.
  • Research catalyst: The explicit algorithmic bottleneck reframes interpretability as a mechanism for improving generalization, not merely for post-hoc explanation.

The main remaining opacity lies in the router, which is still a neural model. Future directions may involve replacing it with programmatic routing schemes, or extending EPB to constrained and multi-objective NCO settings for diagnosis and repair of decision weaknesses.

Conclusion

Evolving Programmatic Bottlenecks (EPB) bridges the interpretability gap in neural combinatorial optimization by dynamically distilling sequential policies into human-readable, executable heuristic banks with adaptive routing. EPB preserves original performance, elucidates stage-wise and problem-specific strategies, and delivers robust generalization that even exceeds the teacher in large-scale tasks. By recasting interpretability as a constructive tool, EPB advances both deployment and research frontiers in AI for combinatorial optimization (2606.19741).

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.