Learning Production Functions for Supply Chains with Graph Neural Networks

Serina Chang, Zhiyin Lin, Benjamin Yan, Swapnil Bembde, Qi Xiu, Chi Heem Wong, Yu Qin, Frank Kloster, Xi Luo, Raj Palleti, Jure Leskovec

Introduction

Global supply chains represent some of the most complex systems on Earth. Modeling them accurately is crucial for economic stability and risk management. A recent paper presented at AAAI-25 introduces a novel framework that combines temporal Graph Neural Networks (GNNs) with a custom inventory-tracking module. This approach allows researchers to "peek inside" firms to understand how they transform raw materials into finished goods—even when those internal processes are never explicitly recorded in transaction data.

The "Black Box" of Production

Supply chains are typically represented as graphs where nodes are firms and edges are transactions. However, these graphs often hide a crucial "black box": the production function. While data might show a firm purchasing wheels and later selling a car, the internal logic—such as the specific number of wheels required per vehicle and the lead time involved—remains unobserved.

Standard GNNs excel at predicting links based on network topology but lack an understanding of physical constraints. They do not account for the fact that a firm cannot sell a product if it hasn't first received the necessary components. This limitation makes traditional models brittle during supply shocks, as they cannot precisely forecast how upstream shortages cascade into downstream product delays.

Methodology: The Inventory Module

The core innovation of this research is the Inventory Module, designed to be integrated into existing temporal GNN architectures like TGN or GraphMixer.

Overview of Temporal Production Graphs and the SC-TGN architecture with an integrated inventory module.

The module operates on several key principles:

  1. Explicit Inventory Tracking: The model maintains a state vector for each firm representing its current stock of various products. Stocks increase with purchases and decrease with sales.
  2. Learning via Attention: Since the consumption of parts is hidden, the model employs product-product attention weights. These weights ($\alpha$) represent the learned ratio of inputs required to create a specific output.
  3. Specialized Loss Function: To train the module without ground-truth production data, an "inventory loss" penalizes the model for predicting consumption that exceeds available stock ("inventory debt") while rewarding valid production cycles.
  4. SC-GNNs: By integrating this module, the authors created SC-TGN and SC-GraphMixer. These models use the internal inventory state to penalize "impossible" future transactions in their link-prediction heads.

Datasets and Evaluation

The researchers evaluated their models using a combination of real-world high-stakes data and a new sophisticated simulator:

  • Tesla Dataset: Transaction-level data from 2019–2022 involving Tesla and its multi-tier suppliers.
  • Industrial Equipment Dataset (IED): Data on microscope manufacturers, including estimated ground-truth production functions for validation.
  • SupplySim: A newly released open-source simulator that generates realistic supply chain data, including power-law degree distributions and various "shock" scenarios like sudden supply drops.

Key Insights

  • Inductive Bias: Forcing GNNs to respect physical laws (inventory constraints) provides a powerful inductive bias that improves generalization beyond purely data-driven patterns.
  • Temporal Production Graphs (TPGs): The authors formalize TPGs as a distinct category of graph ML problems, applicable not just to supply chains but also to biological metabolic pathways and organizational workflows.
  • Robustness to Shocks: Unlike traditional models that rely on temporal correlations which break during disruptions, the inventory module remains robust because it understands the causal requirement of inventory availability.

Results

The addition of the inventory module yielded significant improvements across several metrics:

  • Inferring Production Functions: On the IED dataset, the inventory module outperformed the strongest baseline by 50% in Mean Average Precision (MAP), successfully learning complex "recipes" just by observing transactions.
  • Forecasting Transactions: SC-GNNs outperformed standard temporal GNNs by 11% to 62% in predicting future edges across all datasets.
  • Handling Disruptions: The inventory module provided the most substantial performance gains during simulated "shock" scenarios, highlighting its utility for risk management.
Comparison between true production functions and those inferred by the inventory module.

Limitations and Future Directions

Currently, the model assumes a single recipe for each product, whereas real-world firms may use substitute parts or multiple manufacturing methods. Additionally, real-world data is often incomplete, presenting a challenge for deployment. Future research will explore firm-specific production functions and seek to establish formal theoretical links between inventory modules and causal inference.

Reference: Chang, S., et al. (2025). Learning Production Functions for Supply Chains with Graph Neural Networks. The Thirty-Ninth AAAI Conference on Artificial Intelligence (AAAI-25).

Summary updated

BibTeX
@inproceedings{chang2025learning,
  author = {Serina Chang and Zhiyin Lin and Benjamin Yan and Swapnil Bembde and Qi Xiu and Chi Heem Wong and Yu Qin and Frank Kloster and Xi Luo and Raj Palleti and Jure Leskovec},
  title = {{Learning Production Functions for Supply Chains with Graph Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i27.35004},
}
Figure