Torch-Struct: Deep Structured Prediction Library
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 40 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Feb 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 17; 2022: 7; 2023: 11; 2024: 2; 2025: 1; 2026: 2.
40 papers.
Sort:
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
- 2023GFlowNet-EM for learning compositional latent variable modelscited by 40
- 2021Sequence-to-Sequence Learning with Latent Neural Grammarscited by 30
- 2021PCFGs Can Do Better: Inducing Probabilistic Context-Free Grammars with Many Symbolscited by 22
- 2022Model Criticism for Long-Form Text Generationcited by 21
- 2021Neural Bi-Lexicalized PCFG Inductioncited by 18
- 2022Finding Dataset Shortcuts with Grammar Inductioncited by 15
- 2021Semantic Role Labeling as Dependency Parsing: Exploring Latent Tree Structures Inside Argumentscited by 14
- 2022Nested Named Entity Recognition as Latent Lexicalized Constituency Parsingcited by 14
- 2021DomiKnowS: A Library for Integration of Symbolic Domain Knowledge in Deep Learningcited by 12
- 2021Headed-Span-Based Projective Dependency Parsingcited by 11
- 2021GenNI: Human-AI Collaboration for Data-Backed Text Generationcited by 11
28 more
- 2022Dynamic Programming in Rank Space: Scaling Structured Inference with Low-Rank HMMs and PCFGscited by 10
- 2023string2string: A Modern Python Library for String-to-String Algorithmscited by 9
- 2022Hierarchical Phrase-based Sequence-to-Sequence Learningcited by 7
- 2021PPT: Parsimonious Parser Transfer for Unsupervised Cross-Lingual Adaptationcited by 6
- 2021An Empirical Study of Compound PCFGscited by 6
- 2021Masked Conditional Random Fields for Sequence Labelingcited by 6
- 2021Developmental Stage Classification of Embryos Using Two-Stream Neural Network with Linear-Chain Conditional Random Fieldcited by 6
- 2022A Latent-Variable Model for Intrinsic Probingcited by 5
- 2024A fast and sound tagging method for discontinuous named-entity recognitioncited by 4
- 2021DeepCPCFG: Deep Learning and Context Free Grammars for End-to-End Information Extractioncited by 3
- 2021Recursive Bayesian Networks: Generalising and Unifying Probabilistic Context-Free Grammars and Dynamic Bayesian Networkscited by 3
- 2023Approximating CKY with Transformerscited by 3
- 2023Simple Hardware-Efficient PCFGs with Independent Left and Right Productionscited by 3
- 2021Scaling Structured Inference with Randomizationcited by 2
- 2022Unbiased and Efficient Sampling of Dependency Treescited by 2
- 2023TorchBench: Benchmarking PyTorch with High API Surface Coveragecited by 2
- 2023Multilingual Multiword Expression Identification Using Lateral Inhibition and Domain Adaptationcited by 2
- 2023SynJax: Structured Probability Distributions for JAXcited by 2
- 2021Using Python for Model Inference in Deep Learningcited by 1
- 2021Searching for More Efficient Dynamic Programscited by 1
- 2023Modified Gauss-Newton Algorithms under Noisecited by 1
- 2023Improving Grammar-based Sequence-to-Sequence Modeling with Decomposition and Constraintscited by 1
- 2023Filtered Semi-Markov CRFcited by 1
- 2021Unsupervised Cross-Lingual Transfer of Structured Predictors without Source Datacited by 0
- 2023LAST: Scalable Lattice-Based Speech Modelling in JAXcited by 0
- 2025A Joint Multitask Model for Morpho-Syntactic Parsingcited by 0
- 2026Streaming Structured Inference with Flash-SemiCRFcited by 0
- 2026Prefix Parsing is Just Parsingcited by 0
- 2026Prefix Parsing is Just Parsing23 Apr 2026
- 2026Streaming Structured Inference with Flash-SemiCRF20 Apr 2026
- 2025A Joint Multitask Model for Morpho-Syntactic Parsing19 Aug 2025
- 2024A fast and sound tagging method for discontinuous named-entity recognition24 Sep 2024
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modeling11 Sep 2024
- 2023Filtered Semi-Markov CRF29 Nov 2023
- 2023Simple Hardware-Efficient PCFGs with Independent Left and Right Productions23 Oct 2023
- 2023SynJax: Structured Probability Distributions for JAX7 Aug 2023
- 2023Multilingual Multiword Expression Identification Using Lateral Inhibition and Domain Adaptation17 Jun 2023
- 2023Improving Grammar-based Sequence-to-Sequence Modeling with Decomposition and Constraints5 Jun 2023
- 2023Modified Gauss-Newton Algorithms under Noise18 May 2023
- 2023Approximating CKY with Transformers3 May 2023
28 more
- 2023string2string: A Modern Python Library for String-to-String Algorithms27 Apr 2023
- 2023TorchBench: Benchmarking PyTorch with High API Surface Coverage27 Apr 2023
- 2023LAST: Scalable Lattice-Based Speech Modelling in JAX25 Apr 2023
- 2023GFlowNet-EM for learning compositional latent variable models13 Feb 2023
- 2022Hierarchical Phrase-based Sequence-to-Sequence Learning15 Nov 2022
- 2022Finding Dataset Shortcuts with Grammar Induction20 Oct 2022
- 2022Model Criticism for Long-Form Text Generation16 Oct 2022
- 2022Unbiased and Efficient Sampling of Dependency Trees25 May 2022
- 2022Dynamic Programming in Rank Space: Scaling Structured Inference with Low-Rank HMMs and PCFGs1 May 2022
- 2022Nested Named Entity Recognition as Latent Lexicalized Constituency Parsing9 Mar 2022
- 2022A Latent-Variable Model for Intrinsic Probing20 Jan 2022
- 2021Scaling Structured Inference with Randomization7 Dec 2021
- 2021Recursive Bayesian Networks: Generalising and Unifying Probabilistic Context-Free Grammars and Dynamic Bayesian Networks2 Nov 2021
- 2021GenNI: Human-AI Collaboration for Data-Backed Text Generation19 Oct 2021
- 2021Semantic Role Labeling as Dependency Parsing: Exploring Latent Tree Structures Inside Arguments13 Oct 2021
- 2021Unsupervised Cross-Lingual Transfer of Structured Predictors without Source Data8 Oct 2021
- 2021Searching for More Efficient Dynamic Programs14 Sep 2021
- 2021Sequence-to-Sequence Learning with Latent Neural Grammars2 Sep 2021
- 2021DomiKnowS: A Library for Integration of Symbolic Domain Knowledge in Deep Learning27 Aug 2021
- 2021Headed-Span-Based Projective Dependency Parsing10 Aug 2021
- 2021Developmental Stage Classification of Embryos Using Two-Stream Neural Network with Linear-Chain Conditional Random Field13 Jul 2021
- 2021Neural Bi-Lexicalized PCFG Induction31 May 2021
- 2021PCFGs Can Do Better: Inducing Probabilistic Context-Free Grammars with Many Symbols28 Apr 2021
- 2021Using Python for Model Inference in Deep Learning1 Apr 2021
- 2021Masked Conditional Random Fields for Sequence Labeling19 Mar 2021
- 2021DeepCPCFG: Deep Learning and Context Free Grammars for End-to-End Information Extraction10 Mar 2021
- 2021An Empirical Study of Compound PCFGs3 Mar 2021
- 2021PPT: Parsimonious Parser Transfer for Unsupervised Cross-Lingual Adaptation27 Jan 2021
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modelingcited by 73
- 2023GFlowNet-EM for learning compositional latent variable modelscited by 40
- 2021Sequence-to-Sequence Learning with Latent Neural Grammarscited by 30
- 2021PCFGs Can Do Better: Inducing Probabilistic Context-Free Grammars with Many Symbolscited by 22
- 2022Model Criticism for Long-Form Text Generationcited by 21
- 2021Neural Bi-Lexicalized PCFG Inductioncited by 18
- 2022Finding Dataset Shortcuts with Grammar Inductioncited by 15
- 2021Semantic Role Labeling as Dependency Parsing: Exploring Latent Tree Structures Inside Argumentscited by 14
- 2022Nested Named Entity Recognition as Latent Lexicalized Constituency Parsingcited by 14
- 2021DomiKnowS: A Library for Integration of Symbolic Domain Knowledge in Deep Learningcited by 12
- 2021Headed-Span-Based Projective Dependency Parsingcited by 11
- 2021GenNI: Human-AI Collaboration for Data-Backed Text Generationcited by 11
12 most cited of 40 All 40 (JSON)
- 2026Prefix Parsing is Just Parsing23 Apr 2026
- 2026Streaming Structured Inference with Flash-SemiCRF20 Apr 2026
- 2025A Joint Multitask Model for Morpho-Syntactic Parsing19 Aug 2025
- 2024A fast and sound tagging method for discontinuous named-entity recognition24 Sep 2024
- 2024Gated Slot Attention for Efficient Linear-Time Sequence Modeling11 Sep 2024
- 2023Filtered Semi-Markov CRF29 Nov 2023
- 2023Simple Hardware-Efficient PCFGs with Independent Left and Right Productions23 Oct 2023
- 2023SynJax: Structured Probability Distributions for JAX7 Aug 2023
- 2023Multilingual Multiword Expression Identification Using Lateral Inhibition and Domain Adaptation17 Jun 2023
- 2023Improving Grammar-based Sequence-to-Sequence Modeling with Decomposition and Constraints5 Jun 2023
- 2023Modified Gauss-Newton Algorithms under Noise18 May 2023
- 2023Approximating CKY with Transformers3 May 2023
12 newest of 40 All 40 (JSON)