Abstain Mask Retain Core: Time Series Prediction by Adaptive Masking Loss with Representation Consistency

Renzhao Liang, Sizhe Xu, Chenggang Xie, Jingru Chen, Feiyang Ren, Shu Yang, Takahiro Yabe

Abstract

In time series forecasting, the prevailing "long-sequence information gain hypothesis" suggests that increasing historical context consistently improves predictive performance. This paper challenges that assumption by identifying a "Representation Similarity Paradox," where deep learning models inadvertently memorize redundant features and noise from distant historical data, leading to suboptimal embeddings. We propose AMRC (Adaptive Masking Loss with Representation Consistency), a plug-and-play optimization framework designed to filter out historical noise while maintaining representation integrity. AMRC utilizes an Adaptive Masking Loss (AML) to identify optimal sequence lengths and an Embedding Similarity Penalty (ESP) to align the geometry of the embedding space with future labels. Experimental results across seven benchmarks demonstrate that AMRC significantly reduces prediction error across various architectures—including Transformers and MLPs—without adding inference overhead.

Introduction

Modern time series forecasting relies heavily on deep learning models like Transformers, MLPs, and RNNs to capture complex temporal dependencies. A common strategy to improve these models is to extend the input sequence length, under the assumption that more historical data provides more context. However, this paper identifies a counterintuitive phenomenon: appropriately truncating or masking the early segments of a historical sequence can actually lead to superior prediction accuracy.

The authors argue that models are often too effective at feature extraction, leading them to memorize "redundant features"—stochastic noise or irrelevant fluctuations from the distant past. This results in a Representation Similarity Paradox, where internal model embeddings cluster too tightly, failing to capture the diversity of the input and distorting the mapping to future outcomes. To address this, we introduce the AMRC framework.

The AMRC Framework

AMRC is an optimization framework that can be integrated into existing time series models as an auxiliary loss. It consists of two primary components: Adaptive Masking Loss and Embedding Similarity Penalty.

1. Adaptive Masking Loss (AML)

AML addresses the redundancy trap by dynamically determining which parts of the input sequence are beneficial for prediction. Instead of using a fixed look-back window, the model samples various "prefix masks" that zero out the beginning of the sequence. The framework identifies the specific mask that yields the lowest prediction error and encourages the model's full-sequence representation to align with this "optimal" masked representation. By doing so, the model learns to ignore noisy segments of the past that would otherwise degrade the forecast.

2. Embedding Similarity Penalty (ESP)

To combat representation collapse, ESP enforces a geometric constraint on the model's internal state. Grounded in the idea that the geometry of the embedding space should reflect the geometry of the label space, ESP ensures that:

  • Samples with similar future outcomes have similar internal embeddings.
  • Samples with distinct future outcomes maintain distinct embeddings.

This alignment makes the model more robust to minor input fluctuations that do not materially impact the predicted outcome, effectively implementing a practical version of Information Bottleneck (IB) theory.

Experimental Evaluation

The researchers evaluated AMRC across seven multivariate time series benchmarks, including electricity (ETT, Electricity), energy (Solar-Energy), and meteorology (Weather). The framework was tested against several state-of-the-art backbones, such as iTransformer, SOFTS, PatchTST, and TSMixer.

Key Results

  • Significant Error Reduction: AMRC provided consistent gains across all datasets. Notably, on the Weather dataset, using AMRC with an iTransformer backbone reduced the Mean Squared Error (MSE) by 18.7% (from 0.209 to 0.170).
  • Architecture Agnostic: The framework proved effective regardless of the underlying architecture, showing that the problem of redundant feature learning is a general challenge in deep time series modeling rather than a specific flaw of Transformers.
  • Efficiency: Since AMRC is an optimization strategy used only during training, it introduces zero computational overhead during inference. This allows for more accurate predictions without sacrificing real-time performance.
  • Representation Quality: Qualitative analysis using t-SNE visualizations confirmed that AMRC-trained models produce embeddings that are better distributed and more reflective of the actual target labels compared to standard training methods.

Discussion and Insights

The success of AMRC highlights a critical shift in how we should approach historical data in time series. The "Redundancy Trap" suggests that for over 50% of training samples, masking part of the input improves performance, proving that information gain from long sequences is frequently offset by noise interference. By framing the problem through Information Bottleneck theory, AMRC acts as a mechanism to compress the input $X$ while retaining maximum information about the target $Y$.

Limitations and Future Work

While AMRC offers a robust solution to historical noise, it currently relies on a prefix-masking assumption, which assumes noise is concentrated at the beginning of a sequence. Future iterations could explore more complex masking strategies to identify noise scattered throughout or at the end of a sequence. Additionally, while inference is unaffected, the training phase requires evaluating multiple mask candidates, which increases initial computational costs. Finally, making the adaptive masking process more interpretable remains a goal for future research to help domain experts understand which specific historical events the model chooses to "abstain" from.

Conclusion

AMRC demonstrates that in the context of time series forecasting, "less is more." By identifying and ignoring redundant historical data while enforcing representation consistency, AMRC provides a powerful, architecture-agnostic tool for improving the accuracy and robustness of deep learning models in complex temporal domains.

Summary updated

BibTeX
@inproceedings{liang2025abstain,
  author = {Renzhao Liang and Sizhe Xu and Chenggang Xie and Jingru Chen and Feiyang Ren and Shu Yang and Takahiro Yabe},
  title = {{Abstain Mask Retain Core: Time Series Prediction by Adaptive Masking Loss with Representation Consistency}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=KrglRiOKYT},
}
Figure