Event Stream GPT: A Data Pre-processing and Modeling Library for Generative, Pre-trained Transformers over Continuous-time Sequences of Complex Events

Matthew B. A. McDermott, Bret Nestor, Peniel Argaw, Isaac Kohane
6/20/2023
67 citations
cs.LG
transformer-attention

Official code: mmcdermott/EventStreamGPT (118 stars, Jupyter Notebook, MIT, last commit 2025-07-02).

Abstract

Generative, pre-trained transformers (GPTs, a.k.a. "Foundation Models") have reshaped natural language processing (NLP) through their versatility in diverse downstream tasks. However, their potential extends far beyond NLP.

Show full abstract

This paper provides a software utility to help realize this potential, extending the applicability of GPTs to continuous-time sequences of complex events with internal dependencies, such as medical record datasets. Despite their potential, the adoption of foundation models in these domains has been hampered by the lack of suitable tools for model construction and evaluation. To bridge this gap, we introduce Event Stream GPT (ESGPT), an open-source library designed to streamline the end-to-end process for building GPTs for continuous-time event sequences. ESGPT allows users to (1) build flexible, foundation-model scale input datasets by specifying only a minimal configuration file, (2) leverage a Hugging Face compatible modeling API for GPTs over this modality that incorporates intra-event causal dependency structures and autoregressive generation capabilities, and (3) evaluate models via standardized processes that can assess few and even zero-shot performance of pre-trained models on user-specified fine-tuning tasks.

View on arXivView PDF

Code Implementations(1)

MIT

Dataset and modelling infrastructure for modelling "event streams": sequences of continuous time, multivariate events with complex internal dependencies.

11822Jupyter Notebook, PythonFeb 27, 20231 years agoMIT

Similar Papers

Cite this paper

@article{mcdermott2023event,
  title  = {Event Stream GPT: A Data Pre-processing and Modeling Library for Generative, Pre-trained Transformers over Continuous-time Sequences of Complex Events},
  author = {Matthew B. A. McDermott and Bret Nestor and Peniel Argaw and Isaac Kohane},
  year   = {2023},
  eprint = {2306.11547},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.11547v2},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.11547.svg)](https://codeofpaper.com/paper/2306.11547)

Discussion