Neodrop
Create
FeedDiscoverMy ChannelsAuto-publishJoin Our Discord
Neodrop
A smoother experience in the app
FeedDiscoverCreateMy Channels
A hand-built DSL lifts every model; the library a model writes for itself swings from 0.816 to 0.700
2026-10-26

A hand-built DSL lifts every model; the library a model writes for itself swings from 0.816 to 0.700

A close read of Lisha and Tsarfaty's Hexagons study: a 41-method hand-built DSL tops all six model settings and leads by up to 0.21 F1 where instructions get abstract, while libraries the models induce themselves swing from 0.816 to 0.700 and one wrong geometric assumption spoils seven of ten methods.

Neurosymbolic Program Induction Tracker
Neurosymbolic Program Induction Tracker@Gidon Kaminer
On 20 October 2026, Amit Lisha and Reut Tsarfaty, both at Bar-Ilan University, posted From Abstraction to Action: DSLs for Natural Language Abstraction Interpretation and Execution. 1
The paper gives language models a library of named drawing operations and asks two questions in order. Can a model use such a library to carry out instructions written at a high level of abstraction? And can a model build the library itself? 2
Built by hand, the library helps everywhere it was tried. In all six model settings it produces the highest board score of the three strategies compared, and its lead is widest on the instructions written most abstractly. 2
Built by the models, it comes apart. Each model induced three libraries in the same setup. One run reaches 0.816 F1, and another run from identical settings scores 0.700 — below what the same model manages with no library at all. 2
Both numbers bear on DreamCoder-style library learning, because they measure separately the two halves of a loop that lineage runs as one. Abstraction discovery is now something a prompt can attempt. Abstraction admission is where it fails.

What the paper changes

DreamCoder mines new abstractions out of programs its own search has solved, and keeps one when it shortens the corpus by more than it costs to define. 3
That admission rule needs solved programs. Lisha and Tsarfaty start from a setting where none exist: a corpus of natural-language instructions, each paired with the board state it should produce. 2
The benchmark is Hexagons, a collaborative drawing game from a 2022 paper by Roni Lachmy and colleagues. One player describes an image on a hexagonal grid, a second paints the tiles, and both are paid for speed. 4
Speakers compress, so the descriptions arrive as objects, loops, conditions and spatial relations. The corpus holds 620 procedures and 4,177 instructions, each labelled with an abstraction level from 0 to 3. 2
A level-0 instruction names tiles. A level-3 instruction says "make a blue flower of 6 tiles" and leaves the seven tiles and their positions to the reader. 2
HexaGen, the hand-built library, supplies 41 methods over that board: named shapes, set operations on shapes, spatial and topological queries, rotations, reflections, and copies anchored to an existing object. 2
The library is internal rather than a separate language. The model still writes ordinary Python, and calls these methods where it judges them useful. 2
Two panels for one instruction about drawing a red flower with a green center. In the upper panel a language model predicts tiles directly and paints a flower in the wrong place. In the lower panel the model generates four lines of Python against the DSL, and executing them paints the flower where the instruction put it.
Figure 1 from the paper: one instruction, two routes to the board. Direct tile prediction fills the red center and the green petals in the wrong positions; the four DSL calls paint a green center with red petals around it and then copy it downward with the colors swapped, which is what "a color inverted one directly below" asks for.2
The induction pipeline that follows has three stages, and the paper varies only the first. Discovery reads the instruction corpus and proposes method signatures. Implementation writes each method against the foundation API. Documentation writes an API spec in the terse style a model reads well, following LILO's AutoDoc. 25
Discovery gets three presentations of the same corpus. The flat variant puts everything in one prompt. Arbitrary batching cuts the corpus into blocks of about 100 instructions. Semantic batching clusters instruction embeddings first, so each block holds instructions that talk about similar things. 2
Implementation is where the only gate sits. Each proposed method must come with a docstring and executable examples, and anything that fails to compile or fails its own doctest is deleted before the library is delivered downstream. 2

What the evidence measures

The main result compares three ways of producing the same board: predicting the tiles as tuples, writing unrestricted Python, and writing Python against HexaGen. Every setting is three execution runs, reported as mean and standard deviation. 2
StrategyGPT-5.1 lowGPT-5.1 highGemini 3 Pro lowGemini 3 Pro highQwen3 30BGemma 3 27B
Predicts tiles directly0.6830.7650.7430.7450.5560.407
Unrestricted Python0.7080.7570.8070.7930.5870.495
HexaGen (hand-built DSL)0.7740.8310.8250.8530.6630.512
Board F1 on Hexagons, Table 1 of the paper. Standard deviations run from 0.002 to 0.021; exact match on the whole board is also reported there, and HexaGen leads it in five of the six settings. 2
Three of the six settings clear 82.06 F1, the human ceiling the original Hexagons paper reported for the task. 4
The gain is unevenly distributed across models, and it runs the opposite way from what a capability story would predict. Measured against direct prediction, the three weaker models gain 13.3% to 25.8% in F1, and the three stronger ones gain 8.6% to 14.5%. 2
The second domain is thinner. On Text2CAD, an 8-method library was hand-built over CadQuery and compared against raw CadQuery on 885 objects, with a vision model judging which render matched the instruction. 6
The library wins 7 of 8 model-by-abstraction-level comparisons, and the eighth is a tie. At the expert level it cuts execution failures from 51.3% to 35.1% for Qwen3-30B and from 21.7% to 13.4% for Gemini-3.1-Pro. 2
That comparison rests on a single seed, a model judge that is never shown the gold object, and a policy that drops pairs where both programs failed to run. It establishes that the effect survives a change of domain, and nothing about its size. 2

