Skip to main content
QUICK REVIEW

[Paper Review] Learning Differentiable Programs with Admissible Neural Heuristics

Ameesh Shah, Eric Zhan|arXiv (Cornell University)|Jul 23, 2020
Machine Learning and AlgorithmsComputer Science49 references6 citations
TL;DR

This paper proposes Near, a method that uses differentiable neural relaxations of partial programs as approximately admissible heuristics to accelerate combinatorial search over program architectures. By training neural networks to predict missing program components and using their loss as a heuristic in A* and iteratively deepened branch-and-bound search, the approach efficiently learns interpretable, accurate programmatic classifiers in sequence classification tasks, outperforming state-of-the-art program learning methods.

ABSTRACT

We study the problem of learning differentiable functions expressed as programs in a domain-specific language. Such programmatic models can offer benefits such as composability and interpretability; however, learning them requires optimizing over a combinatorial space of program "architectures". We frame this optimization problem as a search in a weighted graph whose paths encode top-down derivations of program syntax. Our key innovation is to view various classes of neural networks as continuous relaxations over the space of programs, which can then be used to complete any partial program. This relaxed program is differentiable and can be trained end-to-end, and the resulting training loss is an approximately admissible heuristic that can guide the combinatorial search. We instantiate our approach on top of the A-star algorithm and an iteratively deepened branch-and-bound search, and use these algorithms to learn programmatic classifiers in three sequence classification tasks. Our experiments show that the algorithms outperform state-of-the-art methods for program learning, and that they discover programmatic classifiers that yield natural interpretations and achieve competitive accuracy.

Motivation & Objective

  • To address the challenge of efficiently searching the combinatorial space of program architectures in differentiable program learning.
  • To develop a method that leverages the differentiability of programs to create continuous relaxations that guide combinatorial search.
  • To design a search framework that uses trained neural networks as approximately admissible heuristics to accelerate convergence to high-quality program architectures.
  • To evaluate the method on sequence classification tasks and demonstrate improved performance and interpretability over existing program learning techniques.

Proposed method

  • The method frames program search as a weighted graph traversal, where nodes represent partial program architectures with missing expressions and paths represent top-down derivations.
  • For each partial architecture, a neural network is used as a continuous relaxation to predict the missing subexpression, enabling end-to-end differentiable training.
  • The training loss of the neural relaxation serves as an approximately admissible heuristic for guiding informed search algorithms like A* and iteratively deepened branch-and-bound (Ids-bb).
  • The approach uses a context-free grammar to define the DSL, with structural costs assigned to grammar rules to favor simpler, more interpretable programs.
  • Search algorithms use the heuristic to prioritize paths in the graph, enabling efficient exploration of the combinatorial program space.
  • The method is instantiated on two search strategies: A* and Ids-bb, both enhanced with the neural heuristic to improve search efficiency and solution quality.

Experimental results

Research questions

  • RQ1Can differentiable neural networks be used as continuous relaxations to approximate the optimal completion of partial programs?
  • RQ2Can the training loss of such neural relaxations serve as an approximately admissible heuristic for guiding combinatorial search over program architectures?
  • RQ3Does using these neural heuristics in A* and Ids-bb search significantly improve the efficiency and accuracy of program learning compared to baseline methods?
  • RQ4Can the learned programs achieve competitive accuracy while remaining interpretable and semantically meaningful?

Key findings

  • The proposed Near method outperforms state-of-the-art program learning methods in three sequence classification tasks, demonstrating superior search efficiency and solution quality.
  • The learned programmatic classifiers achieve competitive accuracy, approaching that of end-to-end neural models while remaining interpretable and modular.
  • The neural relaxation-based heuristic significantly accelerates search, enabling faster convergence to high-performing program architectures.
  • The method discovers programmatic models that yield natural interpretations, such as structured, human-readable logic for behavior classification.
  • The use of differentiable neural relaxations as heuristics enables effective integration of gradient-based learning with combinatorial search, a novel approach in program synthesis.

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.