When the Nationwide Building Society considered to use a third-party solution to predict vulnerable individuals based on their income and spending patterns, it decided not to share the sensitive customer transaction data with the third-party. Instead, they use a solution to generate and share differentially-private synthetic data that provided high utility for transaction analysis while reducing the data preparation time from months to days and privacy risk.
Differentially Private Synthetic Data Generation to Test the Effectiveness of Third-Party Solution
Summary
Overview
Jurisdiction | The United Kingdom |
PET and related technique | Differential privacy, Synthetic data |
Industry | Financial and insurance services |
Use case archetype | Disclosure-controlled release |
Implementation status | Production |
Cross-border | No |
Actors involved | Company |
Reporting Basis | Regulator: The Information Commissioner's Office |
Authority position | Referenced in guidance |
Challenge addressed using PETs
Nationwide Building Society planned to use a third-party solution to predict vulnerable individuals based on their income and spending patterns, to provide appropriate support to them. However, customer transaction data is sensitive, and sharing it with a third-party introduces security risks, and does not comply with the data minimisation principle. Existing approaches to sharing customer transaction data with third parties involved lengthy governance, privacy reviews, and security controls. Traditional approaches such as masking reduced data utility, was resource-intensive, and could still pose re-identification risks. Furthermore, those approaches could take six months or longer.
Solution involving PETs
The proposed solution that was deployed in the United Kingdom was designed to preserve behavioural fidelity for transaction analysis, reduce data-preparation time from months to days, safely share data with third parties, accelerate innovation, reduce governance overhead, lower privacy risk, and improve support for vulnerable customers. Three actors are involved in this solution:
- Nationwide Building Society owns and processes real/customer data; uses Hazy’s (now SAS Data Maker) platform to generate synthetic data from real/customer data and uses synthetic data to test third-party solutions while protecting privacy.
- Hazy (now SAS Data Maker) supplies the synthetic data generation platform installed on RetailBank’s premises; does not access or see any real/customer data.
- Third-party company provides a tool to identify vulnerable individuals; only has access to synthetic data for testing, not real/ customer data.
Synthetic transaction data was generated from real customer data using the platform from Hazy (now SAS Data Maker) with differential privacy protections. The real customer dataset used as input consisted of more than 50,000 customers, 100,000 accounts and approximately 50 million transactions covering 18 months. This dataset included customer identifiers, account details, transaction amounts and merchant information. Such a dataset was too sensitive to share with third parties.
Synthetic dataset generation was performed on-premise. The process included centralised differential privacy deployment with user-account privacy unit and epsilon=5. The output synthetic data contained a single multi-table synthetic dataset, generated from 18 months of historical customer data, was released to the third-party company for testing purposes.
The solution was designed to address risks including data leakage, re-identification, linkage attacks, and unnecessary exposure of production customer records during third-party testing. The synthetic data, which served as a drop-in replacement for real customer data, enabled a third party to analyse customer behaviour and validate vulnerability-detection capabilities without accessing actual customer data.
Nationwide Building Society assessed synthetic data against other approaches such as masking and focused on preserving analytical utility while reducing privacy risk. Key concerns included preservation of statistical relationships, referential integrity, re-identification and security risks.
Nationwide Building Society integrated synthetic data generation into its third-party onboarding process. The organisation standardised governance and contractual processes around synthetic data sharing and evaluated the complete workflow from use-case identification to partner analysis.
The success of this solution was measured through extensive utility testing, including comparison of distributions, account balances, transaction counts, mutual information between variables, machine learning classification tasks, feature-importance analysis and time-series autocorrelation. Furthermore, an interactive A/B comparison tool was developed to compare real and synthetic datasets.
Technical Details
Two models used in the solution
This solution uses autoregressive model and PrivBayes network model. Individual-level transactions are modelled using a conditional Autoregressive model with added noise, but without formal differential privacy guarantees. While autoregressive model handles time-series data effectively, the use of DP-SGD (Differentially Private Stochastic Gradient Descent) would have reduced utility to an unacceptable level, and hence differential privacy was not used in this part of the solution.
The PrivBayes network model constructs a Bayesian network to break down the high-dimensional joint distribution of the dataset (Customers and Accounts tables) into low-dimensional conditional distributions. It involves two main steps:
- an Exponential mechanism to add edges based on noisy mutual information scores, spending half of the privacy budget at this step.
- a Laplace mechanism to generate noisy contingency tables (spending the other half of the privacy budget), which are normalized into consistent conditional distributions and used for synthetic data generation.
PrivBayes network offers a strong balance between utility, privacy, computational efficiency, scalability, and interpretability.
Implementation details
Preprocessing:
- Personal data like real account/transaction/merchant IDs, and merchant names were discarded; random synthetic IDs/names in a similar format were generated.
- Numerical data in the Customers and Accounts tables was discretised as required for PrivBayes models, which operate on discrete/categorical data. After generation, the values are transformed back to numerical data by randomly sampling from the discretized bins.
- The data was normalised in the Transactions table as required for the Autoregressive model, which operate on continuous data. After generation, the values are scaled back to their original bounds.
Hyperparameter Tuning: Several models are trained using different levels of to determine the optimal balance of identifiability and utility. Epsilon = 5 is chosen as it fulfills the intended purpose while minimizing identifiability in the synthetic data, excluding discarded models from the final accounting.
Post processing: negative values were clipped; implausible records were removed; logical consistency of the synthetic data was checked.
Differential privacy details
Sequential composition: Two PrivBayes network models are trained sequentially. One on Customers table and one on Accounts table (conditioned on Customers). Since the datasets overlap, sequential composition was used, and the total privacy budget is epsilon 5.0 = 2.5 + 2.5).
Group privacy: To account for the one-to-many relationship between Customers and Accounts, the number of accounts per customer is bounded to 5 in the second PrivBayes network model, ensuring privacy loss accounting under group privacy.
Outcomes and lessons learned
Synthetic data preserved behavioural and temporal transaction patterns sufficiently for third-party analytics testing. Benefits included reducing data-preparation time from months to days, increasing innovation throughput, reducing staff effort, lowering data sharing risk, and enabling faster partner engagement and project delivery.
Relevant legislation
Resources
- Use case referenced in the UK ICO guidance on privacy-enhancing technologies
- Hazy: Synthetic Data to fuel Rapid Innovation
- PrivBayes: Private Data Release via Bayesian Networks, ACM Transactions on Database Systems 2017
- Using GANs for Sharing Networked Time Series Data: Challenges, Initial Promise, and Open Questions, Proceedings of the ACM Internet Measurement Conference 2020
- Payment Card Industry Data Security Standard
- Open Banking framework
Related use cases
-
In February 2024, Israel’s Ministry of Health released privacy-preserving microdata derived from the 2014 National Registry of Live Births. The release used pure differential privacy to protect the privacy of mothers and newborns.Learn more
-
Kajima, in a proof of concept implementation, repurposed the data collected from its inhabitants by using it to generate synthetic data, which was to be shared with researchers.Learn more