Advancing Retail Data Science: Comprehensive Evaluation of Synthetic Data

Yu Xia, Chi-Hua Wang, Joshua Mabry, Guang ChengarXiv 2024

TL;DR

This paper introduces a robust, tripartite evaluation framework specifically designed for synthetic retail data, focusing on Fidelity, Utility, and Privacy. By benchmarking several state-of-the-art generative models (like CTGAN and TabAutoDiff) against real-world transaction data, the authors demonstrate that while current models excel at replicating basic statistical distributions, they still struggle to capture the complex co-occurrence patterns essential for advanced retail analytics like market basket analysis.

What Problem Does This Paper Address?

Retailers sit on a goldmine of transaction data, but leveraging it is fraught with challenges. Privacy regulations (like GDPR or CCPA) restrict the use of sensitive customer information, and data scarcity for new products makes training robust machine learning models difficult.

Synthetic data—artificially generated data that mimics the statistical properties of real datasets—offers a way out. However, the retail sector lacks a standardized way to evaluate if this synthetic data is actually "good." A model might produce data that looks realistic (Fidelity) but fails when used to train a pricing algorithm (Utility), or it might simply memorize and "leak" real customer records (Privacy). This paper fills that gap by proposing a comprehensive evaluation pipeline tailored to the unique, skewed, and high-dimensional nature of retail transactions.

Methods

The authors propose a standardized evaluation pipeline (see Figure 1) that splits data into Training ($T$), Holdout ($H$), and Evaluation ($E$) sets to rigorously test for overfitting and generalizability.

Figure 1: The framework diagram of our synthetic retail data evaluation pipeline. Section 3.1 explains the purpose and method to split transaction data. Section 3.2 defines detailed metrics for fidelity assessment, i.e. Wasserstein distance, Pearson correlation, etc. Section 3.3 defines the tasks for utility assessment, i.e. classification accuracy, product association, etc. Section3.4 explains the metrics for privacy assessment, i.e. distance to the closest record.

The framework evaluates five generative models (CTGAN, AutoGAN, TabDDPM, StasyAutoDiff, and TabAutoDiff) across three dimensions:

  1. Fidelity: Uses Wasserstein distance for numerical features and Jensen-Shannon distance for categorical ones to measure how well marginal distributions are replicated. It also uses Pearson correlation and Theil’s U to assess how well the models capture relationships between variables.
  2. Utility: Tests the data's performance on downstream tasks. This includes a Classification Task (predicting "premium" customers) and Product Association Analysis (using the Apriori algorithm to see if synthetic data preserves real-world "Lift" and "Conviction" between products).
  3. Privacy: Employs Distance to Closest Record (DCR) and a new metric, Closest Cluster Ratio (CCR), to ensure the generator isn't just copying training examples, which would pose a major privacy risk.

Datasets

The study utilizes the Dunnhumby Complete Journey Dataset, a comprehensive collection of retail transaction data.

  • Original Scale: ~1.47 million transactions across 92,000 products.
  • Processed Scale: The authors aggregated the data into weekly transactions, resulting in approximately 251,000 records involving 6,000 products and 400 customer clusters based on demographics.
  • Features: Includes a mix of numerical (quantity, sales value) and categorical (age, household size, department) variables.

Key Insights and Ideas

  • The "Product Association" Hurdle: The most striking finding was that while models like TabAutoDiff could replicate the shape of the data (Fidelity) and work well for simple classification (Utility), they failed significantly at capturing product associations. In retail, knowing that "Product A is often bought with Product B" is vital. Most models either overestimated these links or missed them entirely.
  • Diffusion vs. GANs: Diffusion-based models (specifically TabAutoDiff) generally outperformed GAN-based models. TabAutoDiff showed a superior balance across fidelity, utility, and privacy, making it a strong candidate for retail applications.
  • Generalizability is the Litmus Test: By comparing synthetic data to both the training set and a holdout set, the authors could identify "Mode Collapse" (where GANs fail to capture diversity) and overfitting. A high-quality synthesizer should be as close to the holdout set as it is to the training set.

Key Results

  • Top Performers: TabAutoDiff and CTGAN emerged as the leaders. TabAutoDiff was particularly balanced, while CTGAN excelled at capturing joint distributions (how features interact).
  • Privacy Benchmarks: TabAutoDiff achieved the highest DCR (10.86) and the lowest CCR (0.45), indicating it provides the best protection against data-copying while maintaining generalizability.
  • Utility Gap: In the classification task, models trained on TabAutoDiff synthetic data achieved an accuracy of 0.68, very close to the 0.65-0.66 achieved by models trained on real data. However, in product association, the "Lift" metric for real data was ~1.73, while AutoGAN shot up to an unrealistic 20.89, and others failed to find associations at all.

Limitations and Future Work

The authors acknowledge that existing generative models still have "headroom" to improve, particularly in capturing the latent structure of retail datasets—the complex, higher-order dependencies that define how consumers actually shop.

Future research directions include:

  • Developing domain-specific metrics that account for inventory and supply chain complexities.
  • Exploring Large Language Models (LLMs) for tabular data generation to better capture dynamic patterns.
  • Integrating these models into simulation environments for training Reinforcement Learning (RL) agents in personalized marketing and dynamic pricing.

Summary updated

BibTeX
@misc{xia2024advancing,
  author = {Yu Xia and Chi-Hua Wang and Joshua Mabry and Guang Cheng},
  title = {{Advancing Retail Data Science: Comprehensive Evaluation of Synthetic Data}},
  year = {2024},
  eprint = {2406.13130},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.13130},
}
Figure