# Learned intuition can make program search tractable

Markdown copy of https://realalpha.app/s/learned-intuition-can-make-program-search-tractable/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [François Chollet](https://realalpha.app/builders/francois-chollet/) · François Chollet is creator of Keras, author of Deep Learning with Python, and founder of ARC Prize. · Created Keras and the ARC-AGI benchmark at Google, then co-founded Ndea with Mike Knoop to pursue AGI through program synthesis.
- Host: [Garry Tan](https://realalpha.app/people/garry-tan/) · President & CEO, Y Combinator · Co-founded Posterous and Initialized Capital, an early Coinbase backer.
- Host: [Harj Taggar](https://realalpha.app/people/harj-taggar/) · Managing partner, Y Combinator · Co-founded Auctomatic with the Collison brothers and later Triplebyte.
- Host: [Diana Hu](https://realalpha.app/people/diana-hu/) · Managing partner, Y Combinator · CTO of Escher Reality; after Niantic bought it, ran AR for Pokémon GO.
- Host: [Jared Friedman](https://realalpha.app/people/jared-friedman/) · Managing partner, Y Combinator · Co-founded Scribd, which YC funded in 2006; has advised 20+ YC unicorns.
- Show: Lightcone
- Episode: [François Chollet: How We Get To AGI](https://realalpha.app/v/5QcCeSsNRks/), Jul 3, 2025
- Moment: 27:53 to 32:06 of the episode (4 min), playing on https://realalpha.app/s/learned-intuition-can-make-program-search-tractable/; the episode from there: https://realalpha.app/v/5QcCeSsNRks/?t=1673

## Quote

> “You can fit a program using only **two or three examples** but in order to find that program you have to sift through a vast space of potential programs”
> — [François Chollet](https://realalpha.app/builders/francois-chollet/) at [29:01](https://realalpha.app/v/5QcCeSsNRks/?t=1741) · Lightcone

## Takeaways

1. Programs can be fit from two or three examples.
2. Searching candidate programs is compute-intensive and grows combinatorially.
3. Learned representations can guide discrete search.

## About this segment

Program synthesis can learn from only a few examples but searches a combinatorially large space. François Chollet proposes using learned intuition to narrow that search, pairing data efficiency with better compute efficiency.

From “François Chollet: How We Get To AGI”, Jul 3, 2025. [Watch the full episode](https://realalpha.app/v/5QcCeSsNRks/)

## Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

[28:06](https://realalpha.app/v/5QcCeSsNRks/?t=1686) discrete program search? It's basically combinatorial search over graphs of operators taken from some language, some DSL. And to better understand it, you can try to draw an analogy between program synthesis and the machine learning techniques you already know about. In machine learning, your model is a differentiable parametric function, so it's a curve. In program synthesis it's going to be a discrete graph, a graph of ARPs, symbolic ARPs from some language.

[28:37](https://realalpha.app/v/5QcCeSsNRks/?t=1717) In ML, your learning engine, the way you create models is gradient descent, which is very compute efficient by the way. Gradient descent will let you find a model that fits the data very quickly, very efficiently. In program synthesis the learning engine is search, discriminatory search, which is extremely compute inefficient obviously. In machine learning the key obstacle that you run into is data density.

[29:01](https://realalpha.app/v/5QcCeSsNRks/?t=1741) In order to fit a model you need a dense sampling of the data manifolds. You need a lot of data. And program synthesis is the exact reverse. Program synthesis is extremely data efficient. You can fit a program using only two or three examples but in order to find that program you have to sift through a vast space of potential programs and the size of that space grows combinatorially with problematic complexities. You run into this combinatorial explosion world. I said earlier that intelligence is a combination of two forms of abstraction, type 1 and type 2, and I really don't think that you're gonna go very far if you go all in on just one of them, like all in on type 1 or all in on type 2. I think that if you want to really unlock their potential, you have to combine them together. And that's what human

[29:53](https://realalpha.app/v/5QcCeSsNRks/?t=1793) intelligence is really good at. That's really what makes us special. We combine perception and intuition together with explicit step-by-step reasoning. We combine both form of abstraction in all our thoughts, all our actions, everywhere. For instance, when you're playing chess, using type 2 when you calculate, when you unfold some potential moves step-by-step in your mind. But you're not going to do this for every possible move, of course, because there are too many of them, right? You're only going to be doing it for a couple of different options, right? Like here, you're going to look at the knight, the queen, and the way you narrow down these options is via intuition, is via pattern of cognition on the ball. And you build that up very much through experience, right? You've mined your past experience unconsciously to extract these patterns, and that's very much type 1.

[30:42](https://realalpha.app/v/5QcCeSsNRks/?t=1842) So you're using type 1 intuition to make type 2 calculation tractable. So how is the merger between type 1 and type 2 going to work? Well, the key system 2 technique is discrete search over a space of program. And the blocker that you run into is cumulative explosion. And meanwhile, the key system 1 technique is curve fitting and interpolation on the curve. So you take a lot of data, you embed it on some kind of interpolating manifold that enables fast but approximate judgment calls about the target space and the big idea is going to be to leverage this fast but approximate judgment calls to fight combinatorial explosion and make program search tractable. A simple analogy to understand this would be drawing a map. If you take a space of discrete objects with discrete relationships that would normally require combinator search

[31:32](https://realalpha.app/v/5QcCeSsNRks/?t=1892) like past finding on a subway system for instance and you embed these objects into a latent space where you can use a continuous distance function to make fast but approximate guesses about discrete relationships. And this enables you to keep counter-flation explosion in check while doing search. And this is what the full picture looks like.
