about
DreamCoder: Growing Generalizable, Interpretable Knowledge (arxiv.org)
83 points by fbodz on Dec 26, 2023 | hide | past | pdf | 7 comments on HN

In plain words: A system solves problems by writing programs, inventing a vocabulary of reusable concepts and a learned guide to search for them, alternating concept-building with imagined practice. It rediscovers functional programming basics, vector algebra, and Newton's and Coulomb's laws, reusing them on new tasks.

Abstract · DreamCoder: Growing generalizable, interpretable knowledge with wake-sleep Bayesian program learning

Expert problem-solving is driven by powerful languages for thinking about problems and their solutions. Acquiring expertise means learning these languages -- systems of concepts, alongside the skills to use them. We present DreamCoder, a system that learns to solve problems by writing programs. It builds expertise by creating programming languages for expressing domain concepts, together with neural networks to guide the search for programs within these languages. A ``wake-sleep'' learning algorithm alternately extends the language with new symbolic abstractions and trains the neural network on imagined and replayed problems. DreamCoder solves both classic inductive programming tasks and creative tasks such as drawing pictures and building scenes. It rediscovers the basics of modern functional programming, vector algebra and classical physics, including Newton's and Coulomb's laws. Concepts are built compositionally from those learned earlier, yielding multi-layered symbolic representations that are interpretable and transferrable to new tasks, while still growing scalably and flexibly with experience.

Kevin Ellis, Catherine Wong, Maxwell Nye, Mathias Sable-Meyer, Luc Cary, Lucas Morales, Luke Hewitt, Armando Solar-Lezama, Joshua B. Tenenbaum
arXiv:2006.08381 · cs.AI, cs.LG · submitted Jun 15, 2020
abstract · pdf · html

add comment on HN
Also discussed: Feb 2021 (3 points, 0 comments) · Jun 2020 (4 points, 0 comments)

Building hierarchical abstractions on top of code is IMO the only way to truly enable AI to write code beyond better autocomplete. Kevin's work with DreamCoder shows that hierarchical abstractions can be built automatically in the code domain.

Once these abstractions exist side-by-side with natural language (essentially a code-natural language world model), it'll enable arbitrarily complex code generation from descriptions of the outcomes/results.

Doesn't the existence of this nice, encapsulated, hierarchical code make AI coding useless, rather than easy? You can just use those existing abstractions.

The reason AI coding systems exist is because it's hard, with our current programming language and libraries, to do things even if they've been done thousands of time before. If you can build new languages or new libraries/corpus where that's not a problem, you no longer need AI.

If coding is made easier for human’s and AI, by better abstractions, how would that make humans more useful and AI’s less useful?

The opposite is more likely.

The simpler a task, the easier it is to automate it.

The simpler a task, the greater the competitive need to automate it.

It's AI which creates those abstrations itself.
Sadness, the "Supplementary materials" url <https://web.mit.edu/ellisk/www/dreamcodersupplement.pdf> is 404 as well as the 2 wayback captures of it are also 404

While trying to track it down, I did find a seemingly related set of GH repos

https://github.com/ellisk42/ec/blob/master/dreamcoder/dreamc...

https://github.com/ellisk42/ecPaper/blob/master/talk.pdf

(2020)
How's the wake-sleep pattern different from the exploration/exploitation in Deep Reinforcement Learning?