TRACE: Temporal Rule-Anchored Chain-of-Evidence on Knowledge Graphs for Interpretable Stock Movement Prediction

The TRACE framework introduces an interpretable, end-to-end pipeline for stock movement prediction that combines rule-guided multi-hop exploration on knowledge graphs with LLM-driven, news-grounded evidence aggregation to achieve superior recall and F1 scores on the S&P 500 while providing auditable, human-readable explanations.

Qianggang Ding, Haochen Shi, Luis Castejón Lozano, Miguel Conner, Juan Abia, Luis Gallego-Ledesma, Joshua Fellowes, Gerard Conangla Planes, Adam Elwood, Bang Liu

Published 2026-03-16
📖 4 min read☕ Coffee break read

Imagine you are trying to predict whether a specific stock will go UP or DOWN tomorrow.

Most traditional methods are like a weather forecaster who only looks at the temperature of the last hour. They look at the stock's past price or read a single news headline and make a guess. Sometimes they get it right, but they often miss the bigger picture because they don't understand how different companies are connected.

Other methods use powerful AI (Large Language Models) that can read everything, but they sometimes "hallucinate"—making up facts or connecting dots that don't actually exist, like a detective who invents clues to solve a case.

TRACE is a new system that acts like a super-sleuth detective who never makes things up and always follows a strict rulebook. Here is how it works, broken down into simple concepts:

1. The Giant Family Tree (The Knowledge Graph)

Imagine the entire stock market as a massive, living family tree.

  • The Nodes: Instead of just people, the "family members" are companies, products, news articles, and events.
  • The Connections: These family members are linked by relationships. For example, "Company A buys Company B," "Company C sues Company D," or "News Article E mentions Company F."
  • The Time Machine: This isn't just a static tree; it's a time machine. It only shows you the connections that existed up until the moment you are making your prediction. It strictly forbids looking at tomorrow's news today (no cheating!).

2. The Rulebook (Symbolic Priors)

Before the detective starts investigating, they study a Rulebook written by experts and mined from history.

  • Example Rule: "If a company invests in an AI startup, and that startup is in the AI sector, then the investor's stock usually goes UP."
  • Instead of wandering aimlessly through the family tree, the detective only follows paths that match these proven rules. This stops them from wasting time on dead ends or irrelevant gossip.

3. The Investigation (Chain-of-Evidence)

When the system needs to predict the movement of a specific stock (let's say, Microsoft), it doesn't just guess. It goes on a hunt:

  1. Start: It starts at Microsoft.
  2. Follow the Clues: It looks for connections that match the Rulebook. Maybe it finds Microsoft acquired a gaming company.
  3. Check the Evidence: It doesn't stop there. It follows the link to the News Article that announced the acquisition.
  4. The "Grounding" Step: This is crucial. The system asks an AI: "Does this news article actually support the idea that Microsoft's stock will rise?" If the news is positive and matches the rule, the clue is "grounded" in reality. If the news is vague or negative, the clue is discarded.

4. The Verdict (The Decision)

After gathering a few strong, rule-based, news-backed clues, the system makes a decision.

  • It doesn't just say "Up." It says: "UP, because Microsoft bought a gaming company (Rule), and the news says the market loves this deal (Evidence)."
  • It provides a clear, readable path showing exactly why it made that choice. You can trace the logic from the final decision all the way back to the original news article.

Why is this better?

  • No Hallucinations: Because it forces the AI to stick to the "Rulebook" and the actual "News Articles," it can't invent fake connections.
  • It Understands Context: It knows that if a company in the AI sector has a problem, it might hurt their partners, not just the company itself. It sees the web of connections.
  • Trustworthy: In finance, you need to know why a decision was made. TRACE gives you the "receipts" (the news and the rules) so you can audit the decision yourself.

The Result

When they tested this "Detective" on the S&P 500 (the top 500 US companies), it was more accurate than the other methods.

  • It correctly predicted the direction of stocks 55.1% of the time (which is a big deal in finance).
  • More importantly, it was much better at catching the "UP" moves (high Recall) without getting tricked by fake signals.

In short: TRACE is like giving a financial analyst a super-powered flashlight (the Knowledge Graph), a strict law book (the Rules), and a fact-checker (the AI), ensuring they only make predictions based on solid, traceable evidence.

Get papers like this in your inbox

Personalized daily or weekly digests matching your interests. Gists or technical summaries, in your language.

Try Digest →