Predictive Querying for Autoregressive Neural Sequence Models
Not on the map. Why?
Abstract (arXiv)
In reasoning about sequential events it is natural to pose probabilistic queries such as "when will event A occur next" or "what is the probability of A occurring before B", with applications in areas such as user modeling, medicine, and finance. However, with machine learning shifting towards neural autoregressive models such as RNNs and transformers, probabilistic querying has been largely restricted to simple cases such as next-event prediction. This is in part due to the fact that future querying involves marginalization over large path spaces, which is not straightforward to do efficiently in such models. In this paper we introduce a general typology for predictive queries in neural autoregressive sequence models and show that such queries can be systematically represented by sets of elementary building blocks. We leverage this typology to develop new query estimation methods based on beam search, importance sampling, and hybrids. Across four large-scale sequence datasets from different application domains, as well as for the GPT-2 language model, we demonstrate the ability to make query answering tractable for arbitrary queries in exponentially-large predictive path-spaces, and find clear differences in cost-accuracy tradeoffs between search and sampling methods.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 18 of its 46 references that are in the map. First posted on arXiv 12 Oct 2022.
Builds on
18 of 46 references.
References · 18
- 2017Attention Is All You Needcited by 59,932
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
- 2019Predicting Dynamic Embedding Trajectory in Temporal Interaction Networkscited by 443
- 2019Stochastic Beams and Where to Find Them: The Gumbel-Top-k Trick for Sampling Sequences Without Replacementcited by 205
- 2021A Review of the Gumbel-max Trick and its Extensions for Discrete Stochasticity in Machine Learningcited by 82
- 2021Language Model Evaluation Beyond Perplexitycited by 77
- 2019Program Synthesis and Semantic Parsing with Learned Code Idiomscited by 34
- 2017Recurrent Neural Networks as Weighted Language Recognizerscited by 30
6 more
- 2020Incremental Sampling Without Replacement for Sequence Modelscited by 23
- 2018Recurrent Neural Network Attention Mechanisms for Interpretable System Log Anomaly Detectioncited by 21
- 2021Context-Aware Target Apps Selection and Recommendation for Enhancing Personal Mobile Assistantscited by 11
- 2021Conditional Poisson Stochastic Beam Searchcited by 11
- 2021Massive-scale Decoding for Text Generation using Latticescited by 8
- 2021What Do You Get When You Cross Beam Search with Nucleus Sampling?cited by 7
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 1; 2025: 1; 2026: 1.
5 papers.
- 2023Tractable Control for Autoregressive Language Generationcited by 65
- 2026Estimating Tail Risks in Language Model Output Distributionscited by 6
- 2022Probabilistic Querying of Continuous-Time Event Sequencescited by 5
- 2024On the Efficient Marginalization of Probabilistic Sequence Modelscited by 0
- 2025Learning Tractable Distributions Of Language Model Continuationscited by 0
- 2026Estimating Tail Risks in Language Model Output Distributions24 Apr 2026
- 2025Learning Tractable Distributions Of Language Model Continuations20 Nov 2025
- 2024On the Efficient Marginalization of Probabilistic Sequence Models6 Mar 2024
- 2023Tractable Control for Autoregressive Language Generation15 Apr 2023
- 2022Probabilistic Querying of Continuous-Time Event Sequences15 Nov 2022