Mitigation Catalogue

A practical catalogue of controls for the safe release of trained AI/ML models from a TRE — drawn from the GRAIMATTER Green Paper's technical, legal and governance recommendations, organised by what each control actually does.

Partner logos
Overview

What this catalogue is for

The GRAIMATTER Green Paper sets out 17 technical, 11 legal/ethics and several process recommendations for releasing trained ML models from a TRE without disclosing personal data. Rather than reading the report phase-by-phase, this page groups every control by what it actually does — so you can find the right mitigation for a specific risk quickly.

How to use this page

Controls are tagged by category: MDC reduces the risk that personal data is encoded in the model itself, MQC restricts access to the model after release, Legal covers contracts and licences, and Process covers governance and organisational steps. Most real projects combine controls from more than one category.

Figure 2

MDC vs MQC at a glance

GRAIMATTER groups all mitigation into two families. Both are legitimate; the right choice depends on the project, the Data Controller's risk appetite, and how the model needs to be used.

MDC

Model Disclosure Controls

The model itself is checked and, where necessary, modified until the TRE is confident it is anonymous — then it can be released openly.

  • Supports peer review, reproducibility and open re-use
  • Needs TRE staff to understand the training process and run attack simulations
  • Techniques like differential privacy can reduce model accuracy
MQC

Model Query Controls

The model may still contain personal data, but access is restricted (e.g. a secure web service) so end-users only ever see anonymous results.

  • Can allow a more accurate, less-restricted model
  • Only defends against black-box attacks — the model itself is never exposed
  • Someone must fund and maintain the access-control service long-term

Many projects combine both — for example, a model trained with mild MDCs, then additionally hosted behind a query-limited web service as a second layer of defence.

Model Disclosure Controls · 1 of 4

Training-time privacy techniques

Controls applied while the model is being trained, to reduce how much it can memorise about individual records.

TECH 11 · 12MDCDifferentially private training▸

Use a DP variant of the training algorithm where one exists (e.g. DP-SGD, DP-SVM). This gives a mathematical bound on how much any single record could have influenced the released model.

Best for: instance-based models, deep learning, or anywhere memorisation is the main risk. Trade-off: reduces accuracy, especially at low epsilon; the random seed for the final release must be chosen by TRE staff — never by comparing multiple runs and picking the best-performing one, which would break the DP guarantee.

TECH 11MDCTrain on aggregated / binned data▸

De-identify the training data first — e.g. by achieving k-anonymity through aggregating individuals or binning disclosive features — so no single row can be encoded in the model.

Best for: instance-based models where no other option is workable. Trade-off: rarely practical for complex data; the resulting model still needs checking for class disclosure and small-group risk.

TECH 11 · 15MDCTrain on DP-generated synthetic data▸

Generate synthetic data with a provably differentially private mechanism, then train the model on that instead of the real records. An instance-based model trained this way only ever "contains" synthetic points.

Best for: instance-based models as a last resort. Trade-off: only as safe as the generator itself — an overfitted synthetic data generator can simply reproduce real records, so it needs the same disclosure-control scrutiny as a predictive model.

MDCAnti-overfitting techniques▸

Regularisation, dropout, and data augmentation all reduce a model's tendency to memorise individual training records — closely linked to vulnerability to membership inference.

Best for: any model, especially deep learning and federated learning. Trade-off: in some settings this offers a better accuracy/privacy trade-off than differential privacy alone, but it is not a substitute for empirically testing the trained model with attack simulations.

Model Disclosure Controls · 2 of 4

Safe wrappers & hyperparameter constraints

Tooling that catches risky choices automatically, before a researcher ever requests release.

TECH 9 · 10MDCSafe Wrapper classes▸

Drop-in replacements for standard ML library classes (scikit-learn, TensorFlow) that enforce safe hyperparameter ranges, snapshot the model to detect tampering between training and release, and auto-generate a risk report when the researcher calls request_release().

Best for: any project — cuts the number of round-trips between researcher and TRE. Trade-off: needs a maintained, TRE-specific constraints file; doesn't remove the need for attack simulation, just streamlines it.

TECH 10MDCCentralised constraints file▸

Hold every "unsafe" hyperparameter combination in one human- and machine-readable file (e.g. rules.json), with write access limited to TRE administrators, rather than relying on researcher training materials that can go stale.