Where the gain lives

The benchmark's abstraction labels let the authors split the result by difficulty, and the split is the paper's sharpest finding. At level 0 the three strategies finish level with each other. At levels 2 and 3 the DSL runs ahead by up to 0.21 F1. 2
Nine lines in three colors across four abstraction levels, one line per strategy per model. The three DSL lines sit above their model's other two lines at every level, and the gap widens from level 0 to levels 2 and 3 while the tile-prediction lines fall furthest.
Figure 3 from the paper: mean F1 against abstraction level for GPT-5.1, Qwen3-30B and Gemini 3 Pro, three strategies each. The figure labels the four levels with 15, 6, 14 and 27 examples.2
Level 1 rests on six examples, so the left half of that figure is soft. The direction across levels 0 to 3 is what the paper hangs on, and all three models show it. 2
Models also use the same library in measurably different ways. Counting distinct methods called, the stronger settings invoke 23 or 24 of the 41; the weaker ones invoke 19 or 20. Counting total calls, the ordering inverts, and the weaker models call the library far more often. 2
Those two correlations, +0.80 for breadth and −1.00 for volume, are computed over five configurations. With five points they mostly restate that the stronger models score higher. 2
One negative result is worth carrying. Showing the model the board after each instruction does nothing for the DSL route (0.744 exact match becomes 0.727) and costs direct tile prediction more than twelve points (0.590 becomes 0.464). 2

Where induction breaks

Now the second question. Each model wrote its own library three times, and every library was run three times. The hand-built HexaGen beats the best induced variant by 3 to 10 F1 points in all four model settings.
LibraryGPT-5.1 highGemini 3.1 Pro highQwen3 30BGemma 3 27B
Minimal API it extends0.7400.8390.5420.371
Flat discovery0.7570.7760.5650.416
Arbitrary batches0.7450.8280.4800.389
Semantic batches0.7040.7880.5310.441
HexaGen, hand-built0.8310.8610.6630.512
Board F1 for induced libraries, Table 3 of the paper, each figure averaged over three independently induced libraries and three runs each. Gemini rows use Gemini 3.1 Pro and are not comparable to the table above. 2
The averages understate the spread. Induction with GPT-5.1 high and flat discovery reaches 0.816 F1 and 0.452 exact match in its best run, which edges past HexaGen's own exact match. A second run from the same settings scores 0.700. 2
The authors call this a consistency problem rather than a capability problem, and the two runs show what consistency costs. Run A gets the hex geometry right and covers the same abstractions as its sibling. Run B treats the board as a rectangular lattice. 2
Seven of Run B's ten methods are built on that assumption, and all seven execute without raising an error while painting the wrong tiles. That library scores 0.700, below that model's bare tile prediction at 0.765 and its unrestricted Python at 0.757. 2
Run A's shortfall is a different kind. It has shapes, rotations and adjacency, and lacks the compositional layer: no Shape algebra with union and difference, no spatial queries, no copy anchored to an existing object. 2
Run B's error would have surfaced the first time its own methods were run against an instruction. No execution test exists in the pipeline. The model writes the library from a fixed pool of examples and never runs it. 2
For Gemini 3.1 Pro the averages are bleaker. No induced variant beats the minimal API on F1, though arbitrary batches beat it on exact match, 0.518 against 0.484, with an F1 about a point below the API it extends. 2
Library size predicts nothing. Batched discovery yields far more methods than flat discovery and scores no better, and the paper reads method counts as a diagnostic of the induction process rather than a measure of it. 2
Induction also stops at Hexagons. The Text2CAD comparison runs a hand-built 8-method library; no induced library was carried to a second domain, which leaves the cross-domain claim of library learning untested here. 2

Position in the DreamCoder lineage

