Listening to Chaotic Whispers: A Deep Learning Framework for News-oriented Stock Trend Prediction

Ziniu Hu, Weiqing Liu, Jiang Bian, Xuanzhe Liu, Tie-Yan Liu

Predicting the stock market is often compared to reading tea leaves, but for quantitative researchers, it’s a high-stakes game of signal processing. While technical analysis (price and volume) and fundamental analysis (financial statements) are the traditional tools of the trade, the explosion of online news has created a new "gold mine" of information. The problem? Most of that gold is buried under a mountain of low-quality rumors, vague comments, and irrelevant noise.

In their paper, researchers from Microsoft Research and Peking University propose a deep learning framework designed to "listen" to these chaotic whispers by mimicking how human investors process information.

TL;DR

The authors introduce Hybrid Attention Networks (HAN) combined with Self-Paced Learning (SPL) to predict stock trends from online news. By using a dual-layer attention mechanism to filter daily noise and identify critical time periods, their model achieved a remarkable 61.1% annualized return in simulations, significantly outperforming market baselines.

What Problem Does This Paper Address?

The core challenge in news-oriented stock prediction is the drastic variance in data quality. A single breaking news story about a military conflict might send a stock plummeting, while a hundred vague rumors might do nothing.

Traditional models often struggle with:

  1. Sequential Context: A single news piece is rarely enough; you need the history (context) to understand its impact.
  2. Diverse Influence: Not all news is created equal.
  3. Noisy Training: Standard training methods treat all data points equally, but in the stock market, many days have no informative news at all, leading to "noisy" gradients that confuse the model.
Figure 2: The challenge of news scarcity—many stocks go days without any relevant news.

Methods

The authors propose a two-pronged solution: a novel architecture (HAN) and a robust training strategy (SPL).

1. Hybrid Attention Networks (HAN)

The HAN architecture mimics human cognition through three stages:

  • News-level Attention: Instead of averaging all news for a day, the model learns to assign higher weights to informative headlines (e.g., analyst predictions) and ignore "filler" (e.g., simple price displays).
  • Sequential Modeling: A bi-directional Gated Recurrent Unit (GRU) processes the sequence of daily news vectors, capturing how sentiment and information evolve over time.
  • Temporal-level Attention: The model identifies which days in a sequence were most influential for the final prediction.
The HAN Architecture: From word embeddings to trend prediction.

2. Self-Paced Learning (SPL)

To handle the "chaos" of financial news, the authors use SPL. Think of this as a "curriculum" for the AI. In the early stages of training, the model only looks at "easy" samples—days where the news signal is clear and the price movement is obvious. As the model matures, it progressively incorporates harder, noisier samples. This prevents the model from being led astray by rumors and low-quality data early on.

Datasets

The framework was evaluated on a massive real-world dataset:

  • Stock Data: 2,527 Chinese stocks from 2014 to 2017.
  • News Data: Over 1.27 million economic news articles, filtered down to 425,250 stock-specific items.
  • Labeling: The authors binned price movements into three categories: UP, DOWN, and PRESERVE (steady), ensuring an approximately even distribution for classification.
Figure 4: The distribution of stock price changes used to create balanced classification labels.

Key Insights and Ideas

  • Context is King: The authors demonstrate that the same news event (e.g., an industry reform) can have opposite effects depending on the preceding news sequence.
  • Attention as a Denoising Filter: The news-level attention successfully learns to ignore "declarative" news (e.g., "Stock X is at $5.50") in favor of "predictive" news (e.g., "Analyst expects growth due to Y").
  • Dynamic Temporal Importance: While recent news generally matters more, the temporal attention layer can "reach back" to capture the lingering influence of major events from several days prior.
Figure 5: Temporal attention clusters showing how the model prioritizes different days in a sequence.

Key Results

The HAN-SPL framework was tested against standard baselines like Random Forests, MLPs, and standard RNNs.

  • Accuracy: The proposed model achieved the highest classification accuracy (0.478) among all tested methods.
  • Trading Simulation: In a one-year back-test (May 2016 – March 2017), a simple strategy of buying the "Top-K" stocks predicted by the model yielded an annualized return of 0.611 (61.1%). For comparison, the overall market baseline during that period was only 0.04 (4%).

Limitations and Future Work

While the results are impressive, the authors note a few areas for growth:

  • Inter-stock Relationships: Currently, the model looks at each stock in isolation. Future versions could leverage industrial connections (e.g., how news about Apple affects its suppliers).
  • Multimodal Integration: The authors suggest that combining this news-oriented approach with traditional technical analysis (price/volume data) could lead to even more robust predictions.
  • News Scarcity: As shown in Figure 2, some stocks suffer from long periods without news, which remains a challenge for any text-based model.

Summary updated

BibTeX
@inproceedings{hu2018listening,
  author = {Ziniu Hu and Weiqing Liu and Jiang Bian and Xuanzhe Liu and Tie-Yan Liu},
  title = {{Listening to Chaotic Whispers: A Deep Learning Framework for News-oriented Stock Trend Prediction}},
  booktitle = {WSDM},
  year = {2018},
  doi = {10.1145/3159652.3159690},
}
Figure