TL;DR
TRACE (Temporal Rule-Anchored Chain-of-Evidence) is a novel neuro-symbolic framework that unifies automated rule mining, temporal knowledge graphs, and Large Language Models (LLMs) for stock market prediction. By restricting graph exploration to economically sound logical paths and grounding them in contemporaneous news, TRACE delivers state-of-the-art predictive accuracy alongside human-auditable, hallucination-free explanations.
What Problem Does This Paper Address?
Predicting stock movements is notoriously difficult because financial markets are inherently relational. A single company's stock price doesn't move in a vacuum; it is influenced by a complex, continuously evolving web of supply chains, partnerships, mergers, and legal disputes.
Traditional forecasting models often look at time-series data or news sentiment in isolation, ignoring these multi-hop corporate dependencies. While graph neural networks (GNNs) can model these relationships, they rely on black-box embeddings that offer zero transparency. Conversely, recent LLM-based approaches excel at understanding text but are prone to hallucinating facts and lack structural reasoning capabilities.
TRACE bridges this gap by combining the logical rigor of symbolic rule mining with the contextual intelligence of LLMs, solving the long-standing trade-off between predictive performance and interpretability in computational finance.
Methods
The TRACE framework operates as an end-to-end pipeline consisting of four core phases:
- Temporal Knowledge Graph (TKG) Construction: The authors build a dynamic financial knowledge graph containing entities (Companies, Products, Events, Persons) and time-stamped relations. Crucially, strict "as-of" temporal constraints are enforced to ensure the model only accesses information available at the exact time of prediction, preventing data leakage.
- Automated Rule Mining: Before prediction, the system mines frequent relational patterns from historical graph snapshots to serve as logical priors (e.g., if Company A acquires Company B, and Company B causes an increase in a sector, predict
UP). Each rule is assigned a confidence score based on historical validation. - Rule-Grounded Graph Exploration: Instead of letting the model perform arbitrary random walks across the graph, TRACE uses beam search constrained by the mined rules. A path is only explored if its relation sequence matches a prefix of a valid rule. An LLM Relation Selector (powered by Qwen QwQ-32B) acts as a real-time controller, pruning irrelevant or noisy branches. Paths are scored lexicographically based on rule coverage, temporal recency, and hub avoidance.
- Text-Grounded Consolidation & Verdict: Every valid reasoning chain must terminate at a
TextSourcenode (e.g., a specific news article). An LLM Validator cross-references the structural path with the actual text content to ensure logical consistency. Finally, the framework aggregates the confidence scores of all fully grounded hypotheses to output a binaryUP/DOWNverdict.
Datasets
The authors evaluated TRACE on a large-scale, real-world financial dataset:
- Knowledge Graph Data: Constructed using S&P 500 data from 2022 to 2023, encompassing 42,188 entities, 174,415 timestamped edges, and 356,046 financial articles.
- Market Data: Daily OHLCV (Open, High, Low, Close, Volume) data for 487 S&P 500 constituent stocks.
- Experimental Splits: The training window spanned 2022-01-01 to 2023-01-01, while the evaluation/testing window ran from 2023-01-01 to 2024-01-01.
Key Insights and Ideas
- Neuro-Symbolic Synergy Cuts Noise: Using symbolic rules as structural guardrails for the LLM drastically reduces the search space. This prevents the "hallucination" problem common in pure LLM agents and avoids the computational explosion of unconstrained graph traversals.
- Multi-Hop Propagation is Critical: Ablation studies revealed that multi-hop reasoning provided the single largest boost to performance (a 2.1% drop in accuracy when removed). This confirms that market-moving signals often propagate indirectly through networks of subsidiaries and partners rather than direct events.
- Selective Fusion Beats Uniform Pooling: Traditional graph models uniformly pool features across neighbors, which dilutes strong signals with market noise. TRACE succeeds by selectively aggregating only high-confidence, text-grounded hypotheses.
Key Results
TRACE was tested against strong baselines, including traditional machine learning (XGBoost), temporal graph networks (T-GNN), and advanced LLM trading agents (Mars, StockAgent, FinMem).
- Predictive Performance: For 1-day horizon stock movement prediction, TRACE achieved 55.1% accuracy and 60.8% F1-score, outperforming XGBoost (52.9% accuracy) and the best-performing LLM agent baseline, FinMem (54.4% accuracy).
- Financial Backtesting: In a simulated Top-10 buy-and-hold portfolio strategy over the 2023 trading year, TRACE achieved a staggering 41.7% total return with an annualized Sharpe ratio of 2.00, vastly outperforming the market's equal-weight benchmark (16.7% return, 1.17 Sharpe).
- Explanation Quality: TRACE generated an average of 2.8 reasoning paths per prediction. In a blind review by human financial analysts, 73% of the generated paths were rated as "financially meaningful," and 64% were deemed "actionable for investment decisions."
Limitations and Future Work
While powerful, TRACE is fundamentally dependent on the coverage and quality of the underlying Knowledge Graph. If an economically vital relationship or news event is missing from the graph, the model cannot form a hypothesis. Additionally, the framework is susceptible to concept drift, where historical rules might lose relevance during unprecedented market regimes.
The authors note that future work will focus on extending TRACE to multi-horizon forecasting (e.g., predicting 3, 5, or 30 days out), improving probability calibration, and validating the framework across international, non-US markets.
Summary updated