EMNLP Findings2021
Searching for More Efficient Dynamic Programs
摘要
Computational models of human language often involve combinatorial problems.For instance, a probabilistic parser may marginalize over exponentially many trees to make predictions.Algorithms for such problems often employ dynamic programming and are not always unique.Finding one with optimal asymptotic runtime can be unintuitive, timeconsuming, and error-prone.Our work aims to automate this laborious process.Given an initial correct declarative program, we search for a sequence of semantics-preserving transformations to improve its running time as much as possible.To this end, we describe a set of program transformations, a simple metric for assessing the efficiency of a transformed program, and a heuristic search procedure to improve this metric.We show that in practice, automated search-like the mental search performed by human programmers-can find substantial improvements to the initial program.Empirically, we show that many speed-ups described in the NLP literature could have been discovered automatically by our system.β(X,I,K) += γ(X,Y,Z) * β(Y,I,J) * β(Z,J,K).β(X,I,K) += γ(X,Y) * word(Y,I,K).z += β(root,0,N) * len(N).start β(X,I,K) += tmp(I,J,X,Z) * β(Z,J,K).β(X,I,K) += γ(X,Y) * word(Y,I,K).z += β(root,0,N) * len(N).tmp(I,J,X,Z) += β(Y,I,J) * γ(X,Y,Z).fold(1, [1, 2]) elim(4) β(X,I,K) += γ(X,Y,Z) * β(Y,I,J) * β(Z,J,K).β(X,I,K) += γ(X,Y) * word(Y,I,K).
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
它引用的 Paper1
相关 Paper
- Optimal Program Synthesis via Abstract InterpretationStephen Mell, Steve Zdancewic, Osbert BastaniPOPL 2024 · 6 次引用
- Algorithms for Weighted Pushdown AutomataAlexandra Butoi, Brian DuSell, Tim Vieira, Ryan Cotterell 等EMNLP 2022 · 2 次引用
- DEPT: Large Language Model–Driven Automated Algorithm Design via Evolutionary Program TreesBin Chen, Shouliang Zhu, Beidan Liu, Yong Zhao 等ICML 2026 · 3 次引用
- Eco Search: A No-delay Best-First Search Algorithm for Program SynthesisThéo Matricon, Nathanaël Fijalkow, Guillaume LagardeAAAI 2025 · 1 次引用
- Presynthesis: Towards Scaling Up Program Synthesis with Finer-Grained Abstract SemanticsRui Dong, Qingyue Wu, Danny Ding, Zheng Guo 等PLDI 2026
