TL;DR
Social media sentiment is a potential goldmine for stock prediction, but it is buried under immense noise and suffers from extreme signal sparsity. This paper introduces a dynamic expert tracing algorithm to isolate true and "inverse" experts, combined with a Dual Graph Attention Network (DualGAT) to propagate these sparse signals across related stocks. The resulting framework turns noisy tweets into highly accurate, cross-sectional trading signals that significantly outperform traditional quantitative baselines.
What Problem Does This Paper Address?
Retail investor sentiment on platforms like StockTwits is notoriously noisy. The authors show that naive aggregation—simply following the crowd's dominant sentiment—yields a stock trend predictive accuracy of around 47%, which is worse than a random coin flip.
While genuine "experts" exist on these platforms, identifying them is challenging. Most users only perform well during specific market regimes (e.g., a bull market makes everyone look like an expert), and many accounts are automated bots or spammers. Furthermore, once you apply strict filters to isolate true experts, you hit a sparsity problem: expert signals only cover about 4% of all stock-day combinations. This makes the data impractical for cross-sectional portfolio selection, where a quant strategy needs to rank and choose from hundreds of stocks simultaneously.
Methods
The authors tackle these challenges with a two-stage framework: Dynamic Expert Tracing followed by Dual-Graph Signal Propagation.
1. Dynamic Expert Tracing
To clean the data, the algorithm first filters out spammers by keeping only the latest daily post per user-stock pair. It then evaluates users based on two criteria:
- Recent Performance: The user must have posted at least 20 times across 5 distinct days to ensure active, focused analysis.
- Long-Term Stability: The user's performance is tracked over a rolling 2-year window to ensure their accuracy survives shifting market cycles.
Crucially, the system identifies two types of valuable users: True Experts (consistently high accuracy) and Inverse Experts (users who are consistently wrong due to cognitive biases or deliberate market manipulation). Binary bullish/bearish signals from these users are converted into continuous expected return ratios based on the stock's historical 30-day performance.
2. Dual Graph Attention Network (DualGAT)
To solve the 4% sparsity issue, the authors propose DualGAT to propagate expert insights to related, unlabeled stocks using two distinct graph views:
- Industry Graph: A semi-static graph connecting stocks within the same GICS sector.
- Dynamic Correlation Graph: A graph updated daily based on stock price correlations over the past 30 days. Nodes with expert signals are given a lower correlation threshold, allowing their influence to spread more easily.
A Multi-Scale LSTM (MS-LSTM) first establishes a baseline return prediction using standard market and fundamental data. DualGAT then uses attention mechanisms to fuse information from both graphs, adaptively learning which relationship (industry or price correlation) is more relevant for refining each stock's final return prediction.
Datasets
- StockTwits: A massive dataset of social media posts spanning 2010 to 2023, utilizing the platform's explicit, user-labeled "Bullish" or "Bearish" tags.
- Market Data: Price-volume data from Polygon.io and fundamental indicators from EODHD.
- Evaluation Universes: The model was tested on the NASDAQ 100, the S&P 500, and an updated version of the StockNet dataset for the 2022–2023 test period.
- Cross-Market Validation: The expert tracing algorithm was also validated on Xueqiu, the largest stock discussion platform in China.
Key Insights and Ideas
- The Value of Being Consistently Wrong: One of the paper's most compelling ideas is the systematic exploitation of "inverse experts." Whether due to retail cognitive biases (like the disposition effect) or institutional manipulation (e.g., using controlled accounts to drive retail buying while institutions offload shares), accounts that are reliably wrong serve as excellent contrary indicators.
- Specialization Equals Expertise: Grounded in Cognitive Load Theory, the algorithm penalizes "shotgun" posters who tweet about dozens of different stocks a day. True expertise requires focused attention, so the model filters for users whose history shows concentrated coverage.
- Dual-Graph Synergy: The industry graph provides stable, structural paths for signal propagation (covering ~20.6% of nodes in a single hop), while the dynamic correlation graph captures ephemeral, market-driven relationships (~9.1% additional nodes). Together, they expand signal coverage from 4% to roughly 90% after two hops.
Key Results
- Superior Expert Mining: The dynamic expert tracing algorithm achieved a next-day (T+1) trend prediction accuracy of 72.8%, outperforming alternative user-centric and smart-user baselines by 13–15%.
- Top-Tier Quant Performance: When plugged into a backtested trading strategy (longing the top 10% predicted gainers, shorting the bottom 10%), the DualGAT model achieved an Annualized Return (AR) of 32.91% and a Sharpe Ratio (SR) of 2.69 on the NASDAQ 100. This significantly beat out advanced time-series baselines like PatchTST, TimesNet, and standard LSTMs.
- Effective Propagation: Even when evaluated only on the subset of stocks that lacked direct expert tweets, the propagated signals still significantly outperformed the baselines, proving that DualGAT successfully distributes alpha across the network.
Limitations and Future Work
- Horizon Constraints: The framework is strictly optimized for daily prediction horizons. Long-term macroeconomic shifts, unexpected corporate events, or major policy changes fall outside its immediate scope.
- Social Graph Ignorance: The current model treats all identified experts equally, ignoring metadata like follower counts or retweet networks, which could provide additional layers of social influence data.
- Text Blindness: The model relies entirely on structured metadata and self-labeled sentiment tags. The authors note that integrating Large Language Models (LLMs) to parse the actual text of expert tweets could extract deeper semantic insights, creating a powerful synergy between LLM understanding and graph-based propagation.
Summary updated