NEST: Nested Event Stream Transformer for Sequences of Multisets
Not on the map. Why?
Abstract (arXiv)
Event stream data often exhibit hierarchical structure in which multiple events co-occur, resulting in a sequence of multisets (i.e., bags of events). In electronic health records (EHRs), for example, medical events are grouped into a sequence of clinical encounters with well-defined temporal structure, but the order and timing of events within each encounter may be unknown or unreliable. Most existing foundation models (FMs) for event stream data flatten this hierarchy into a one-dimensional sequence, leading to (i) computational inefficiency associated with dense attention and learning spurious within-set relationships, and (ii) lower-quality set-level representations from heuristic post-training pooling for downstream tasks. Here, we show that preserving the original hierarchy in the FM architecture provides a useful inductive bias that improves both computational efficiency and representation quality. We then introduce Nested Event Stream Transformer (NEST), a FM for event streams comprised of sequences of multisets. Building on this architecture, we formulate Masked Set Modeling (MSM), an efficient paradigm that promotes improved set-level representation learning. Experiments on real-world multiset sequence data show that NEST captures real-world dynamics while improving both pretraining efficiency and downstream performance.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 41 of its 51 references that are in the map. First posted on arXiv 31 Jan 2026.
Builds on
41 of 51 references.
References · 41
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2020GLU Variants Improve Transformercited by 1,724
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Rethinking Attention with Performerscited by 1,584
- 2018Self-Attentive Sequential Recommendationcited by 1,169
- 2021Perceiver: General Perception with Iterative Attentioncited by 1,089
- 2019BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformercited by 952
29 more
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2020Object-Centric Learning with Slot Attentioncited by 865
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 527
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2020Med-BERT: pre-trained contextualized embeddings on large-scale structured electronic health records for disease predictioncited by 368
- 2016Using the Output Embedding to Improve Language Modelscited by 266
- 2019BEHRT: Transformer for Electronic Health Recordscited by 258
- 2019Neural Legal Judgment Prediction in Englishcited by 208
- 2019Time2Vec: Learning a Vector Representation of Timecited by 208
- 2021Self-attention Does Not Need O(n2) Memorycited by 152
- 2022DiffCSE: Difference-based Contrastive Learning for Sentence Embeddingscited by 131
- 2023EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Modelscited by 101
- 2024Large Concept Models: Language Modeling in a Sentence Representation Spacecited by 86
- 2021CEHR-BERT: Incorporating temporal information from structured EHR data to improve prediction taskscited by 75
- 2023MOTOR: A Time-To-Event Foundation Model For Structured Medical Recordscited by 75
- 2024Zero Shot Health Trajectory Prediction Using Transformercited by 74
- 2019Deep Set Prediction Networkscited by 71
- 2021Hi-BEHRT: Hierarchical Transformer-based model for accurate prediction of clinical events using multimodal longitudinal electronic health recordscited by 53
- 2023Soft Contrastive Learning for Time Seriescited by 49
- 2023Event Stream GPT: A Data Pre-processing and Modeling Library for Generative, Pre-trained Transformers over Continuous-time Sequences of Complex Eventscited by 46
- 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classificationcited by 38
- 2020Modeling Personalized Item Frequency Information for Next-basket Recommendationcited by 24
- 2024CORE-BEHRT: A Carefully Optimized and Rigorously Evaluated BEHRTcited by 20
- 2023BERT4ETH: A Pre-trained Transformer for Ethereum Fraud Detectioncited by 19
- 2021A Next Basket Recommendation Reality Checkcited by 15
- 2023Event-Based Contrastive Learning for Medical Time Seriescited by 13
- 2023Masked and Swapped Sequence Modeling for Next Novel Basket Recommendation in Grocery Shoppingcited by 7
- 2017Loss Functions for Multiset Predictioncited by 6
- 2024HDT: Hierarchical Document Transformercited by 6
Built on by
Not cited yet.