Generating Logically Consistent Synthetic Supply Chain Data with LLM-Driven Knowledge Graph Reasoning

Yunbo Long, Ge Zheng, Liming Xu, Alexandra BrintruparXiv 2026

TL;DR

TabKG is a novel framework that generates synthetic supply chain data that is both statistically realistic and logically consistent. By combining Large Language Model (LLM) reasoning to build a Column Relationship Knowledge Graph (CR-KG) with latent diffusion models, it ensures that generated data respects the strict operational rules—the "physics"—of supply chain processes.

What Problem Does This Paper Address?

Synthetic data is a powerful tool for overcoming data scarcity and privacy issues in supply chain analytics. However, existing tabular generative models (like CTGAN or TabSyn) focus almost entirely on matching statistical distributions. They fail to capture the underlying operational logic—what the authors call the "physics" of supply chain data.

As a result, state-of-the-art models often generate data that looks statistically plausible but is logically broken. For example, they might output records where a delivery date occurs before the order date, a city is placed in the wrong country, or the total price doesn't equal the unit price multiplied by the quantity. Such data is completely unusable for high-stakes operational simulations or digital twins.

Figure 1: Illustration of inter-column logical consistency problems in synthetic supply chain data. Real data (left) maintains valid hierarchical, temporal, and mathematical relationships, while synthetic data generated by existing methods (right) frequently violates these constraints, producing records in which cities map to incorrect countries, delivery dates precede order dates, and totals do not equal price multiplied by quantity.

Methods

To enforce logical consistency by construction, the authors introduce TabKG, a five-stage framework:

  1. Metadata Serialization: Column names and descriptions are transformed into natural language strings and fed into a structured prompt.
  2. Multi-LLM Ensemble Graph Construction: An ensemble of diverse LLMs (e.g., DeepSeek, Qwen, MiniMax) uses majority voting to propose a candidate Column Relationship Knowledge Graph (CR-KG). This graph maps out four types of relationships: hierarchical, mathematical, temporal, and semantic.
  3. Data-Driven Edge Validation: The candidate relationships are empirically tested against the real dataset. Hallucinated or unsupported edges are pruned, leaving only verified operational rules.
  4. Graph-Guided Compression and Generation: The validated CR-KG identifies independent columns and dependent columns. The table is compressed to include only the independent columns, and a latent score-based diffusion model is trained to generate this simplified data space.
  5. Knowledge Graph-Guided Decompression: Finally, the dependent columns are deterministically reconstructed using the validated rules (e.g., applying exact mathematical formulas or lookup tables), guaranteeing logical consistency.
Figure 2: Overview of the TabKG framework. Stage 1 serializes column metadata. Stage 2 constructs a candidate knowledge graph via a multi-LLM ensemble with majority voting. Stage 3 validates each edge against real data and prunes hallucinated relationships. Stage 4 uses the validated graph for compression and latent diffusion-based generation. Stage 5 reconstructs the full synthetic dataset via knowledge graph-guided decompression.

Datasets

The framework was evaluated on two distinct industrial supply chain datasets:

  • Retail Dataset (DataCo): A public dataset containing 172,765 records and 41 features (26 numerical, 15 categorical). It includes complex geographical hierarchies and financial calculations, evaluated via a late-delivery risk prediction task.
  • Purchasing Dataset: A proprietary dataset containing 29,590 records and 21 features (14 numerical, 7 categorical) capturing procurement cycles and supplier relationships, evaluated via a procurement-status classification task.

Key Insights and Ideas

  • Enforcement by Construction: Instead of hoping a neural network will implicitly learn that $Total = Price \times Quantity$ during training, TabKG isolates the independent variables, lets the model generate them, and then calculates the dependent variables deterministically.
  • LLMs as Relational Architects: While LLMs are prone to hallucination, they possess excellent semantic understanding of metadata. TabKG elegantly pairs LLM intuition (to suggest rules) with empirical data validation (to verify rules), eliminating the need for tedious manual rule engineering.
  • The Structure of the CR-KG: The knowledge graph acts as a dataset-specific blueprint of operational reality, mapping out exactly how information flows from independent source columns to dependent target columns.
Figure 3: Example Column Relationship Knowledge Graph (CR-KG) for the Retail dataset. Bold-bordered nodes represent independent columns retained for generation; faded nodes are compressed away and recon- structed during decompression.

Key Results

  • Logic Reasoning Accuracy: TabKG achieved an F1 score of up to 0.97 for relationship discovery, vastly outperforming standard prompt-only baselines which hovered between 0.27 and 0.55.
  • Logical Fidelity: TabKG maintained near-perfect Hierarchical Consistency Scores (HCS) and Multivariate Dependency Indices (MDI) of 97% to 98%, whereas traditional latent-space models often collapsed to near-zero consistency on complex hierarchies.
  • Downstream Utility: In Train-on-Synthetic, Test-on-Real (TSTR) benchmarks, XGBoost classifiers trained on TabKG data achieved the highest AUC scores (71.90 for Retail and 63.45 for Purchasing) compared to other synthetic generators, proving that logically consistent data yields better predictive models.
  • Efficiency: The entire pipeline takes roughly 35 minutes on a single NVIDIA RTX 4090 GPU for the Retail dataset, making it highly competitive with existing methods.

Limitations and Future Work

Despite its strong performance, TabKG has a few limitations:

  • Metadata Dependency: It relies heavily on descriptive column names and documentation. Cryptic legacy ERP column names (like LIFNR or MATNR) degrade performance unless curated first.
  • Data Standardization: The framework does not currently normalize mixed units, currencies, or time zones before inferring relationships.
  • Regime Shifts: The model was evaluated on normal-regime operational data; it remains to be seen how well the discovered logical structures hold up during severe supply chain disruptions (e.g., stockouts or port congestion).

Future work aims to integrate domain-specific LLM fine-tuning, incorporate causal inference for "what-if" risk analysis, and expand testing into automotive and pharmaceutical manufacturing environments.

Summary updated

BibTeX
@misc{long2026generating,
  author = {Yunbo Long and Ge Zheng and Liming Xu and Alexandra Brintrup},
  title = {{Generating Logically Consistent Synthetic Supply Chain Data with LLM-Driven Knowledge Graph Reasoning}},
  year = {2026},
  eprint = {2605.26823},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.26823},
}
Figure