NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RLTime: Reinforcement Learning-Based Feature Attribution for Interpretable Time Series Models

Fuyuan Lyu, Wesley Chung, Melissa Mozifian, Ankit Vani, Edward J. SmithOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

RLTime treats feature attribution in time series as a game of sequential discovery, using a Reinforcement Learning (RL) agent to "unmask" the most informative data points. By operating directly in a discrete action space and rewarding the agent for recovering a model's internal representations, RLTime avoids the "soft-to-hard" gap of traditional methods and excels at capturing complex, synergistic feature interactions.

What Problem Does This Paper Address?

Deep learning models for time series are powerful but notoriously opaque. In high-stakes fields like healthcare and finance, we need to know why a model made a specific prediction. The standard way to do this is through "feature attribution"—creating a map that highlights which parts of the input data were most important.

Current state-of-the-art methods often use "soft masks" (continuous relaxations like Gumbel-Softmax) to make the selection process differentiable. However, the authors identify two major flaws in this approach:

  1. Myopic Exploration: These models often get stuck in local minima, picking "easy" features that give immediate results while missing synergistic features that only become valuable when combined.
  2. The Soft-to-Hard Gap: There is a fundamental misalignment between training on "soft" fractional weights and evaluating on "hard" discrete subsets. This leads to "fractional leakage," where the model relies on a dispersed signal during training that vanishes during actual inference.

Methods

RLTime reframes attribution as a sequential information acquisition problem. Instead of trying to learn a static mask all at once, it trains an agent to reveal features one by one.

The framework consists of two main stages:

  • Masked Reconstruction: The authors first pretrain a network to reconstruct the latent representation (the internal "thought process") of the reference model from partially masked inputs. They use a combination of three losses: input reconstruction (keeping it realistic), latent faithfulness (matching the reference model's internal state), and prediction consistency (ensuring the final output remains the same).
  • Distributional Reinforcement Learning: They use the C51 algorithm to train an RL agent. The "reward" for the agent is the local latent shift—the squared change in the reconstructed latent state after a new feature is revealed. If revealing a feature significantly changes the reconstructed internal state to be closer to the "true" state, that feature is deemed highly valuable.

By using C51, the model learns a full distribution of potential rewards rather than just a single average value, allowing it to better handle the uncertainty and non-linear dependencies inherent in time-series data.

Datasets

The authors evaluated RLTime on a mix of synthetic and real-world benchmarks:

  • Synthetic: FreqShapes (univariate), SeqComb-UV (univariate), and SeqComb-MV (multivariate). These are crucial because the "ground truth" important features are known, allowing for precise measurement of attribution quality.
  • Real-World: Four diverse tasks including ECG (arrhythmia detection), PAM (human activity recognition), Epilepsy (seizure detection), and Boiler (mechanical fault detection).

Key Insights and Ideas

  • Latent Space is Key: Rather than just looking at how the final prediction changes (which can be "flat" and uninformative), RLTime looks at how the internal representation changes. This provides a much richer signal for what the model actually finds important.
  • Path-Awareness: Because the RL agent selects features sequentially, it can learn that Feature B is only important if Feature A has already been revealed. This "path-awareness" allows it to capture synergies that myopic, one-shot masking methods miss.
  • Closing the Gap: By training and testing in the same discrete action space (reveal/don't reveal), RLTime completely eliminates the "soft-to-hard" gap that plagues gradient-based masking methods.
  • Distributional Value Functions: Using C51 instead of a standard DQN allows the agent to account for the variability and "explanatory power" of features across different samples, leading to more robust and reliable rankings.

Key Results

  • Superior Accuracy: On synthetic datasets, RLTime achieved a 63.52% average increase in Area Under Recall (AUR) compared to the strongest baselines. It essentially "solved" the FreqShapes dataset, hitting a perfect 1.0 AUPRC.
  • Faithfulness: In real-world occlusion experiments (where you hide the "least important" features and see if the model stays accurate), RLTime consistently outperformed or matched baselines, showing it truly identifies the most critical data points.
  • Inference Speed: While training takes time, inference is highly efficient. Once the RL agent is trained, it can rank features with a single evaluation per step, making it orders of magnitude faster than "Naive Search" methods that require a full forward pass for every candidate feature.

Limitations and Future Work

  • Complexity: The pipeline is multi-stage (pretraining a reconstructor, then training an RL agent), which is more computationally intensive and complex to implement than simple gradient-based attribution.
  • Reconstructor Quality: The quality of the explanation is bottlenecked by how well the masked reconstruction network can mimic the reference model's latent space. If the reconstructor fails, the RL agent receives a noisy reward signal.
  • Future Directions: The authors suggest that further investigation into the "Naive Search" baseline could yield even more efficient masked reconstruction models, potentially simplifying the framework without losing the benefits of discrete search.

Summary updated

BibTeX
@misc{lyu2026rltime,
  author = {Fuyuan Lyu and Wesley Chung and Melissa Mozifian and Ankit Vani and Edward J. Smith},
  title = {{RLTime: Reinforcement Learning-Based Feature Attribution for Interpretable Time Series Models}},
  year = {2026},
  url = {https://openreview.net/forum?id=cg4BxldVRg},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}

Loading related content...

Figure