Efficient Sampling of Dependency Structure
Ran Zmigrod, Tim Vieira, Ryan Cotterell
Abstract
Probabilistic distributions over spanning trees in directed graphs are a fundamental model of dependency structure in natural language processing, syntactic dependency trees. In NLP, dependency trees often have an additional root constraint: only one edge may emanate from the root. However, no sampling algorithm has been presented in the literature to account for this additional constraint. In this paper, we adapt two spanning tree sampling algorithms to sample dependency trees from a graph subject to the root constraint. Wilson (1996)'s sampling algorithm has a running time of O(H) where H is the mean hitting time of the graph. Colbourn et al. (1996) 's sampling algorithm has a running time of O(N 3 ), which is often greater than the mean hitting time of a directed graph. Additionally, we build upon Colbourn's algorithm and present a novel extension that can sample K trees without replacement in O(KN 3 + K 2 N ) time. To the best of our knowledge, no algorithm has been given for sampling spanning trees without replacement from a directed graph. 1
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext bdec0260-08cc-42f3-9e34-b3f8677c6e45Builds on3
- Incremental Sampling Without Replacement for Sequence ModelsKensen Shi, David Bieber, Charles SuttonICML 2020 · 29 citations
- A Root of a Problem: Optimizing Single-Root Dependency ParsingMilos Stanojevic, Shay B. CohenEMNLP 2021 · 5 citations
- Unbiased and Efficient Sampling of Dependency TreesMilos StanojevicEMNLP 2022 · 1 citation
Related papers
- On Finding the K-best Non-projective Dependency TreesRan Zmigrod, Tim Vieira, Ryan CotterellACL 2021
- Optimal Sublinear Sampling of Spanning Trees and Determinantal Point Processes via Average-Case Entropic IndependenceNima Anari, Yang P. Liu, Thuy-Duong VuongFOCS 2022 · 1 citation
- Headed-Span-Based Projective Dependency ParsingSonglin Yang, Kewei TuACL 2022 · 16 citations
- Polynomial-Time Algorithms for Counting and Sampling Markov Equivalent DAGsMarcel Wienöbst, Max Bannach, Maciej LiskiewiczAAAI 2021 · 20 citations
- Dependency Parsing as MRC-based Span-Span PredictionLeilei Gan, Yuxian Meng, Kun Kuang, Xiaofei Sun et al.ACL 2022
