CLAug 29, 2020

Efficient Computation of Expectations under Spanning Tree Distributions

arXiv:2008.12988v4656 citations
Originality Incremental advance
AI Analysis

This work provides more efficient algorithms for inference in spanning tree models, which is important for natural language processing and other structured prediction tasks, though it appears to be an incremental improvement on existing methods.

The authors developed a unified framework for efficiently computing first- and second-order expectations in edge-factored spanning tree models, achieving up to 15x and 9x speed improvements over previous methods for specific tasks like Shannon entropy and gradient computation.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes