A Set-Sequence Model for Time Series
Elliot L. Epstein, Apaar Sadhwani, Kay Giesecke
TL;DR
The paper introduces Set-Sequence, a scalable architecture for predicting time-series outcomes across large populations of exchangeable units. It combines a permutation-invariant Set module to learn a cross-sectional summary at each time step with a per-unit Sequence backbone that models temporal dynamics conditioned on this summary, enabling processing with a variable number of units and unaligned sequences. The approach achieves linear cross-sectional complexity, demonstrates strong performance on synthetic contagion tasks, equity portfolio construction, and mortgage risk prediction, and provides interpretable cross-sectional summaries that track latent factors. These results highlight the practical usefulness of exploiting exchangeability to jointly model large populations without handcrafted cross-sectional features, with broad implications for finance and other domains with many interacting time-series units.
Abstract
Many prediction problems across science and engineering, especially in finance and economics, involve large cross-sections of individual time series, where each unit (e.g., a loan, stock, or customer) is driven by unit-level features and latent cross-sectional dynamics. While sequence models have advanced per-unit temporal prediction, capturing cross-sectional effects often still relies on hand-crafted summary features. We propose Set-Sequence, a model that learns cross-sectional structure directly, enhancing expressivity and eliminating manual feature engineering. At each time step, a permutation-invariant Set module summarizes the unit set; a Sequence module then models each unit's dynamics conditioned on both its features and the learned summary. The architecture accommodates unaligned series, supports varying numbers of units at inference, integrates with standard sequence backbones (e.g., Transformers), and scales linearly in cross-sectional size. Across a synthetic contagion task and two large-scale real-world applications, equity portfolio optimization and loan risk prediction, Set-Sequence significantly outperforms strong baselines, delivering higher Sharpe ratios, improved AUCs, and interpretable cross-sectional summaries.
