Lune

POPL2023顶会

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

David Cao, Rose Kunkel, Chandrakana Nandi, Max Willsey, Zachary Tatlock, Nadia Polikarpova

摘要

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 antiunification 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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 25 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Improving Unsupervised Visual Program Inference with Code Rewriting Families 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
  • Improving Unsupervised Visual Program Inference with Code Rewriting Families 引用了 egg: Fast and extensible equality saturation
  • Improving Unsupervised Visual Program Inference with Code Rewriting Families 引用了 DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learning
  • Improving Unsupervised Visual Program Inference with Code Rewriting Families 引用了 Top-Down Synthesis for Library Learning
  • ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured Primitives 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
  • ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured Primitives 引用了 DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learning
  • ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured Primitives 引用了 Top-Down Synthesis for Library Learning
  • Automatic Generation of Vectorizing Compilers for Customizable Digital Signal Processors 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
  • Automatic Generation of Vectorizing Compilers for Customizable Digital Signal Processors 引用了 egg: Fast and extensible equality saturation
  • Automatic Generation of Vectorizing Compilers for Customizable Digital Signal Processors 引用了 Vectorization for digital signal processors via equality saturation
  • egg: Fast and extensible equality saturation 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
  • LILO: Learning Interpretable Libraries by Compressing and Documenting Code 引用了 Leveraging Language to Learn Program Abstractions and Search Heuristics
  • LILO: Learning Interpretable Libraries by Compressing and Documenting Code 引用了 DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learning
  • LILO: Learning Interpretable Libraries by Compressing and Documenting Code 引用了 Top-Down Synthesis for Library Learning
  • Top-Down Synthesis for Library Learning 引用了 egg: Fast and extensible equality saturation
  • Top-Down Synthesis for Library Learning 引用了 Leveraging Language to Learn Program Abstractions and Search Heuristics
  • Top-Down Synthesis for Library Learning 引用了 DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learning
  • Vectorization for digital signal processors via equality saturation 引用了 Synthesizing structured CAD models with equality saturation and inverse transformations
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper25

  1. LILO: Learning Interpretable Libraries by Compressing and Documenting CodeGabriel Grand, Lionel Wong, Matthew Bowers, Theo X. Olausson 等ICLR 2024 · 35 次引用
  2. Top-Down Synthesis for Library LearningMatthew Bowers, Theo X. Olausson, Lionel Wong, Gabriel Grand 等POPL 2023 · 32 次引用
  3. ShapeCoder: Discovering Abstractions for Visual Programs from Unstructured PrimitivesR. Kenny Jones, Paul Guerrero, Niloy J. Mitra, Daniel RitchieSIGGRAPH 2023 · 19 次引用
  4. Automatic Generation of Vectorizing Compilers for Customizable Digital Signal ProcessorsSamuel Thomas, James BornholtASPLOS 2024 · 16 次引用
  5. Improving Unsupervised Visual Program Inference with Code Rewriting FamiliesAditya Ganeshan, R. Kenny Jones, Daniel RitchieICCV 2023 · 13 次引用

它引用的 Paper12

  1. egg: Fast and extensible equality saturationMax Willsey, Chandrakana Nandi, Yisu Remy Wang, Oliver Flatt 等POPL 2021 · 170 次引用
  2. DreamCoder: bootstrapping inductive program synthesis with wake-sleep library learningKevin Ellis, Catherine Wong, Maxwell I. Nye, Mathias Sablé-Meyer 等PLDI 2021 · 97 次引用
  3. Synthesizing structured CAD models with equality saturation and inverse transformationsChandrakana Nandi, Max Willsey, Adam Anderson, James R. Wilcox 等PLDI 2020 · 65 次引用
  4. Leveraging Language to Learn Program Abstractions and Search HeuristicsCatherine Wong, Kevin Ellis, Joshua B. Tenenbaum, Jacob AndreasICML 2021 · 59 次引用
  5. Vectorization for digital signal processors via equality saturationAlexa VanHattum, Rachit Nigam, Vincent T. Lee, James Bornholt 等ASPLOS 2021 · 57 次引用

相关 Paper

  1. Fast and Optimal Extraction for Sparse Equality GraphsAmir Kafshdar Goharshady, Chun Kit Lam, Lionel ParreauxOOPSLA 2024 · 11 次引用
  2. ReGAL: Refactoring Programs to Discover Generalizable AbstractionsElias Stengel-Eskin, Archiki Prasad, Mohit BansalICML 2024 · 23 次引用
  3. Automating Constraint-Aware Datapath Optimization using E-GraphsSamuel Coward, George A. Constantinides, Theo DraneDAC 2023 · 19 次引用
  4. Dis/Equality GraphsGeorge Zakhour, Pascal Weisenburger, Jahrim Gabriele Cesario, Guido SalvaneschiPOPL 2025 · 3 次引用
  5. Automated Knowledge-Aware Test ReuseZiyuan Zhang, Yi Gao, Xing Hu, Xin Xia 等FSE 2026
黄昏的海面,两侧是细线勾勒的悬崖