babble: Learning Better Abstractions with E-Graphs and Anti-Unification
Not on the map. Why?
Abstract (arXiv)
Library learning compresses a given corpus of programs by extracting common structure from the corpus into reusable library functions. Prior work on library learning suffers from two limitations that prevent it from scaling to larger, more complex inputs. First, it explores too many candidate library functions that are not useful for compression. Second, it is not robust to syntactic variation in the input. We propose library learning modulo theory (LLMT), a new library learning algorithm that additionally takes as input an equational theory for a given problem domain. LLMT uses e-graphs and equality saturation to compactly represent the space of programs equivalent modulo the theory, and uses a novel e-graph anti-unification technique to find common patterns in the corpus more directly and efficiently. We implemented LLMT in a tool named BABBLE. Our evaluation shows that BABBLE achieves better compression orders of magnitude faster than the state of the art. We also provide a qualitative evaluation showing that BABBLE learns reusable functions on inputs previously out of reach for library learning.
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Dec 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 8; 2024: 4; 2025: 5; 2026: 5.
22 papers.
Sort:
- 2023LILO: Learning Interpretable Libraries by Compressing and Documenting Codecited by 46
- 2023Learning adaptive planning representations with natural language guidancecited by 36
- 2023ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured Primitivescited by 22
- 2023Improving Unsupervised Visual Program Inference with Code Rewriting Familiescited by 10
- 2023Anti-unification and Generalization: A Surveycited by 7
- 2023Learning of Generalizable and Interpretable Knowledge in Grid-Based Reinforcement Learning Environmentscited by 5
- 2024Searching for Programmatic Policies in Semantic Spacescited by 5
- 2025ShapeLib: Designing a library of programmatic 3D shape abstractions with Large Language Modelscited by 5
- 2025Refactoring Codebases through Library Designcited by 4
- 2023Bayesian Program Learning by Decompiling Amortized Knowledgecited by 2
- 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learningcited by 2
- 2025A Compute-Matched Re-Evaluation of TroVE on MATHcited by 2
10 more
- 2025e-boost: Boosted E-Graph Extraction with Adaptive Heuristics and Exact Solvingcited by 2
- 2023Learning logic programs by discovering higher-order abstractionscited by 1
- 2024MeMo: Meaningful, Modular Controllers via Noise Injectioncited by 1
- 2026Online library learning in human visual puzzle solvingcited by 1
- 2026Library learning with e-graphs on jazz harmonycited by 1
- 2024Algebraic anti-unificationcited by 0
- 2025Common Benchmarks Undervalue the Generalization Power of Programmatic Policiescited by 0
- 2026LLM-Guided Strategy Synthesis for Scalable Equality Saturationcited by 0
- 2026Prospective Compression in Human Abstraction Learningcited by 0
- 2026Decode-Time Grammars: Constrained LLM Generation over a Refinement Order of Grammar Fragmentscited by 0
- 2026Decode-Time Grammars: Constrained LLM Generation over a Refinement Order of Grammar Fragments20 Jul 2026
- 2026Prospective Compression in Human Abstraction Learning11 May 2026
- 2026Library learning with e-graphs on jazz harmony6 May 2026
- 2026LLM-Guided Strategy Synthesis for Scalable Equality Saturation19 Apr 2026
- 2026Online library learning in human visual puzzle solving24 Mar 2026
- 2025e-boost: Boosted E-Graph Extraction with Adaptive Heuristics and Exact Solving18 Aug 2025
- 2025A Compute-Matched Re-Evaluation of TroVE on MATH16 Jul 2025
- 2025Common Benchmarks Undervalue the Generalization Power of Programmatic Policies17 Jun 2025
- 2025Refactoring Codebases through Library Design26 May 2025
- 2025ShapeLib: Designing a library of programmatic 3D shape abstractions with Large Language Models13 Feb 2025
- 2024Algebraic anti-unification22 Jul 2024
- 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learning27 May 2024
10 more
- 2024MeMo: Meaningful, Modular Controllers via Noise Injection24 May 2024
- 2024Searching for Programmatic Policies in Semantic Spaces8 May 2024
- 2023Learning adaptive planning representations with natural language guidance13 Dec 2023
- 2023LILO: Learning Interpretable Libraries by Compressing and Documenting Code30 Oct 2023
- 2023Improving Unsupervised Visual Program Inference with Code Rewriting Families26 Sep 2023
- 2023Learning of Generalizable and Interpretable Knowledge in Grid-Based Reinforcement Learning Environments7 Sep 2023
- 2023Learning logic programs by discovering higher-order abstractions16 Aug 2023
- 2023Bayesian Program Learning by Decompiling Amortized Knowledge13 Jun 2023
- 2023ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured Primitives9 May 2023
- 2023Anti-unification and Generalization: A Survey1 Feb 2023
- 2023LILO: Learning Interpretable Libraries by Compressing and Documenting Codecited by 46
- 2023Learning adaptive planning representations with natural language guidancecited by 36
- 2023ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured Primitivescited by 22
- 2023Improving Unsupervised Visual Program Inference with Code Rewriting Familiescited by 10
- 2023Anti-unification and Generalization: A Surveycited by 7
- 2023Learning of Generalizable and Interpretable Knowledge in Grid-Based Reinforcement Learning Environmentscited by 5
- 2024Searching for Programmatic Policies in Semantic Spacescited by 5
- 2025ShapeLib: Designing a library of programmatic 3D shape abstractions with Large Language Modelscited by 5
- 2025Refactoring Codebases through Library Designcited by 4
- 2023Bayesian Program Learning by Decompiling Amortized Knowledgecited by 2
- 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learningcited by 2
- 2025A Compute-Matched Re-Evaluation of TroVE on MATHcited by 2
12 most cited of 22 All 22 (JSON)
- 2026Decode-Time Grammars: Constrained LLM Generation over a Refinement Order of Grammar Fragments20 Jul 2026
- 2026Prospective Compression in Human Abstraction Learning11 May 2026
- 2026Library learning with e-graphs on jazz harmony6 May 2026
- 2026LLM-Guided Strategy Synthesis for Scalable Equality Saturation19 Apr 2026
- 2026Online library learning in human visual puzzle solving24 Mar 2026
- 2025e-boost: Boosted E-Graph Extraction with Adaptive Heuristics and Exact Solving18 Aug 2025
- 2025A Compute-Matched Re-Evaluation of TroVE on MATH16 Jul 2025
- 2025Common Benchmarks Undervalue the Generalization Power of Programmatic Policies17 Jun 2025
- 2025Refactoring Codebases through Library Design26 May 2025
- 2025ShapeLib: Designing a library of programmatic 3D shape abstractions with Large Language Models13 Feb 2025
- 2024Algebraic anti-unification22 Jul 2024
- 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learning27 May 2024
12 newest of 22 All 22 (JSON)