Efficient Computation of Expectations under Spanning Tree Distributions
Not on the map. Why?
Abstract (arXiv)
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 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.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). First posted on arXiv 29 Aug 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 3; 2023: 2; 2024: 2; 2025: 1; 2026: 1.
11 papers.
- 2024What Languages are Easy to Language-Model? A Perspective from Learning Probabilistic Regular Languagescited by 20
- 2023Differentiable Clustering with Perturbed Spanning Forestscited by 14
- 2022Measuring and Reducing Model Update Regression in Structured Prediction for NLPcited by 11
- 2024Can Transformers Learn n-gram Language Models?cited by 11
- 2022The Architectural Bottleneck Principlecited by 5
- 2025Joint Learning of Energy-based Models and their Partition Functioncited by 3
- 2022Unbiased and Efficient Sampling of Dependency Treescited by 2
- 2023SynJax: Structured Probability Distributions for JAXcited by 2
- 2021Higher-order Derivatives of Weighted Finite-state Machinescited by 0
- 2021Efficient Sampling of Dependency Structurescited by 0
- 2026Syntactic Belief Update as the Driver of Garden Path Processing Difficultycited by 0
- 2026Syntactic Belief Update as the Driver of Garden Path Processing Difficulty25 Jun 2026
- 2025Joint Learning of Energy-based Models and their Partition Function30 Jan 2025
- 2024Can Transformers Learn n-gram Language Models?3 Oct 2024
- 2024What Languages are Easy to Language-Model? A Perspective from Learning Probabilistic Regular Languages6 Jun 2024
- 2023SynJax: Structured Probability Distributions for JAX7 Aug 2023
- 2023Differentiable Clustering with Perturbed Spanning Forests25 May 2023
- 2022The Architectural Bottleneck Principle11 Nov 2022
- 2022Unbiased and Efficient Sampling of Dependency Trees25 May 2022
- 2022Measuring and Reducing Model Update Regression in Structured Prediction for NLP7 Feb 2022
- 2021Efficient Sampling of Dependency Structures14 Sep 2021
- 2021Higher-order Derivatives of Weighted Finite-state Machines1 Jun 2021