The table sets this paper against the four systems this channel tracks. The comparison is compiled by this article from the cited papers; the HexaGen row is the paper's own description of itself.
MethodPersistent objectWhat admits an abstractionSignal it is mined fromSubstrateScaling bottleneck
Lisha & TsarfatyA Python library of named methods plus its API documentation 2It must compile and pass its own doctests; the authors name the absence of an execution gate as the main weaknessRecurrence across natural-language instructions paired with board statesHexagons drawing; one hand-built replication on Text2CADA single wrong foundational assumption propagates silently through the library
DreamCoderTyped λ-calculus DSL plus a recognition model trained by wake-sleep 3The abstraction must shorten the corpus by more than it costs to defineCompression of solved programsSynthetic symbolic domains, graphicsEnumerative search explosion
LAPSDreamCoder's library plus a search model conditioned on language 7DreamCoder's compression objective, with word alignments scoring the candidatesCompression, with natural-language annotationsString editing, image composition, scene reasoningNeeds natural-language annotations for every task
StitchCompressed corpus of programs plus learned abstractions 8Compression of the corpus by anti-unification over e-graphsCompression of solved programsLarge DSL corporaMemory on massive corpora
LILONamed, documented code library 5Stitch compression, with an LLM naming and documenting what survivesCompression of solved programs, plus an LLM searcherString editing, scene reasoning, graphics compositionCompression limits; proposal fidelity
Four of the five rows admit a new abstraction because it compresses something. Lisha and Tsarfaty's row admits one because it compiles and passes a test its own author wrote. 2
The signal moves with the rule. DreamCoder's abstractions are fragments that recur across many solutions; these are the pieces a speaker packs into a phrase, which may recur across instructions without ever appearing twice in one form. 2
Two slots of the lineage stay empty. There is no recognition model ordered by the library, and no wake-sleep loop: the library is written once, before any instruction is attempted, and the search that follows never reports back. 3
The paper's own reading of its negative result is a closeness claim mixed with a caveat. Its induced libraries do better than LILO's appendix negative result on LLM-proposed abstractions, and it notes the comparison is loose because inducing Python functions over a foundation API is easier than inducing abstractions in a new formalism. 5

Verbatim quotes

"We instead induce a library from instructions paired with board states, with no solved programs to compress: what recurs across the instructions is the only signal available, and the abstractions we seek are those a speaker compresses into a phrase — not the fragments that recur across solutions." — the authors, on what makes their induction problem different from library learning over solved programs. 2
"The main limitation is thus consistency rather than capability, as the same induction settings that produce strong libraries also produce runs falling below the minimal baseline." — the authors, on the spread inside a single setting. 2
"Seven of its ten methods rest on that assumption, and all seven run without failing while producing wrong tiles." — the authors, on the run that mistook the hex board for a rectangular lattice. 2
"All three induction strategies share one design: the model authors a DSL from a fixed pool of examples and never runs the result." — the authors, in their limitations. 2

The unresolved test

The paper names one cause and leaves it untested, which makes the next experiment cheap to state. Take its own pipeline and add a rehearsal between implementation and documentation. Each induced method must reproduce the tiles of the instructions that motivated it, and whichever method fails is cut before the library ships.
If the spread collapses under that gate and Run B's lattice error dies at the first rehearsal, the failure was validation, and the lineage gets a clear answer: an admission rule can be built from execution alone. Discovery becomes a proposal mechanism, and the gate does the work.
If the spread survives and good runs still land below the hand-built library, discovery is the bottleneck. The models would then be proposing the wrong primitives, and no downstream filter recovers the compositional layer Run A was missing.
One thing stays open either way. Even a library that passes rehearsal on Hexagons has been tested on one domain, and the lineage's whole case for growing a library rests on abstractions that travel to problems nobody anticipated. Adding an execution gate says nothing about that until someone induces a library on one domain and spends it on another.

References

  1. 1
    From Abstraction to Action: DSLs for Natural Language Abstraction Interpretation and Execution

    arxiv.org

  2. 2
    From Abstraction to Action, full text

    arxiv.org

  3. 3
    DreamCoder: growing generalizable, interpretable knowledge with wake–sleep Bayesian program learning

    arxiv.org

  4. 4
    Draw me a flower: processing and grounding abstraction in natural language

    aclanthology.org

  5. 5
    LILO: Learning Interpretable Libraries by Compressing and Documenting Code

    arxiv.org

  6. 6
    Text2CAD: generating sequential CAD models from beginner-to-expert level text prompts

    arxiv.org

  7. 7
    Leveraging Language to Learn Program Abstractions and Search Heuristics

    arxiv.org

  8. 8
    Top-Down Synthesis for Library Learning

    arxiv.org

Neurosymbolic Program Induction Tracker
Neurosymbolic Program Induction Tracker@Gidon Kaminer

This story was produced automatically by a channel. One sentence is all it takes for Neodrop to keep producing for you.

Related content

  • What the paper changes
  • What the evidence measures
  • Where the gain lives
  • Where induction breaks
  • Position in the DreamCoder lineage
  • Verbatim quotes
  • The unresolved test