Best for: TREs supporting multiple ML projects over time. Trade-off: needs periodic review as new research identifies newly-risky configurations.

Model Disclosure Controls · 3 of 4

TRE output checks before release

The checklist TRE staff run against a specific trained model before it's approved for egress.

TECH 8ProcessStandardised data dictionary▸

Researchers describe a model's inputs, pre-processing, data splits and outputs in a standard format, so TRE staff can run automated inference-attack checks without reverse-engineering the pipeline.

Best for: every ML release. Trade-off: adds documentation work up-front, but pays for itself in faster checking later. See Appendix C of the Green Paper for a template.

TECH 6ProcessSet-aside / held-out data▸

Keep a slice of the data back from researchers entirely, so TRE staff have genuinely unseen data to run attack simulations against.

Best for: any project using attack-simulation MDCs. Trade-off: TRE staff need to understand the row structure (e.g. one row per episode vs per patient) to hold back data correctly — this matters especially for episodic health data.

TECH 7.2MDCPerformance check against held-out data▸

Compare the model's performance as reported by the researcher against its performance on the TRE's held-out data. A large gap suggests overfitting — and overfitting is a strong predictor of disclosure risk.

Best for: every release. Trade-off: flags large discrepancies well, but won't catch subtle overfitting on its own.

TECH 7.3MDCModel file size check▸

A trained model's file size should be orders of magnitude smaller than the training data. A similarly-sized file is a strong signal the training data has been embedded — some libraries do this by default for reproducibility (e.g. R's glm()).

Best for: every release, especially non-neural-network models. Trade-off: doesn't apply cleanly to some large neural networks, which can legitimately have more parameters than training rows.

TECH 7.4MDCCode review ("eyeballing")▸

TRE staff inspect the training code for accidental poor practice — such as storing raw data inside the model — and confirm the code matches what the researcher's report describes.

Best for: every release. Trade-off: needs TRE staff with genuine ML literacy, not just traditional statistical disclosure control experience.

TECH 7.5MDCAccepted file-type allowlist▸

Only release models in open, inspectable formats (e.g. ONNX, or standard scikit-learn/TensorFlow/Keras exports). Reject proprietary "run-only" formats that can't be examined.

Best for: every release.

TECH 7.6MDCAttack simulations (MIA / AIA)▸

Run membership-inference and attribute-inference attacks against the model using the training data plus the held-out set, following the GRAIMATTER worst-case methodology (see Appendix G).

Best for: every release requiring MDC. Trade-off: computationally expensive for some model types; needs specialist skills that can be pooled or shared across a network of TREs.

TECH 7.7MDCCheck extreme-value metrics, not just averages▸

Don't rely solely on aggregate metrics like accuracy or AUC. Also check metrics that target the extremes of the model's confidence (e.g. true positive rate at a fixed, low false positive rate) — a model can look safe on average while still leaking a handful of records with very high confidence.

Best for: every attack-simulation review.

Model Disclosure Controls · 4 of 4

Special model-type treatments

Some model architectures need handling that goes beyond the standard checklist.

MDCInstance-based model restriction▸

Standard KNN, SVM, Gaussian Process and similar models directly embed training rows and are essentially never safe to release in their default form.

Best for: flagging at the project design stage, before training even starts. Trade-off: none of the standard fixes (DP, aggregation, synthetic data) are free — all reduce accuracy to some degree.

TECH 13MDCEnsemble-specific checks▸

Check both the overall ensemble and every base model inside it — a safe ensemble can hide unsafe base models, and vice versa, so neither can be assumed safe from the other.

Best for: random forests, boosting, super-learners and similar. Only matters when an attacker can see inside the model (white-box); irrelevant if they can only query the ensemble.

TECH 14MDCFederated learning vulnerability testing▸

Test each site's local model for disclosure risk before it's aggregated — the central site never has access to any single site's raw data, so it can't test the final aggregated model directly. Release only once every site's local attack simulations pass.

Best for: any federated or multi-TRE training setup.

TECH 15MDCTreat synthetic data generators as personal data▸

A released synthetic data generator encodes a full joint distribution over the data, not just a conditional prediction — so its potential to leak information is higher, not lower, than an equivalent predictive model's, and it deserves the same scrutiny.

Best for: any project proposing to release a synthetic data generator alongside, or instead of, a predictive model.

Model Query Controls

Restricting access after release

