Torch-Struct:深度结构化预测库
Torch-Struct: Deep Structured Prediction Library
摘要:
关于NLP结构化预测的文献描述了关于序列、分割、比对和树的丰富的分布和算法集合;然而,这些算法很难在深度学习框架中使用。我们介绍Torch-Struct,一个结构化预测库,旨在利用并集成基于矢量化,自动微分的框架。Torch-Struct包括通过简单灵活的基于分布的API访问的广泛的概率结构集合,该API连接到任何深度学习模型。该库利用批处理、向量化操作,并利用自动微分来生成可读、快速和可测试的代码。在内部,我们还包括一些通用的优化,以提供跨算法的效率。实验表明,显着的性能增益超过快速基线和案例研究证明了图书馆的好处。Torch-Struct可在https://github.com/harvardnlp/pytorch-struct上获得。
英文摘要:
The literature on structured prediction for NLP describes a rich collection of distributions and algorithms over sequences, segmentations, alignments, and trees; however, these algorithms are difficult to utilize in deep learning frameworks. We introduce Torch-Struct, a library for structured prediction designed to take advantage of and integrate with vectorized, auto-differentiation based frameworks. Torch-Struct includes a broad collection of probabilistic structures accessed through a simple and flexible distribution-based API that connects to any deep learning model. The library utilizes batched, vectorized operations and exploits auto-differentiation to produce readable, fast, and testable code. Internally, we also include a number of general-purpose optimizations to provide cross-algorithm efficiency. Experiments show significant performance gains over fast baselines and case-studies demonstrate the benefits of the library. Torch-Struct is available at https://github.com/harvardnlp/pytorch-struct.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。