We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

Title: Efficient Computation of Expectations under Spanning Tree Distributions

Abstract: We give a general framework for inference in spanning tree models. We propose unified algorithms for the important cases of first-order expectations and second-order expectations in edge-factored, non-projective spanning-tree models. Our algorithms exploit a fundamental connection between gradients and expectations, which allows us to derive efficient algorithms. These algorithms are easy to implement with or without automatic differentiation software. We motivate the development of our framework with several \emph{cautionary tales} of previous research, which has developed numerous inefficient algorithms for computing expectations and their gradients. We demonstrate how our framework efficiently computes several quantities with known algorithms, including the expected attachment score, entropy, and generalized expectation criteria. As a bonus, we give algorithms for quantities that are missing in the literature, including the KL divergence. In all cases, our approach matches the efficiency of existing algorithms and, in several cases, reduces the runtime complexity by a factor of the sentence length. We validate the implementation of our framework through runtime experiments. We find our algorithms are up to 15 and 9 times faster than previous algorithms for computing the Shannon entropy and the gradient of the generalized expectation objective, respectively.
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2008.12988 [cs.CL]
  (or arXiv:2008.12988v4 [cs.CL] for this version)

Submission history

From: Ran Zmigrod [view email]
[v1] Sat, 29 Aug 2020 14:58:26 GMT (55kb)
[v2] Wed, 2 Sep 2020 22:13:01 GMT (55kb,D)
[v3] Wed, 18 Nov 2020 14:52:00 GMT (113kb,D)
[v4] Thu, 25 Mar 2021 10:12:34 GMT (151kb,D)

Link back to: arXiv, form interface, contact.