Feature-aware Modulation for Learning from Temporal Tabular Data

Haorun Cai, Han-Jia Ye

In the world of machine learning, tabular data is the bread and butter of industry—powering everything from credit scoring to healthcare diagnostics. But there’s a catch: in the real world, time doesn't stand still. What was considered a "high salary" in 2010 is just average in 2024 due to inflation. This "concept drift" makes static models obsolete and leaves adaptive models prone to overfitting.

A new paper proposes a clever solution: Feature-aware Temporal Modulation. Instead of just feeding "time" into a model as a raw feature, the authors teach the model to dynamically "recalibrate" its understanding of every feature based on the temporal context.

Static vs. Adaptive Models over Shifting Data

The Challenge of Temporal Distribution Shifts

Most tabular ML models assume data is independent and identically distributed (i.i.d.). In reality, temporal tabular data suffers from continuous distribution shifts. The authors categorize feature meanings into two distinct types to explain why these shifts derail standard models:

  1. Objective Semantics: Fixed numerical values that represent absolute measurements (e.g., a specific GPS coordinate).
  2. Subjective Semantics: Meanings that are relative to the current environment or time period (e.g., whether that specific coordinate is considered a "prime location" today versus forty years ago).

Static models (like standard XGBoost or MLPs) fail because they assume a fixed mapping between features and labels. Conversely, adaptive models often try to solve this by concatenating a "time embedding" to the input, but this approach is usually too coarse to capture how individual features evolve independently. The core challenge is creating a model stable enough to generalize from the past, yet flexible enough to adapt to the present.

Aligning Subjective and Objective Feature Semantics

Feature-Aware Temporal Modulation

To bridge this gap, the authors introduce a lightweight modulation mechanism that aligns feature semantics across time. The framework operates through four key steps:

  1. Temporal Embedding: The model uses Fourier features to encode a timestamp $t$ into a high-dimensional vector $\psi(t)$. This captures both short-term fluctuations and long-term trends in the data.
  2. The Modulator: A lightweight sub-network takes this temporal embedding and predicts three distinct parameters for every feature: scale ($\gamma$), bias ($\beta$), and a nonlinear transformation coefficient ($\lambda$).
  3. Yeo-Johnson Transformation: Unlike standard linear modulation (such as FiLM) which only shifts and scales, this method employs the Yeo-Johnson transformation. This crucial addition allows the model to "reshape" the distribution of a feature, fixing skewness or heavy tails that warp over time (e.g., a widening wealth gap).
  4. Semantic Alignment: The transformed feature $\tilde{x}_i$ is calculated as: $$\tilde{x}_i = \gamma_i(t) \cdot YJ(x_i; \lambda_i(t)) + \beta_i(t)$$ This effectively normalizes the subjective meaning of a feature across different time periods into a unified, stable conceptual space.

Key Insights and Performance

The researchers evaluated their method on the TabReD benchmark, a large-scale suite designed to test tabular learning "in-the-wild" with real-world temporal shifts, alongside synthetic datasets to visualize decision boundaries.

Crucial Findings: * Distributional Proxies for Context: The authors discovered that mean, standard deviation, and skewness act as excellent proxies for "temporal context." Adjusting these three parameters mitigates the vast majority of concept drift. * Input-Level Modulation Wins: Through ablation studies, they found that aligning features before they enter the deep layers of the network is far more efficient than trying to fix misaligned internal representations later in the model. * State-of-the-Art Results: A TabM model equipped with this modulation achieved the highest average rank (3.50) across all tested datasets, outperforming classical GBDTs (XGBoost, CatBoost) and state-of-the-art deep tabular models. * Boosting Simple Architectures: Even a basic MLP saw a 2.09% performance boost when equipped with this modulation, allowing it to beat much more complex architectures that lacked temporal awareness. Furthermore, the modulation helps models ignore temporal noise, leading to more stable decision boundaries.

Limitations and Future Directions

While powerful, the approach has limitations. The current method struggles when combined with Periodic Lattice Regression (PLR) embeddings, which transform features into high-frequency sine/cosine waves, destroying the interpretable distribution shape that the Yeo-Johnson transformation relies upon. Additionally, while highly effective on MLPs and TabM, further research is needed to understand its interaction with attention-based architectures like FT-Transformer. Future work will likely explore more complex feature-wise transformations to handle even more radical distribution shifts.

Summary updated

BibTeX
@inproceedings{cai2025feature,
  author = {Haorun 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