Targeted Manipulation: Slope-Based Attacks on Financial Time-Series Data
Targeted Manipulation: Slope-Based Attacks on Financial Time-Series Data
This paper introduces two novel slope-based adversarial attacks—General Slope Attack (GSA) and Least-Squares Slope Attack (LSSA)—designed to manipulate the trend of financial time-series forecasts generated by the N-HiTS model. Unlike traditional attacks that maximize error or shift predictions uniformly, these methods embed a desired slope into the loss function, allowing fine-grained control over temporal dynamics. The GSA alters the slope between endpoints, while the LSSA modifies the overall trend using least-squares regression. Both attacks are evaluated on an N-HiTS model trained on over 300 S&P 500 stocks, demonstrating the ability to double the slope of predictions with minimal perturbation (e.g., 2% of median price). Importantly, these attacks remain stealthy, bypassing a CNN-based discriminator with accuracy as low as 57% and specificity of 28%.
The paper also proposes an Adversarial GAN (A-GAN) that integrates the LSSA loss into a conditional Wasserstein GAN to generate realistic adversarial examples. While the A-GAN successfully increases the slope of N-HiTS predictions, it suffers from mode collapse, making its outputs detectable. Additionally, the authors highlight a critical security gap by presenting a malware injection method that targets the model inference library, enabling gradient-based attacks even when gradients are disabled. This work underscores the importance of securing the entire ML pipeline, not just the model itself, and opens avenues for future research on slope-based attacks in other time-series domains and improved GAN stability.
Highlights
- 1Introduces two novel slope-based adversarial attacks (General Slope Attack and Least-Squares Slope Attack) that manipulate the trend of financial time-series forecasts.
- 2Demonstrates that these attacks can double the slope of N-HiTS predictions while remaining stealthy, bypassing a CNN-based discriminator with accuracy as low as 57%.
- 3Integrates the slope-based attack into a Generative Adversarial Network (A-GAN) to generate realistic adversarial examples that fool the forecasting model.
- 4Proposes a malware injection method that targets the model inference library, highlighting the need for end-to-end ML pipeline security.
- 5Evaluates attacks on a state-of-the-art N-HiTS model trained on over 300 S&P 500 stocks, showing effectiveness with minimal perturbations.
Methods
- MGeneral Slope Attack (GSA): Optimizes the slope between endpoints of the forecast using an exponential loss function.
- MLeast-Squares Slope Attack (LSSA): Uses the slope of the line of best fit to alter the overall trend of the forecast.
- MAdversarial GAN (A-GAN): A conditional Wasserstein GAN with a second critic (N-HiTS model) to generate adversarial examples via the LSSA loss.
- MBaseline attacks: FGSM, BIM, MI-FGSM, SIM, and Targeted Iterative Method for comparison.
Results
- RGSA (Up) doubles the general slope from 0.0337 to 0.0676 with 2% perturbation, while LSSA (Up) increases the LS slope from 0.0222 to 0.0496.
- RThe slope-based attacks bypass a 4-layer CNN discriminator, achieving accuracy of 52-56% and specificity as low as 26%.
- RThe A-GAN increases the LS slope from -0.00241 to 0.217, but suffers from mode collapse, making it detectable (discriminator accuracy 92.8%).
- RSlope attacks are effective even with minimal perturbation (0.5% epsilon), showing consistent slope increases across epsilon values.
Analyze Paper
Generate insights from "Targeted Manipulation: Slope-Based Attacks on Financial Time...".