{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,14]],"date-time":"2026-06-14T08:15:51Z","timestamp":1781424951517,"version":"3.54.1"},"reference-count":39,"publisher":"MIT Press","license":[{"start":{"date-parts":[[2023,8,16]],"date-time":"2023-08-16T00:00:00Z","timestamp":1692144000000},"content-version":"vor","delay-in-days":227,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["direct.mit.edu"],"crossmark-restriction":true},"short-container-title":[],"published-print":{"date-parts":[[2023,8,15]]},"abstract":"<jats:title>Abstract<\/jats:title>\n               <jats:p>Many NLP algorithms have been described in terms of deduction systems. Unweighted deduction allows a generic forward-chaining execution strategy. For weighted deduction, however, efficient execution should propagate the weight of each item only after it has converged. This means visiting the items in topologically sorted order (as in dynamic programming). Toposorting is fast on a materialized graph; unfortunately, materializing the graph would take extra space. Is there a generic weighted deduction strategy which, for every acyclic deduction system and every input, uses only a constant factor more time and space than generic unweighted deduction? After reviewing past strategies, we answer this question in the affirmative by combining ideas of Goodman (1999) and Kahn (1962). We also give an extension to cyclic deduction systems, based on Tarjan (1972).<\/jats:p>","DOI":"10.1162\/tacl_a_00588","type":"journal-article","created":{"date-parts":[[2023,8,16]],"date-time":"2023-08-16T19:47:15Z","timestamp":1692215235000},"page":"960-973","update-policy":"https:\/\/doi.org\/10.1162\/mitpressjournals.corrections.policy","source":"Crossref","is-referenced-by-count":3,"title":["Time-and-Space-Efficient Weighted Deduction"],"prefix":"10.1162","volume":"11","author":[{"given":"Jason","family":"Eisner","sequence":"first","affiliation":[{"name":"Department of Computer Science, Johns Hopkins University. jason@cs.jhu.edu"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"281","published-online":{"date-parts":[[2023,8,15]]},"reference":[{"key":"2023081619465359100_bib1","doi-asserted-by":"crossref","DOI":"10.1121\/1.2017061","article-title":"Trainable grammars for speech recognition","volume-title":"Speech Communication Papers Presented at the 97th Meeting of the Acoustical Society of America","author":"Baker","year":"1979"},{"issue":"3","key":"2023081619465359100_bib2","doi-asserted-by":"crossref","first-page":"255","DOI":"10.1016\/0743-1066(91)90038-Q","article-title":"On the power of magic","volume":"10","author":"Beeri","year":"1991","journal-title":"Journal of Logic Programming"},{"key":"2023081619465359100_bib3","doi-asserted-by":"crossref","first-page":"87","DOI":"10.1090\/qam\/102435","article-title":"On a routing problem","volume":"16","author":"Bellman","year":"1958","journal-title":"Quarterly of Applied Mathematics"},{"key":"2023081619465359100_bib4","doi-asserted-by":"crossref","DOI":"10.1007\/978-3-642-83952-8","volume-title":"Logic Programming and Databases","author":"Ceri","year":"1990"},{"issue":"11","key":"2023081619465359100_bib5","doi-asserted-by":"crossref","first-page":"632","DOI":"10.1145\/363269.363610","article-title":"Algorithm 360: Shortest-path forest with topological ordering","volume":"12","author":"Dial","year":"1969","journal-title":"Communications of the ACM"},{"key":"2023081619465359100_bib6","doi-asserted-by":"crossref","first-page":"269","DOI":"10.1007\/BF01386390","article-title":"A note on two problems in connexion with graphs","volume":"1","author":"Dijkstra","year":"1959","journal-title":"Numerische Mathematik"},{"key":"2023081619465359100_bib7","first-page":"1129","article-title":"Unsupervised latent tree induction with deep inside-outside recursive auto-encoders","volume-title":"Proceedings of NAACL: HLT","author":"Drozdov","year":"2019"},{"issue":"2","key":"2023081619465359100_bib8","doi-asserted-by":"crossref","first-page":"94","DOI":"10.1145\/362007.362035","article-title":"An efficient context-free parsing algorithm","volume":"13","author":"Earley","year":"1970","journal-title":"Communications of the ACM"},{"key":"2023081619465359100_bib9","first-page":"45","article-title":"Program transformations for optimization of parsing algorithms and other weighted logic programs","volume-title":"Proceedings of FG 2006: The 11th Conference on Formal Grammar","author":"Eisner","year":"2007"},{"key":"2023081619465359100_bib10","doi-asserted-by":"crossref","first-page":"181","DOI":"10.1007\/978-3-642-24206-9_11","article-title":"Dyna: Extending Datalog for modern AI","volume-title":"Datalog Reloaded","author":"Eisner","year":"2011"},{"key":"2023081619465359100_bib11","first-page":"281","article-title":"Compiling comp ling: Weighted dynamic programming and the Dyna language","volume-title":"Proceedings of Human Language Technology Conference and Conference on Empirical Methods in Natural Language Processing","author":"Eisner","year":"2005"},{"key":"2023081619465359100_bib12","first-page":"425","article-title":"A flexible solver for finite arithmetic circuits","volume-title":"Technical Communications of the 28th International Conference on Logic Programming (ICLP)","author":"Filardo","year":"2012"},{"key":"2023081619465359100_bib13","unstructured":"C. L.\n              Forgy\n            \n          . 1979. On the Efficient Implementation of Production Systems. Ph.D. thesis, Carnegie-Mellon University Department of Computer Science."},{"issue":"3","key":"2023081619465359100_bib14","doi-asserted-by":"crossref","first-page":"596","DOI":"10.1145\/28869.28874","article-title":"Fibonacci heaps and their uses in improved network optimization algorithms","volume":"34","author":"Fredman","year":"1987","journal-title":"Journal of the ACM"},{"key":"2023081619465359100_bib15","doi-asserted-by":"crossref","first-page":"177","DOI":"10.1016\/0166-218X(93)90045-P","article-title":"Directed hypergraphs and applications","volume":"42","author":"Gallo","year":"1993","journal-title":"Discrete Applied Mathematics"},{"issue":"4","key":"2023081619465359100_bib16","first-page":"573","article-title":"Semiring parsing","volume":"25","author":"Goodman","year":"1999","journal-title":"Computational Linguistics"},{"issue":"3","key":"2023081619465359100_bib17","doi-asserted-by":"crossref","first-page":"415","DOI":"10.1145\/357103.357112","article-title":"An improved context-free recognizer","volume":"2","author":"Graham","year":"1980","journal-title":"ACM Transactions on Programming Languages and Systems"},{"issue":"11","key":"2023081619465359100_bib18","doi-asserted-by":"crossref","first-page":"558","DOI":"10.1145\/368996.369025","article-title":"Topological sorting of large networks","volume":"5","author":"Kahn","year":"1962","journal-title":"Commmunications of the ACM"},{"key":"2023081619465359100_bib19","unstructured":"Tadao\n              Kasami\n            \n          . 1965. An efficient recognition and syntax-analysis algorithm for context-free languages. Technical Report AFCRL-65-758, Air Force Cambridge Research Laboratory, Bedford, MA."},{"issue":"1","key":"2023081619465359100_bib20","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1016\/0020-0190(77)90002-3","article-title":"A generalization of Dijkstra\u2019s algorithm","volume":"6","author":"Knuth","year":"1977","journal-title":"Information Processing Letters"},{"issue":"1","key":"2023081619465359100_bib21","doi-asserted-by":"crossref","first-page":"59","DOI":"10.1016\/0304-3975(77)90056-1","article-title":"Algebraic structures for transitive closure","volume":"4","author":"Lehmann","year":"1977","journal-title":"Theoretical Computer Science"},{"key":"2023081619465359100_bib22","unstructured":"Vera\n              Matei\n            \n          . 2016. Parallel Algorithms for Detecting Strongly Connected Components. Master\u2019s thesis, Vrije Universiteit Amsterdam."},{"issue":"4","key":"2023081619465359100_bib23","doi-asserted-by":"crossref","first-page":"512","DOI":"10.1145\/581771.581774","article-title":"On the complexity analysis of static analyses","volume":"49","author":"McAllester","year":"2002","journal-title":"Journal of the ACM"},{"key":"2023081619465359100_bib24","article-title":"Don\u2019t worry, be happy","volume-title":"Simple Pleasures","author":"McFerrin","year":"1988"},{"issue":"1","key":"2023081619465359100_bib25","doi-asserted-by":"crossref","first-page":"135","DOI":"10.1162\/089120103321337467","article-title":"Weighted deductive parsing and Knuth\u2019s algorithm","volume":"29","author":"Nederhof","year":"2003","journal-title":"Computational Linguistics"},{"key":"2023081619465359100_bib26","doi-asserted-by":"crossref","DOI":"10.18653\/v1\/2023.acl-long.204","article-title":"Efficient semiring-weighted Earley parsing","volume-title":"Proceedings of ACL","author":"Opedal","year":"2023"},{"key":"2023081619465359100_bib27","first-page":"137","article-title":"Parsing as deduction","volume-title":"Proceedings of ACL","author":"Pereira","year":"1983"},{"issue":"3","key":"2023081619465359100_bib28","doi-asserted-by":"crossref","first-page":"155","DOI":"10.1080\/08839519008927948","article-title":"Topologically traversing the RETE network","volume":"4","author":"Perlin","year":"1990","journal-title":"Applied Artificial Intelligence"},{"issue":"1","key":"2023081619465359100_bib29","doi-asserted-by":"crossref","first-page":"76","DOI":"10.1007\/BF01940892","article-title":"A transitive closure algorithm","volume":"10","author":"Paul Purdom","year":"1970","journal-title":"BIT Numerical Mathematics"},{"key":"2023081619465359100_bib30","first-page":"715","article-title":"A statistical learning method for logic programs with distribution semantics","volume-title":"Proceedings of ICLP","author":"Sato","year":"1995"},{"issue":"1\u20132","key":"2023081619465359100_bib31","doi-asserted-by":"crossref","first-page":"3","DOI":"10.1016\/0743-1066(95)00035-I","article-title":"Principles and implementation of deductive parsing","volume":"24","author":"Shieber","year":"1995","journal-title":"Journal of Logic Programming"},{"key":"2023081619465359100_bib32","unstructured":"Klaas\n              Sikkel\n            \n          . 1993. Parsing Schemata. Ph.D. thesis, University of Twente, Enschede, The Netherlands. Published as a book by Springer-Verlag in 1997."},{"issue":"2","key":"2023081619465359100_bib33","first-page":"165","article-title":"An efficient probabilistic context-free parsing algorithm that computes prefix probabilities","volume":"21","author":"Stolcke","year":"1995","journal-title":"Computational Linguistics"},{"issue":"4","key":"2023081619465359100_bib34","doi-asserted-by":"crossref","first-page":"354","DOI":"10.1007\/BF02165411","article-title":"Gaussian elimination is not optimal","volume":"13","author":"Strassen","year":"1969","journal-title":"Numerische Mathematik"},{"issue":"2","key":"2023081619465359100_bib35","doi-asserted-by":"crossref","first-page":"146","DOI":"10.1137\/0201010","article-title":"Depth-first search and linear graph algorithms","volume":"1","author":"Tarjan","year":"1972","journal-title":"SIAM Journal on Computing"},{"issue":"3","key":"2023081619465359100_bib36","doi-asserted-by":"crossref","first-page":"594","DOI":"10.1145\/322261.322273","article-title":"Fast algorithms for solving path problems","volume":"28","author":"Tarjan","year":"1981","journal-title":"Journal of the ACM"},{"issue":"1","key":"2023081619465359100_bib37","doi-asserted-by":"crossref","first-page":"86","DOI":"10.1137\/S0097539795288246","article-title":"On RAM priority queues","volume":"30","author":"Thorup","year":"2000","journal-title":"SIAM Journal on Computing"},{"key":"2023081619465359100_bib38","first-page":"3812","article-title":"Searching for more efficient dynamic programs","volume-title":"Findings of EMNLP\u201921","author":"Vieira","year":"2021"},{"key":"2023081619465359100_bib39","article-title":"Automating the analysis of parsing algorithms (and other dynamic programs)","author":"Vieira","year":"2022","journal-title":"Transactions of the Association for Computational Linguistics"}],"container-title":["Transactions of the Association for Computational Linguistics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/direct.mit.edu\/tacl\/article-pdf\/doi\/10.1162\/tacl_a_00588\/2154459\/tacl_a_00588.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/direct.mit.edu\/tacl\/article-pdf\/doi\/10.1162\/tacl_a_00588\/2154459\/tacl_a_00588.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2023,8,16]],"date-time":"2023-08-16T19:47:38Z","timestamp":1692215258000},"score":1,"resource":{"primary":{"URL":"https:\/\/direct.mit.edu\/tacl\/article\/doi\/10.1162\/tacl_a_00588\/117220\/Time-and-Space-Efficient-Weighted-Deduction"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023]]},"references-count":39,"URL":"https:\/\/doi.org\/10.1162\/tacl_a_00588","relation":{},"ISSN":["2307-387X"],"issn-type":[{"value":"2307-387X","type":"electronic"}],"subject":[],"published-other":{"date-parts":[[2023]]},"published":{"date-parts":[[2023]]}}}