IJCAI 20260 citations

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

Ivan Karpukhin, Maksim Polesskii, Andrey Savchenko

Abstract

Deep learning has achieved strong results 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 recurrent networks in classification tasks that aim to predict future targets, such as churn, user reactions, or treatment response. The reason behind this performance gap remains largely underexplored. In this paper, we identify a key limitation of transformers: the lack of a single vector representation that compactly summarizes the evolving state of a sequence. We further show that commonly used contrastive embeddings are poorly suited to capturing the local context needed for accurate forward-looking prediction. To address these challenges, we introduce history tokens, a novel concept that enables 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: https://github.com/ivan-chai/pretpp.

Advanced AI4Tech: Deep AI4TechDomain-specific AI4Tech: AI4Care and AI4HealthDomain-specific AI4Tech: AI4Customer and AI4MarketDomain-specific AI4Tech: AI4Finance
BibTeX
@inproceedings{ijcai2026_httransformereve,
  title = {HT-Transformer: Event Sequences Classification by Accumulating Prefix Information with History Tokens},
  author = {Ivan Karpukhin and Maksim Polesskii and Andrey Savchenko},
  booktitle = {IJCAI 2026},
  year = {2026}
}
HT-Transformer: Event Sequences Classification by Accumulating Prefix Information with History Tokens · IJCAI 2026