Skip to main content
QUICK REVIEW

[Paper Review] HOUDINI: Lifelong Learning as Program Synthesis

Lazar Valkov, Dipak Chaudhari|arXiv (Cornell University)|Mar 31, 2018
Ferroelectric and Negative Capacitance DevicesEngineering26 citations
TL;DR

Houdini proposes a neurosymbolic framework that frames lifelong learning as program synthesis, combining symbolic program search with gradient descent to learn differentiable, strongly typed functional programs. It enables effective transfer of high-level concepts across tasks by reusing neural library functions, outperforming traditional methods in avoiding catastrophic forgetting and negative transfer on perception-plus-algorithmic tasks like counting and shortest-path computation.

ABSTRACT

We present a neurosymbolic framework for the lifelong learning of algorithmic tasks that mix perception and procedural reasoning. Reusing high-level concepts across domains and learning complex procedures are key challenges in lifelong learning. We show that a program synthesis approach that combines gradient descent with combinatorial search over programs can be a more effective response to these challenges than purely neural methods. Our framework, called HOUDINI, represents neural networks as strongly typed, differentiable functional programs that use symbolic higher-order combinators to compose a library of neural functions. Our learning algorithm consists of: (1) a symbolic program synthesizer that performs a type-directed search over parameterized programs, and decides on the library functions to reuse, and the architectures to combine them, while learning a sequence of tasks; and (2) a neural module that trains these programs using stochastic gradient descent. We evaluate HOUDINI on three benchmarks that combine perception with the algorithmic tasks of counting, summing, and shortest-path computation. Our experiments show that HOUDINI transfers high-level concepts more effectively than traditional transfer learning and progressive neural networks, and that the typed representation of networks significantly accelerates the search.

Motivation & Objective

  • Address the challenge of lifelong learning where models must retain knowledge from prior tasks while learning new ones.
  • Overcome limitations of purely neural methods in transferring high-level concepts and avoiding catastrophic forgetting.
  • Enable effective reuse of neural components across diverse tasks through a modular, composable program representation.
  • Develop a framework that combines symbolic search with gradient-based training for scalable, interpretable neural architecture discovery.

Proposed method

  • Represent neural networks as strongly typed, differentiable functional programs using higher-order combinators to compose neural functions.
  • Employ a symbolic program synthesizer to perform type-directed search over parameterized programs, selecting library functions and architectures for reuse.
  • Use stochastic gradient descent to train the synthesized programs end-to-end, optimizing both structure and parameters.
  • Implement two search strategies: top-down, type-directed enumeration favoring simplicity, and a type-directed evolutionary algorithm.
  • Leverage a neural library of pre-trained functions to freeze and selectively reuse components across tasks, preventing catastrophic forgetting.
  • Encode algorithmic operations (e.g., summing, shortest paths) using functional combinators that naturally express recursive and iterative procedures.

Experimental results

Research questions

  • RQ1Can program synthesis techniques improve lifelong learning by enabling structured reuse of neural components across diverse tasks?
  • RQ2How does symbolic search over typed functional programs compare to end-to-end neural training in learning complex perception-procedural tasks?
  • RQ3To what extent can Houdini avoid catastrophic forgetting and negative transfer compared to transfer learning and progressive neural networks?
  • RQ4Can the framework discover interpretable, algorithmically meaningful programs (e.g., resembling Bellman-Ford) for tasks involving reasoning over visual inputs?
  • RQ5Does the typed functional representation significantly accelerate the search process and improve generalization in lifelong learning settings?

Key findings

  • Houdini discovered a program structure resembling the Bellman-Ford shortest path algorithm, using a learned neural function to approximate the relaxation step.
  • On regression tasks involving algorithmic reasoning (e.g., counting, summing), Houdini achieved 0.41 RMSE on count_digit(5) and 0.33% CE on recognize_digit(4), outperforming baselines.
  • For the LS5 sequence, Houdini achieved 0.33% CE on recognize_digit(4), significantly better than other methods, demonstrating effective high-level transfer.
  • On classification tasks with no transfer opportunity, all methods performed similarly, confirming that Houdini’s advantage emerges in transfer-prone settings.
  • The typed functional representation accelerated search by pruning infeasible programs early, improving efficiency and scalability.
  • Houdini avoided negative transfer and catastrophic forgetting by freezing and selectively reusing neural library functions across tasks.

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.