Lune

EMNLP Findings2021

Searching for More Efficient Dynamic Programs

Tim Vieira, Ryan Cotterell, Jason Eisner

摘要

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。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper1

  1. Neural Architecture Search Using Deep Neural Networks and Monte Carlo Tree SearchLinnan Wang, Yiyang Zhao, Yuu Jinnai, Yuandong Tian 等AAAI 2020 · 56 次引用

相关 Paper

  1. Optimal Program Synthesis via Abstract InterpretationStephen Mell, Steve Zdancewic, Osbert BastaniPOPL 2024 · 6 次引用
  2. Algorithms for Weighted Pushdown AutomataAlexandra Butoi, Brian DuSell, Tim Vieira, Ryan Cotterell 等EMNLP 2022 · 2 次引用
  3. A2A_2DEPT: Large Language Model–Driven Automated Algorithm Design via Evolutionary Program TreesBin Chen, Shouliang Zhu, Beidan Liu, Yong Zhao 等ICML 2026 · 3 次引用
  4. Eco Search: A No-delay Best-First Search Algorithm for Program SynthesisThéo Matricon, Nathanaël Fijalkow, Guillaume LagardeAAAI 2025 · 1 次引用
  5. Presynthesis: Towards Scaling Up Program Synthesis with Finer-Grained Abstract SemanticsRui Dong, Qingyue Wu, Danny Ding, Zheng Guo 等PLDI 2026
黄昏的海面,两侧是细线勾勒的悬崖