TL;DR
Missing a single two-cent diode can halt an entire electronics assembly line, yet component stock data is messy, sparse, and only recorded when someone happens to search for a part. The authors turn 632 million real-world part searches into a massive temporal knowledge graph and pair Graph Neural Networks with logical rules to forecast part availability and demand weeks into the future. In a single 16.5-second pass, their neuro-symbolic model scores 32.7 million future scenarios—beating even a frontier LLM database agent at catching unexpected supply shifts like sudden stockouts.
What Problem Does This Paper Address?
If you build hardware, you live in fear of component shortages. Procurement engineers constantly ask: Will this part be in stock next month? Is it going obsolete? Is demand spiking?
Right now, engineers answer these questions by querying part-aggregator databases—either manually or via an LLM writing database queries. A query gives you the last recorded state, which works fine until it doesn't. Supply chain data has three tricky quirks that break standard machine learning models:
- It’s sparse: A few commodity parts get all the traffic; over half of all parts have just one distributor.
- It’s irregularly observed: Stock is only logged when a human searches for that part. If nobody looks for three weeks, you are flying blind.
- States persist: Over 90% of the time, tomorrow’s stock looks like yesterday’s.
Standard Temporal Knowledge Graph (TKG) models expect dense, clean streams of discrete events (like news feeds), not slowly drifting quantities observed at random intervals. We need a way to combine weak signals across related parts, manufacturers, and search queries to assign calibrated probabilities to the unseen future.
Methods
The authors cast procurement forecasting as probabilistic logic over time. Every question becomes a temporal atom: a true/false statement anchored at a specific week $a$ looking $\delta$ days forward or backward (e.g., "As of Monday, will Part X have $\ge 100$ units in stock 7 days from now?").
They build a temporal extension of ExpressGNN, a Neural Markov Logic Network (MLN). An MLN uses weighted first-order logic rules (like "if an offer has $\ge 10$ units, the part's total stock is $\ge 10$" or "parts searched together tend to share demand") as soft constraints, while a neural network estimates the probability of every unknown atom.
What’s new here is making time a first-class citizen at massive scale:
- Exact Temporal Grounding: Instead of randomly guessing which entities fit the 317 logical rules, a backtracking join binds known structural facts first, filtering 4 billion possibilities down to 63.4 million informative rule instances.
- Recurrent Graph Encoder: At each weekly anchor, a heterogeneous GraphSAGE network passes messages across the static supply chain neighborhood, while a GRU (a recurrent neural cell) carries each entity's memory forward across weeks—crucial when a part hasn't been searched recently.
- Change-Weighted & Mirror Objectives: Because states rarely change, the loss function upweights rare transitions ($\omega = 5$) so the model doesn't get lazy. A clever temporal mirror loss forces long-range forecasts from early weeks and short-range forecasts from later weeks to agree when they target the exact same calendar day.
Datasets
The authors introduce a massive industrial dataset from an electronic component aggregator spanning December 2025 to April 2026: 632 million search records containing 15.7 billion distributor entries across 39.2 million parts.
They structure this into a labeled property graph (2.13 billion nodes, 9.86 billion edges) separating static entities (Parts, Manufacturers, Distributors) from versioned OfferState chains and daily SEARCHED_FOR edges. Unlike prior supply chain benchmarks that map static firm-to-firm links from news, this captures live, part-level quantity and demand dynamics. Experiments run on a connected slice of 422,716 entities and 178.3 million temporal facts, holding out March for validation and three weeks of April (32.7 million atoms) for testing.
Key Insights and Ideas
- The "Persistence Trap" vs. Real Value: Because supply states stay the same >90% of the time, simply guessing "nothing changed" (persistence) yields high overall accuracy. However, when persistence is wrong, it is confidently wrong. Probabilistic reasoning shines by hedging uncertainty and catching the 10% of cases where things actually break.
- Memory Beats Static Logic Alone: In ablations, removing the GRU recurrent memory caused ranking performance to collapse and reduced change-detection to near-random guessing. Conversely, trying to learn rule weights jointly with the neural network hurt performance compared to keeping fixed, sensible rule weights.
- Batch Inference vs. Agentic Querying: An LLM agent (Claude Opus 5.5 writing Cypher queries) is great at reading the last state and hedging slightly, making it very accurate when things stay stable. But when states change, the neuro-symbolic GNN—which pools subtle neighborhood signals across the whole graph—outperforms the agent, while scoring millions of facts in the time it takes to run one database query.
Key Results
- Speed & Scale: One forward pass on a single GPU scores all 32.7 million test atoms in 16.5 seconds.
- Calibration & Ranking: Across all test atoms, persistence edges out the model on raw AUC-ROC (0.898 vs. 0.885), but the model cuts Negative Log-Likelihood (NLL) by more than half (0.502 vs. 1.245) and doubles Mean Reciprocal Rank (MRR) in filtered ranking (0.340 vs. 0.163).
- Catching Surprises (Reference Errors): On the 1,325-atom benchmark enriched for cases where the last observation fails, the model achieves an AUC-ROC of 0.614, beating the Claude Opus 5.5 Cypher agent (0.549) and a raw-value heuristic (0.508). (Note: on pure demand counts, simple Poisson rate baselines still beat the GNN on discrimination, though the GNN keeps the best NLL).
Limitations and Future Work
- Cohort Selection Leakage: While no future stock or search evidence leaked past the February cutoff, the 50,000-part experimental slice was chosen using search counts from the full four-month period, tilting the slice toward frequently searched parts.
- Isolating the Rules: The authors did not train a completely rule-free recurrent GNN baseline, meaning we can't yet quantify the exact standalone boost of the Markov logic rules over the GNN+GRU architecture alone.
- Stock Transitions Remain Tough: Most of the model's advantage on "surprise" changes comes from demand shifts; predicting sudden stockouts on individual offers remains very difficult (below-chance AUC-ROC within the error-only subset for all predictors). Future work aims to add rule-free baselines, use strict rolling cutoffs for part selection, and scale training to the full 2-billion-node graph.
Summary updated