Introduction
Modern financial forecasting increasingly incorporates real-time sentiment from platforms like Twitter and Reddit. While it is well-established that Natural Language Processing (NLP) models are vulnerable to adversarial attacks—where small, intentional perturbations to input text cause incorrect outputs—most research has focused on general tasks like sentiment analysis or document classification.
This paper identifies a critical gap: stock prediction models are unique because they process collections of tweets over time. Furthermore, most existing adversarial research assumes a "manipulation attack," where an attacker modifies an existing piece of text. In the real world, an attacker cannot edit someone else's tweet; they can only post new content. This research introduces a more realistic "concatenation attack" scenario, where the attacker injects a semantically similar but perturbed "retweet" into the data stream to fool the forecasting model.
The Concatenation Attack
The core of the vulnerability lies in the "retweet" loophole. By retweeting a modified version of a legitimate financial update, an attacker can bypass simple filters. Because the tweet is semantically similar to a "real" one, it is likely to be picked up by the model's ingestion engine. While replacing an existing tweet (manipulation) is technically more effective at breaking the model, adding a new tweet (concatenation) is far more dangerous because it is actually feasible for a malicious actor to execute.
Methodology: Hierarchical Perturbation
The authors frame the attack as a hierarchical perturbation problem, which they break down into three steps:
- Tweet Selection: Choosing which existing "benign" tweet to mimic.
- Word Selection: Identifying which word within that tweet will have the most impact if changed.
- Word Perturbation: Replacing the chosen word with a synonym (using GLOVE embeddings to ensure semantic similarity) or deleting it entirely.
To find the most effective attack, they formulate this as a combinatorial optimization problem. Because discrete optimization is computationally expensive, they employ a convex relaxation approach, allowing them to use gradient-based methods. They propose two solvers: Joint Optimization (JO), which optimizes selection and replacement simultaneously, and Alternating Greedy Optimization (AGO), which updates variables sequentially.
Experimental Setup and Results
The study utilizes the Stocknet dataset, a benchmark containing 10,824 instances covering 88 stocks across 9 industries from 2014 to 2016. The authors evaluate their attacks against three victim models: Stocknet (a Variational Autoencoder), FinGRU, and FinLSTM.
Key Findings
- Attack Success Rate (ASR): Using the JO solver, the authors achieved an ASR of approximately 16-17% across different models with just a single-word perturbation.
- Performance Degradation: The F1 score (a measure of model accuracy) dropped by about 0.1 to 0.15 on average when the models were under attack.
- Monetary Impact: In a 2-year trading simulation with a $10,000 initial investment, the adversarial attack caused an additional loss of 23% to 32%, erasing gains and eating into the principal. A single word change is literally worth thousands of dollars in a trading context.
Conclusion and Future Work
The research highlights that adversarial "success" in financial NLP translates directly to monetary loss. The attacks are designed to be "semantically stealthy," meaning a human reader might not even notice the change, making the attack difficult to detect through manual sanity checks.
Future work will explore "targeted" attacks designed to specifically drive a price prediction in a direction that benefits the attacker's own market position. Additionally, the development of "adversarial training" or robust aggregation methods is necessary to identify and ignore these malicious injections in financial data streams.
Summary updated