Feature-aware Modulation for Learning from Temporal Tabular Data

Hao-Run Cai, Han-Jia Ye · DOI

TL;DR

This paper introduces a "feature-aware temporal modulation" mechanism to help machine learning models adapt to changing data distributions over time, a common problem in real-world tabular datasets. By dynamically adjusting feature representations based on their temporal statistics (mean, scale, skewness), the method effectively aligns feature semantics across time, leading to improved generalization and adaptability without significant computational overhead.

What Problem Does This Paper Address?

Tabular data is ubiquitous in critical decision-making across finance, healthcare, and e-commerce. However, real-world tabular datasets often suffer from "temporal distribution shifts," where the relationships between features and labels evolve over time. Traditional "static" models assume a fixed mapping and struggle to adapt to these changes, while "adaptive" models might overfit to short-term patterns. This creates a dilemma: static models are robust but inflexible, while adaptive models are flexible but potentially unstable. The core challenge is to build models that can generalize well to unseen data and adapt to evolving temporal dynamics, a problem exacerbated by the evolving "semantics" of features – how their meaning changes based on context, even if their raw values remain the same.

Methods

The authors propose a feature-aware temporal modulation mechanism. The key idea is to condition feature representations on temporal context. This is achieved by using a lightweight "modulator" network that takes a temporal embedding of the timestamp as input. This modulator then outputs parameters (gamma, beta, lambda) that are used to transform each feature. Specifically, these parameters control:

  • Scale (gamma): Adjusts the standard deviation of the feature.
  • Bias (beta): Shifts the mean of the feature.
  • Nonlinear transformation coefficient (lambda): Controls the shape of the feature distribution using the Yeo-Johnson transformation.

This modulation is applied feature-wise and time-dependently, meaning the same raw feature can be interpreted differently based on when it was observed. This allows the model to align the "semantics" of features across different time periods, effectively creating a more stable and consistent representation space for the downstream model. The modulation can be applied at different stages of a neural network (input, intermediate, or output layers), offering flexibility.

Datasets

The primary dataset used for evaluation is TabReD, a benchmark for tabular data with temporal shifts, introduced by Rubachev et al. [41]. The authors also mention using the refined training protocol and data preprocessing procedures from Cai & Ye [6].

Key Insights and Ideas

  • Evolving Feature Semantics: The paper highlights that temporal shifts aren't just about changes in raw feature distributions (covariate shift) or label distributions, but crucially about the meaning of features changing over time. This "semantic drift" is a key driver of model performance degradation.
  • Distributional Statistics as Semantic Proxies: The authors found that the mean, standard deviation, and skewness of feature distributions are strong indicators of temporal shifts and can be used to align feature semantics.
  • Lightweight Modulation is Effective: The proposed feature-aware temporal modulation is a "lightweight" approach that doesn't require retraining the entire model or complex hyperparameter tuning. It achieves significant improvements by simply adding a modulation layer.
  • Input-Level Modulation is Crucial: Ablation studies show that applying modulation at the raw input layer is particularly effective, suggesting that aligning semantics early in the network is key for downstream performance.

Key Results

  • The proposed feature-aware temporal modulation consistently outperforms static baselines and prior temporal embedding methods on the TabReD benchmark.
  • For example, on the TabM model, the proposed method achieved the highest average rank (3.50).
  • The MLP model, when equipped with full temporal modulation, achieved a 2.09% performance improvement, significantly outperforming other deep learning methods.
  • The method demonstrates robustness across different training protocols and data splitting strategies.
  • The modulation mechanism also promotes temporal coherence, enabling the model to generalize to unseen temporal periods.

Limitations and Future Work

  • Incompatibility with PLR Embedding: The paper notes a limitation with models using PLR (Piecewise Linear Representation) embedding, where full-stage modulation can be incompatible. However, they found that even single-step modulation at the raw feature level still yields benefits.
  • Future Work: The authors encourage further investigation into responsible deployment practices for temporal tabular data and how to further improve temporal adaptation techniques. They also suggest exploring the integration of their modulation mechanism into existing models without requiring internal structural changes.

Summary updated

BibTeX
@inproceedings{cai2025feature,
  author = {Hao-Run Cai and Han-Jia Ye},
  title = {{Feature-aware Modulation for Learning from Temporal Tabular Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=88MXvVn5dl},
}
Figure