Rather than checking the model itself, these controls restrict what an end-user can do with it once it leaves the TRE.

TECH 16MQCSecure web service▸

Host the model behind an API that returns only predictions, never the model itself. Can restrict by IP address, log every query for anomaly detection, and cap the number of queries within a time period. Can be run by the TRE, a trusted third party, or the researcher's organisation.

Best for: high-value or higher-risk models that still need to remain usable. Trade-off: someone has to fund and maintain the service long-term.

TECH 16MQCQuery-limiting software controls▸

Embed the model inside software — e.g. a medical device — that enforces who can query it and how often.

Best for: deployment into a controlled product. Trade-off: software-level restrictions are comparatively easy to reverse-engineer next to a hosted web service.

TECH 17MQCExternal penetration testing of query controls▸

Have an external party test that query-limiting controls can't be circumvented — the same way TREs are already regularly penetration-tested for other purposes.

Best for: any MQC deployment, scaled to the model's risk level.

Governance & process

Organisational controls

Controls that shape how a project is planned, staffed and documented — often cheaper than technical fixes if put in place early.

TECH 1ProcessEarly risk discussion between researcher and TRE▸

Agree at proposal stage which attributes count as personal, whether group disclosure is a concern (e.g. attributes linked to social factors such as sexuality or religion), and what the checking process will look like — before any training happens.

Best for: every project, at the earliest possible stage.

ELA 8ProcessRisk-based project categorisation▸

Scale the intensity of controls to genuine risk rather than applying the same checks to every project — see the risk-based approval matrix below for GRAIMATTER's worked example.

Best for: TREs handling a range of project types and risk levels.

TECH 3ProcessPipeline / model snapshotting for audit▸

Store the exact code, data version and pipeline used to produce the approved model, so it can be reproduced if questions arise later — sometimes a regulatory requirement (e.g. 15 years for a certified medical device).

Best for: every approved release; especially important where the model may become subject to future regulation.

TR 1–4 · C 5ProcessRole-specific training for all stakeholders▸

Researchers, TRE staff, and Data Governance/Ethics Committee members each need a different depth of training — from introductory awareness to hands-on attack-simulation skills.

Best for: every stakeholder group. Trade-off: TREs don't need to build this expertise from scratch — it can be shared across a network of TREs or outsourced where volume is low.

ELA 8 · Table 1

Risk-based approval matrix

GRAIMATTER's worked example of how release method and attack-simulation outcome combine to determine overall risk — useful as a starting template for a TRE's own risk appetite.

  Model openly available, shared openly Model embedded in software with legal controls around hacking Model embedded in software with legal controls + query limits Model only accessible via a secure web-server with query & user limits
Passes attack simulations & TRE checks Caution Safe Safe Safe
Passes attack simulations & TRE checks + Safe Wrappers used Caution Safe Safe Safe
Fails attack simulations / TRE checks Unsafe Unsafe Unsafe Safe
Differentially private instance-based model Safe Safe Safe Safe
Standard instance-based model (e.g. SVM) Unsafe Unsafe Unsafe Safe

Read across a row to see how tightening query controls (moving right) can compensate for a weaker model-level guarantee — and down a column to see that no query control fully substitutes for a model that outright fails its checks, other than the most restrictive secure web-server option.

Further reading

Source & related tooling

This page summarises practical controls from the GRAIMATTER Green Paper. Consult the original report for full experimental detail, worked examples and legal draft clauses.

Primary source

Jefferson E, Reel S, et al. DARE UK Green Paper: Recommendations for disclosure control of trained Machine Learning (ML) models from Trusted Research Environments (TREs). GRAIMATTER, Zenodo, 2022.

Tooling referenced

  • SafeModel / AI-SDC — Safe Wrapper implementations for scikit-learn and TensorFlow models, plus the attack-simulation toolkit (github.com/AI-SDC/AI-SDC).
  • SACRO-ML — the successor disclosure-control package referenced in RELEASE-AI for self-assessment before requesting release.
  • ICO AI and data protection risk toolkit — UK regulatory guidance on assessing AI/data-protection risk.
  • Ada Lovelace Institute algorithmic impact assessment — a further input recommended alongside a DPIA for higher-risk models.

GRAIMATTER was funded by UK Research & Innovation as part of Phase 1 of the DARE UK programme, delivered in partnership with HDR UK and ADR UK.

↑ Back to top