mlsanityData to 7 Oct 2026

babble: Learning Better Abstractions with E-Graphs and Anti-Unification

arXiv 2212.04596 ↗First posted 8 Dec 2022cs.PLcited by 22

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 8; 2024: 4; 2025: 5; 2026: 5.

22 papers.

Sort:

  1. 2023LILO: Learning Interpretable Libraries by Compressing and Documenting Codecited by 46
  2. 2023Learning adaptive planning representations with natural language guidancecited by 36
  3. 2023ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured Primitivescited by 22
  4. 2023Improving Unsupervised Visual Program Inference with Code Rewriting Familiescited by 10
  5. 2023Anti-unification and Generalization: A Surveycited by 7
  6. 2023Learning of Generalizable and Interpretable Knowledge in Grid-Based Reinforcement Learning Environmentscited by 5
  7. 2024Searching for Programmatic Policies in Semantic Spacescited by 5
  8. 2025ShapeLib: Designing a library of programmatic 3D shape abstractions with Large Language Modelscited by 5
  9. 2025Refactoring Codebases through Library Designcited by 4
  10. 2023Bayesian Program Learning by Decompiling Amortized Knowledgecited by 2
  11. 2024AbstractBeam: Enhancing Bottom-Up Program Synthesis using Library Learningcited by 2
  12. 2025A Compute-Matched Re-Evaluation of TroVE on MATHcited by 2
10 more
  1. 2025e-boost: Boosted E-Graph Extraction with Adaptive Heuristics and Exact Solvingcited by 2
  2. 2023Learning logic programs by discovering higher-order abstractionscited by 1
  3. 2024MeMo: Meaningful, Modular Controllers via Noise Injectioncited by 1
  4. 2026Online library learning in human visual puzzle solvingcited by 1
  5. 2026Library learning with e-graphs on jazz harmonycited by 1
  6. 2024Algebraic anti-unificationcited by 0
  7. 2025Common Benchmarks Undervalue the Generalization Power of Programmatic Policiescited by 0
  8. 2026LLM-Guided Strategy Synthesis for Scalable Equality Saturationcited by 0
  9. 2026Prospective Compression in Human Abstraction Learningcited by 0
  10. 2026Decode-Time Grammars: Constrained LLM Generation over a Refinement Order of Grammar Fragmentscited by 0