TL;DR
Researchers have developed Adaptively Scaled Adversarial Training (ASAT), a new approach that tailors adversarial training specifically for time series data. By recognizing that not all time steps are equally important, ASAT rescales perturbations to improve both the robustness and the generalization of financial forecasting models, outperforming traditional methods that treat all data points symmetrically.
What Problem Does This Paper Address?
Adversarial training (AT) is a popular technique used to make neural networks more robust. By training a model on "adversarial examples"—input data slightly tweaked with malicious noise designed to fool the network—the model learns to ignore such noise and focus on meaningful patterns.
However, most AT research has focused on Computer Vision (CV) and Natural Language Processing (NLP). In those fields, it is often reasonable to assume symmetry: every pixel in an image or every dimension of a word embedding is roughly as important as the next.
Time series data is different. In fields like finance, the "importance" of a data point is often tied to its position in time. A stock price from five minutes ago is usually more relevant for a short-term prediction than a price from three weeks ago. Traditional AT uses a uniform "noise budget" (an $L_p$-norm constraint) that treats all time steps equally. The authors argue this is suboptimal for time series, leading to models that might overfit to "false clues" or fail to capture critical temporal dynamics.
Methods
The core innovation is the Adaptively Scaled Adversarial Training (ASAT) algorithm. Instead of using a standard spherical or cubic constraint for noise, ASAT uses a rescaled constraint that effectively creates an "ellipsoid" of allowed perturbations.
Key Components:
- Rescaled Constraints: The authors modify the perturbation budget $\delta$ using a scale vector $\alpha$. Instead of $\|\delta\|_p \leq \epsilon$, they use $\|\alpha^{-1} \odot \delta\|_p \leq \epsilon$. This allows for larger perturbations on important dimensions and smaller ones on less relevant ones.
- Adaptive Scaling ($\alpha$): The authors propose a specific way to calculate these scales based on two factors:
- Data Magnitude ($|x_i|$): Larger values get larger noise budgets.
- Gradient Magnitude ($|g_i|$): Dimensions with high sensitivity (large gradients) are given smaller relative scales to prevent the model from over-focusing on them, which helps alleviate overfitting.
- The resulting formula is $\alpha_i \propto \frac{|x_i|}{|g_i|}$.
- Multi-step Risk Averaging: Rather than just training on the final, most difficult adversarial example, ASAT minimizes the average loss across all steps of the adversarial generation process (Projected Gradient Descent). This "averaging" approach helps stabilize training and further boosts generalization.
Datasets
The authors evaluated their method on two financial datasets derived from the Topix500 (an index of the 500 most liquid stocks on the Tokyo Stock Exchange):
- Hourly inter-day volume prediction: Predicting trading volume based on the previous 12 hours and the same time slots from the previous 20 trading days.
- Five-minute intra-day volume prediction: A higher-frequency version of the same task.
The models were trained on data from 2017 and tested on data from early 2018 to ensure the models could handle temporal shifts in market behavior.
Key Insights and Ideas
- Breaking Symmetry: The most significant "aha" moment is the realization that the $L_p$-norm constraint—a staple of adversarial training—is a poor fit for the inherent asymmetry of time.
- Generalization via Robustness: The paper provides a theoretical proof showing that ASAT provides a tighter bound on generalization error when the training and testing data distributions shift (a common occurrence in volatile financial markets).
- Interpretability as a Feature: The authors introduce a "dimension-wise adversarial sensitivity indicator." By looking at which dimensions the model is most sensitive to, they can visualize the "decision basis" of the model. They found that ASAT models naturally learn to pay more attention to recent time slots, which aligns with human financial intuition.
Key Results
ASAT was tested against several baselines, including standard Linear models, LSTMs, and Transformers, as well as specialized financial models like DeepAR.
- Better Generalization: On the Transformer model for hourly data, ASAT reduced the Mean Squared Error (MSE) from 0.219 to 0.201, a significant improvement in a field where small gains are highly valuable.
- Superior to Traditional AT: ASAT consistently outperformed "Traditional AT" (which uses constant scales) across almost all metrics (MSE, RMSE, MAE, and Accuracy).
- Robustness: While primarily aimed at generalization, ASAT achieved adversarial robustness levels similar to or better than traditional methods, meaning it effectively protects against malicious attacks while performing better on clean data.
- Overfitting Reduction: Visualization of the sensitivity indicators showed that while baseline models often focused on random "false clues" in the history, ASAT models consistently focused on recent, relevant data.
Limitations and Future Work
- Domain Specificity: The paper focuses heavily on financial volume prediction. While the logic of temporal asymmetry applies to many fields (weather, energy, IoT), the specific adaptive scaling formula might need tuning for non-financial datasets.
- Hyperparameter Sensitivity: The method introduces new hyperparameters (like $\epsilon$ and the decay factor $\gamma$ for time-dependent variants) that require careful grid searching to optimize.
- Future Directions: The authors suggest exploring more complex decay functions for the scaling vector and applying ASAT to a wider variety of time-series tasks beyond regression, such as classification or anomaly detection.
Summary updated