Data-Efficient Learning with Neural Programs

Alaia Solko-Breslin, Seewon Choi, Ziyang Li, Neelay Velingker, Rajeev Alur +2 more
6/10/2024
cs.LG

No official code found. Best implementation: alaiasolkobreslin/ISED (5 stars, MIT, last commit 2025-08-14).

Abstract

Many computational tasks can be naturally expressed as a composition of a DNN followed by a program written in a traditional programming language or an API call to an LLM. We call such composites "neural programs" and focus on the problem of learning the DNN parameters when the training data consist of end-to-end input-output labels for the composite. When the program is written in a differentiable logic programming language, techniques from neurosymbolic learning are applicable, but in general, the learning for neural programs requires estimating the gradients of black-box components. We present an algorithm for learning neural programs, called ISED, that only relies on input-output samples of black-box components. For evaluation, we introduce new benchmarks that involve calls to modern LLMs such as GPT-4 and also consider benchmarks from the neurosymbolic learning literature. Our evaluation shows that for the latter benchmarks, ISED has comparable performance to state-of-the-art neurosymbolic frameworks. For the former, we use adaptations of prior work on gradient approximations of black-box components as a baseline, and show that ISED achieves comparable accuracy but in a more data- and sample-efficient manner.

View on arXivView PDF

Code Implementations(1)

MIT
51Shell, PrologMar 20, 20231 years agoMIT

Similar Papers

Cite this paper

@article{solkobreslin2024dataefficient,
  title  = {Data-Efficient Learning with Neural Programs},
  author = {Alaia Solko-Breslin and Seewon Choi and Ziyang Li and Neelay Velingker and Rajeev Alur and Mayur Naik and Eric Wong},
  year   = {2024},
  eprint = {2406.06246},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.06246},
  url    = {http://arxiv.org/abs/2406.06246v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.06246.svg)](https://codeofpaper.com/paper/2406.06246)

Discussion