Torch-struct: Deep structured prediction library

40Citations
Citations of this article
146Readers
Mendeley users who have this article in their library.

Abstract

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. Case studies demonstrate the benefits of the library. Torch-Struct is available at https://github.com/harvardnlp/pytorch-struct.

Cite

CITATION STYLE

APA

Rush, A. M. (2020). Torch-struct: Deep structured prediction library. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (pp. 335–342). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2020.acl-demos.38

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free