arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.06521cs.CL
收藏

依赖结构的有效采样

Efficient Sampling of Dependency Structures

University of Cambridge(剑桥大学);Johns Hopkins University(约翰斯·霍普金斯大学);ETH Zürich(苏黎世联邦理工学院)

Ran Zmigrod, Tim Vieira, Ryan Cotterell

摘要:

有向图生成树上的概率分布是自然语言处理中依存结构的一个基本模型,即句法依存树。在NLP中,依赖树通常有一个额外的根约束:只有一条边可以从根发出。然而,在文献中没有提出任何采样算法来考虑这一额外的约束。在本文中,我们适应两个生成树采样算法忠实地从图的根约束依赖树的样本。Wilson(1996)的采样算法的运行时间为$\mathcal{O}(H)$,其中$H$是图的平均命中时间。Colbourn(1996)的采样算法的运行时间为$\mathcal{O}(N^3)$,它通常大于有向图的平均命中时间。此外,我们建立在Colbourn的算法,并提出了一种新的扩展,可以在$\mathcal{O}(K N^3 + K^2 N)$的时间不更换$K$树的样本。据我们所知,没有算法已经给出了采样生成树没有从有向图的替换。

英文摘要:

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 faithfully sample dependency trees from a graph subject to the root constraint. Wilson (1996)'s sampling algorithm has a running time of $\mathcal{O}(H)$ where $H$ is the mean hitting time of the graph. Colbourn (1996)'s sampling algorithm has a running time of $\mathcal{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 $\mathcal{O}(K N^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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