mlsanityData to 14 Oct 2026

HT-Transformer: Event Sequences Classification by Accumulating Prefix Information with History Tokens

arXiv 2508.01474 ↗First posted 2 Aug 2025cs.LGcited by 3

Not on the map. Why?

Abstract (arXiv)

Deep learning has achieved remarkable success in modeling sequential data, including event sequences, temporal point processes, and irregular time series. Recently, transformers have largely replaced recurrent networks in these tasks. However, transformers often underperform RNNs in classification tasks where the objective is to predict future targets. The reason behind this performance gap remains largely unexplored. In this paper, we identify a key limitation of transformers: the absence of a single state vector that provides a compact and effective representation of the entire sequence. Additionally, we show that contrastive pretraining of embedding vectors fails to capture local context, which is crucial for accurate prediction. To address these challenges, we introduce history tokens, a novel concept that facilitates the accumulation of historical information during next-token prediction pretraining. Our approach significantly improves transformer-based models, achieving impressive results in finance, e-commerce, and healthcare tasks. The code is publicly available on GitHub.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 23 of its 35 references that are in the map. First posted on arXiv 2 Aug 2025.

Builds on

23 of 35 references.

References · 23

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  6. 2020Longformer: The Long-Document Transformercited by 3,413
  7. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  8. 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,304
  9. 2021Revisiting Deep Learning Models for Tabular Datacited by 740
  10. 2022MTEB: Massive Text Embedding Benchmarkcited by 640
  11. 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 404
  12. 2020Transformer Hawkes Processcited by 235
11 more
  1. 2022Recurrent Memory Transformercited by 203
  2. 2019Intensity-Free Learning of Temporal Point Processescited by 140
  3. 2021Can contrastive learning avoid shortcut solutions?cited by 114
  4. 2021Transformer Embeddings of Irregularly Spaced Events and Their Participantscited by 93
  5. 2020Tabular Transformers for Modeling Multivariate Time Seriescited by 77
  6. 2023Generative Pre-trained Transformer: A Comprehensive Review on Enabling Technologies, Potential Applications, Emerging Challenges, and Future Directionscited by 55
  7. 2023Event Stream GPT: A Data Pre-processing and Modeling Library for Generative, Pre-trained Transformers over Continuous-time Sequences of Complex Eventscited by 46
  8. 2025GEM: Empowering LLM for both Embedding Generation and Language Understandingcited by 8
  9. 2024Extracting Sentence Embeddings from Pretrained Transformer Modelscited by 7
  10. 2024EBES: Easy Benchmarking for Event Sequencescited by 7
  11. 2024Detecting the Future: All-at-Once Event Sequence Forecasting with Horizon Matchingcited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.