arXiv:2611.00337cs.LGOct 2026

Manuscript Offprint

arXiv:2611.00337

Decomposing Irregular Time Series into Interpretable Temporal Patterns with Mixture-of-Experts

Jenna L. Ballard, Zijie Pan, Shivani Shekhar, Yiming Bian, Yun-Shiuan Chuang, Avinash Thangali, Uma Kona, Linsey Pang, Prakhar Mehrotra

ABSTRACT

Irregularly-spaced sequential data, such as transaction logs, encode multi-scale temporal structure that is critical for prediction but difficult to recover explicitly with standard sequence models, which often trade interpretability for performance. We introduce MoTIF, an interpretable framework using mixture-of-experts (MoE) attention to decompose irregular time series into temporal patterns spanning minute-to-year scales. Each expert is trained via temporal alignment that induces attention specialization to a designated cyclical or within-range pattern, with label-free routing supervision that learns to activate the correct expert from patterns present in the data. On synthetic data with known temporal structure, MoTIF recovers correct routing well above chance (0.389/0.829 for range/cyclical patterns vs. 0.091 random) and outperforms all baselines, including a standard transformer and an unspecialized MoE, on next-value prediction. On a public credit card transaction dataset, MoTIF achieves higher macro-F1 than all baselines for next-amount prediction. Its learned routing reveals structure a black-box model cannot: transactions are governed primarily by intraday and short-interval rhythms, while fraudulent transactions show bursty, calendar-agnostic timing versus the steadier periodicity of legitimate ones. On downstream fraud detection, MoTIF matches standard transformer and MoE baselines and clearly outperforms recent sequential recommendation models used as embedding baselines. These results show that decomposing temporal structure into interpretable, expert-specific patterns need not sacrifice predictive accuracy, offering a practical route to sequence models that are both accurate and auditable in high-stakes settings. Code is available at https://anonymous.4open.science/r/MoTIF-82E4.

1 INTRODUCTION

Forecasting and inference over temporal data underpins critical decision-making across domains such as healthcare, finance, and climate science (Emmert-Streib et al., 2026; Cao et al., 2026). Real-world observations, however, are frequently irregularly sampled, with non-uniform intervals and sparse measurements. While deep forecasting models such as transformers and RNNs excel under regular-grid assumptions, they struggle inherently with irregularity. Recent advances have substantially improved irregular time series modeling (Chen et al., 2023; Zhang et al., 2023; Park et al., 2024; Zhong et al., 2025; Benassi et al., 2025; Lee et al., 2026), yet these methods offer little insight into why a prediction was made, relying on opaque latent representations. In high-stakes settings, this opacity is a critical bottleneck: end-users cannot verify whether a forecast reflects stable trends, periodic shifts, or transient irregularities. Addressing it is paramount, as interpretability builds data-backed user trust (Yan & Wang, 2023), satisfies regulatory compliance standards (Arrieta et al., 2020), and helps domain experts extract actionable knowledge from complex temporal patterns (Bai et al., 2018).

Human behaviors, including spending, media use, and health rituals, are largely driven by biological and social rhythms following daily, weekly, and seasonal patterns (Kreitzman & Foster, 2011; Roenneberg et al., 2003; Southerton, 2020; Hohm et al., 2024), which encode underlying behavioral characteristics indicative of future actions (Beck & Jackson, 2022). Such patterns can reveal anomalous behaviors like fraud while providing transparent, verifiable predictions (Darwish et al., 2025; Hashemi et al., 2025).

Recent architectures modeling complex temporal patterns still fall short of granular interpretability and typically struggle with irregular data. Time-MoE (Shi et al., 2025) and Seg-MoE (Ortigossa & Segal, 2026) use mixture-of-experts routing over horizons or segments to capture multi-scale behavior, but do not isolate the specific temporal patterns detected. MoHETS (Ortigossa et al., 2026) uses Fourier experts to separate noise from trend but lacks structural interpretability, compressing long-term patterns into a general expert. Data-driven routing approaches like RoMA and STAR (Li et al., 2026b; Park & Park, 2026) align routing with sample similarity but do not reveal the temporal patterns underlying that alignment. AME-TS (Wang et al., 2026) incorporates seasonality and trend descriptors into a soft routing prior, but its supervision is sequence-level only, and evaluation focuses on forecasting error without auditing expert semantics. Critically, none of these architectures is designed for irregularly sampled data, as their reliance on regular grids or spectral transforms limits direct application to irregular gaps.

To address these limitations, we introduce MoTIF (Mixture of Temporal Interpretable Function-experts), an interpretable prediction framework for irregular time series that uses mixture-of-experts attention to explicitly decompose predictive contributions by temporal pattern. Our contributions are: (1) Specialized experts explicitly capture temporal patterns across minute-to-year scales by aligning attention with cyclical and range-based autoregressive trends. (2) A label-free routing-supervision scheme recovers expected routing on synthetic data with known pattern labels; on real transaction data, top-routed experts align with detected temporal structure, letting routing weights serve as a pattern signature without training labels. (3) The method improves next-value prediction on synthetic data and maintains multi-task next-token performance and downstream fraud-prediction generalizability on real data, adding interpretability without sacrificing accuracy. (4) Analysis of the temporal patterns driving next-token prediction reveals transaction-, sequence-, and dataset-level insights, including systematic fraud/non-fraud differences consistent with fraud's burstier, calendar-agnostic timing versus legitimate transactions' steadier periodicity.

References (50)