ReDiTT: Retrieval Augmented Conditional Diffusion Transformers for Asynchronous Time Series

Saiyue Lyu, Ruizhi Deng, Thibaut Durand, Zhitian Zhang

TL;DR

Predicting future events in asynchronous time series (like user clicks or sensor readings) is tricky due to irregular timing and complex patterns. This paper introduces ReDiTT, a novel diffusion model that uses a "memory bank" of similar past event sequences to guide its predictions. ReDiTT achieves state-of-the-art results in predicting both the next event and long sequences of future events.

What Problem Does This Paper Address?

Asynchronous time series, where events happen at unpredictable intervals, are common in many real-world applications (e.g., healthcare monitoring, user behavior analysis). Accurately predicting future events in these sequences is challenging because the data is sparse, irregular, and exhibits complex temporal dependencies. Traditional methods often struggle with long-term forecasting, leading to accumulated errors and generic predictions. Existing diffusion models, while powerful for generative tasks, haven't been fully explored for this specific type of data, especially when global structural guidance is needed.

Methods

The core innovation of ReDiTT is its retrieval-augmented conditional diffusion transformer. Here's a breakdown:

  • Latent Space Representation: First, an event sequence is encoded into a compact latent representation using a Variational Autoencoder (VAE). This allows the model to work with a more structured and less noisy representation of the temporal dynamics.
  • Memory Bank: A "memory bank" is created from these latent representations of training sequences.
  • Retrieval: During both training and inference, ReDiTT retrieves the top-k most similar latent sequences from this memory bank based on a masked cosine similarity. These retrieved sequences act as "references."
  • Conditional Diffusion Transformer (DiT): A Diffusion Transformer architecture is used for generation. The key novelty is how the retrieved references are incorporated:
  • Cross-Attention: The references are injected into the DiT blocks via cross-attention mechanisms. This allows the model to selectively attend to relevant temporal patterns from the retrieved sequences, providing strong, trajectory-specific guidance.
  • Average Pooling: The retrieved references are aggregated using average pooling, which the authors found to be more effective than concatenation for capturing consistent signals and avoiding overfitting to noisy references.
  • Flow Matching: The model is trained using a conditional flow matching objective, which is a diffusion-style approach for training continuous-time generative models.

Datasets

ReDiTT was evaluated on seven real-world datasets:

  • Temporal Point Process (TPP) Datasets:
    • Amazon
    • Retweet
    • StackOverflow
    • Taobao
    • Taxi
  • Action Datasets:
    • Breakfast
    • MultiThumos

These datasets represent a variety of domains, including user interactions, social media, and human activity recognition, with varying numbers of event types and sequence lengths.

Key Insights and Ideas

  • Retrieval as a "Memory" for Time Series: The paper demonstrates that leveraging a memory bank of similar past sequences significantly improves asynchronous time series forecasting. This acts like giving the model specific examples to learn from, rather than relying solely on learned parameters.
  • Cross-Attention is Key for Asynchronous Data: Unlike image generation where global conditioning might suffice, the authors found that cross-attention is crucial for asynchronous time series. It allows the model to dynamically focus on relevant parts of the retrieved references, which is essential for handling the irregular and event-dependent nature of the data.
  • Latent Space Matters: Performing retrieval and conditioning in a learned latent space, rather than the raw observation space, makes the process more robust to noise, sparsity, and variable sequence lengths.
  • Long-Horizon Forecasting Benefits Greatly: The retrieval mechanism provides strong global structural guidance, which is particularly effective in stabilizing long-horizon forecasts and preventing drift.

Key Results

ReDiTT achieved state-of-the-art performance across seven benchmark datasets for both next-event prediction and long-horizon forecasting.

  • Next-Event Prediction: ReDiTT consistently achieved the lowest RMSE (for time prediction) and highest accuracy (for event type prediction), outperforming strong baselines like ADiff4TPP by a significant margin (e.g., 22% reduction in average RMSE and 12-point increase in average type accuracy).
  • Long-Horizon Prediction: ReDiTT consistently achieved lower Optimal Transport Distance (OTD) on six datasets, indicating improved sequence-level coherence and better prediction of future event trajectories over extended periods.
  • Ablation Studies:
    • Cross-attention conditioning outperformed adaptive layer normalization (adaLN) for long-horizon forecasting.
  • Average pooling of retrieved references was more effective than concatenation.
  • Increasing the number of retrieved references (k) generally improved performance, especially for event-type accuracy, when using average pooling.

Limitations and Future Work

  • Computational Overhead: ReDiTT introduces additional system overhead due to the need for a reference bank and retrieval at inference time, which increases memory usage and latency.
  • Small Datasets: Gains might be limited on very small datasets or short sequences where long-range behaviors are less prominent.
  • Future Directions:
    • Learning better retrieval representations aligned with forecasting objectives.
  • Making conditioning more robust (e.g., reference weighting, retrieval dropout).
  • Improving efficiency through compressed or hierarchical reference banks and caching.
  • Incorporating richer context like covariates or text.
  • Exploring objectives that more directly target long-horizon metrics.

Summary updated

BibTeX
@article{lyu2026reditt,
  author = {Saiyue Lyu and Ruizhi Deng and Thibaut Durand and Zhitian Zhang},
  title = {{ReDiTT: Retrieval Augmented Conditional Diffusion Transformers for Asynchronous Time Series}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure