TL;DR
TableFactory is a new framework that generates complex, multi-table synthetic data by simulating the actual behavioral processes of a business. Instead of just trying to match the statistical distribution of a single table, it uses LLMs to "dream up" a business scenario and then runs a multi-agent simulation where entities like customers and managers interact to produce a web of semantically linked relational tables.
What Problem Does This Paper Address?
High-quality tabular data is the lifeblood of enterprise AI, yet it is notoriously difficult to access due to privacy concerns, fragmentation, and proprietary silos. While synthetic data generation has made strides, most existing tools focus on "single-table distribution matching"—essentially trying to create a fake version of one specific table.
However, real-world business data is relational. An order in one table links to a payment in another, a shipment in a third, and a support ticket in a fourth. Maintaining this "cross-table consistency" is incredibly hard for traditional generators. TableFactory addresses this by shifting the focus from the data to the process. By simulating the underlying behavioral processes (e.g., a customer buying a steak, which triggers an inventory update and a work order for the butcher), semantically linked data emerges naturally as a byproduct.
Methods
The TableFactory pipeline consists of four distinct layers:
- Scenario Generation Layer: An LLM takes a simple prompt (e.g., "simulate a butcher shop in Barcelona") and builds a full business configuration. It pulls in real-world macroeconomic data (GDP, tax rates) and generates localized product catalogs, supplier lists, and demand patterns.
- Entity Layer: The system uses five abstract, domain-agnostic roles: Customer, Sales, Operations, Inventory, and Manager. These roles are specialized by the scenario configuration (e.g., in a cafe, "Operations" is a barista; in a computer store, they are a technician).
- Agent Layer: This layer determines the "brain" of each entity. TableFactory supports interchangeable controllers: LLMs (like GPT-4 or Claude), Reinforcement Learning (RL) agents (PPO, SAC, DDPG), or simple rule-based heuristics.
- Persona Layer: To ensure data diversity, agents are assigned MBTI-style personas. A "Grumpy" (ISTJ) customer might have low patience and high complaint frequency, while an "Enthusiastic" (ENFP) shopper might explore more products and use mobile payments.
All agents interact through a Shared Relational World State (an in-memory database). Because they all read from and write to the same state, the resulting CSV exports (20 tables per run) maintain perfect referential integrity and causal consistency.
Datasets
The authors used several external sources to ground their simulations:
- World Bank & Tax Foundation: For real-world GDP and corporate tax data.
- Trading Economics: For localized economic indicators.
- Newly Introduced: The paper releases reproducible "table bundles" for seven diverse Berlin-based business scenarios, including a butcher shop, beer garden, cafe, computer store, and vintage clothing shop.
Key Insights and Ideas
- Consistency via Interaction: The "aha moment" here is that you don't need complex post-hoc logic to link tables if you generate them through a shared simulation. If a "Customer" agent acts, the "Inventory" agent sees the change immediately.
- The Power of Abstraction: By defining only five abstract roles, the system can simulate almost any small business. The LLM handles the "flavor" (the specific products and tasks), while the underlying logic of "Operations" or "Inventory" remains constant.
- Persona-Driven Data: Integrating MBTI traits allows the generator to produce "edge case" data—like high-volume complaints or unusual purchasing patterns—that are often missing from standard synthetic datasets but are crucial for training robust models.
- Controller Interchangeability: The architecture allows LLMs and RL agents to coexist. You could have LLM-powered customers shopping at a store where the inventory is managed by a PPO-trained agent.
Key Results
- Qualitative Fidelity: The system successfully generated realistic, linked tables for seven different business types with zero code changes between scenarios.
- Controller Comparison: In a 7-day simulation of a Barcelona butcher shop, GPT-5.4 achieved the highest revenue (€17,045) and the most diverse purchasing behavior (entropy of 4.92).
- RL Performance: While RL agents (PPO) produced valid data, they struggled to match LLM performance within short training horizons (7 days), highlighting the "cold start" advantage of LLMs in complex reasoning tasks.
- Cross-Model Variation: Different LLM backends produced distinct "vibes." For example, Claude 3.5 Sonnet produced a more "culturally immersed" Catalan scenario with a 2x larger product catalog compared to GPT-4.
Limitations and Future Work
- Scale: Currently, the framework focuses on small "street" businesses. Scaling this to represent global supply chains or massive corporations would require more complex entity roles and higher computational overhead.
- RL Training: The RL agents require significant training time to become "profitable" or efficient compared to LLMs.
- LLM Hallucinations: While the system uses economic grounding, the LLM-generated catalogs and policies are still subject to the biases and potential inaccuracies of the underlying model.
- Future Directions: The authors suggest extending the framework to include competitive multi-store environments and more complex "macro" events (like supply chain shocks) to see how the agents adapt.
Summary updated