TL;DR
This paper exposes a critical vulnerability in social-media-driven stock prediction models by demonstrating a highly realistic "concatenation attack" via quote tweets. By changing just a single word in an automatically generated quote tweet to maintain semantic similarity, the authors successfully flipped model predictions. In a simulated trading environment, this subtle manipulation resulted in an additional 32% monetary loss for investors over two years.
What Problem Does This Paper Address?
Quantitative trading and stock forecasting models increasingly ingest real-time alternative data from social media platforms like Twitter and Reddit to gauge market sentiment. While NLP models are notoriously fragile against adversarial text attacks, standard adversarial methods assume the attacker can directly modify the input text (a manipulation attack).
In the real world, a malicious actor cannot edit another user's tweet. This paper addresses this gap by introducing a realistic concatenation attack. Here, the attacker injects new, semantically similar "quote tweets" into the public data stream to manipulate downstream financial forecasting models without altering the original benign text.
Methods
The authors frame the adversarial generation as a combinatorial optimization problem under semantic and budget constraints. They introduce a hierarchical perturbation framework consisting of three steps:
- Tweet Selection: Choosing which benign tweets to target for retweeting/quoting.
- Word Selection: Identifying the most impactful words within those tweets to perturb.
- Word Perturbation: Applying either word replacement (swapping a word with a synonym using GloVe embedding similarity to preserve human readability) or word deletion.
To solve this complex discrete optimization problem, they use convex relaxation to map boolean selection variables into a continuous space. They propose two solvers: Joint Optimization (JO), which uses projected gradient descent to optimize all variables simultaneously, and Alternating Greedy Optimization (AGO), which sequentially updates selection and replacement variables.
Datasets
The approach was evaluated on a standard stock prediction dataset (Xu and Cohen, 2018) containing 10,824 instances spanning 88 stocks across 9 industries from 2014 to 2016. The dataset includes both historical pricing data and a total of 57,533 tweets.
Key Insights and Ideas
- Realism vs. Efficacy: Traditional manipulation attacks remarkably outperform concatenation attacks in terms of Attack Success Rate (ASR) and F1 drop. However, because manipulation attacks are physically impossible on open social platforms, concatenation attacks represent a much more realistic threat model that financial ML deployment must account for.
- Minimal Effort, Maximum Damage: The attack is highly cost-effective. Increasing the budget to allow more altered tweets or words yields diminishing returns. A budget of just one tweet and one word is sufficient to consistently fool the models while minimizing the chance of detection by human moderators or spam filters.
- Domain-Specific Targeting: Rather than selecting random words, the optimization framework naturally identifies and alters words that are highly relevant to the financial domain, making the adversarial tweets blend seamlessly into financial discourse.
Key Results
- Model Degradation: The attack was tested against three victim architectures: Stocknet, FinGRU, and FinLSTM. For a single-word replacement budget, the JO and AGO solvers achieved an Attack Success Rate (ASR) of roughly 10% to 20%, dropping the models' F1 scores by around 0.1.
- Monetary Impact: To measure real-world impact, the authors simulated a Long-Only Buy-Hold-Sell trading strategy over a two-year period with a $10,000 initial investment. The single-word replacement attack caused an additional $3.2K loss (a 32% portfolio reduction) compared to trading on the unattacked Stocknet model.
As illustrated below, replacement perturbations consistently caused more severe financial damage than deletion perturbations across the victim models:
Limitations and Future Work
- White-Box Assumption: The current optimization framework requires access to the victim model's gradients (a white-box setting), which might not always be available to real-world attackers.
- Future Directions: The authors emphasize the need to explore black-box attacks and transferability across unknown input domains. Crucially, this work serves as a call to action for the financial community to develop robust, human-in-the-loop AI architectures capable of filtering out subtle semantic adversarial injections before they hit the trading floor.
Summary updated