Leave-one-out distinguishability (LOOD) in machine learningLeave-one-out Distinguishability in Machine Learning
The authors propose using Gaussian processes to analytically compute leave-one-out distinguishability (LOOD) to quantify data memorization and leakage, and state that it correlates with membership inference attack performance and is over 140 times faster than retraining.
- Measuring the influence of a certain training datum on model predictions (memorization, influence functions, information leakage) usually requires many leave-one-out retrainings, which is computationally expensive and makes it hard to analyze which queries leak the most and which architectural factors affect leakage.
- The authors propose leave-one-out distinguishability (LOOD): using KL divergence to measure the difference in model predictive distributions on two training sets differing by only one record, computed analytically with a neural network Gaussian process (NNGP) to avoid retraining; further, they find the maximum-leakage query by optimizing LOOD, and analyze the effect of activation functions on leakage from the low-rankness of the kernel matrix.
- The authors report that LOOD is highly correlated with membership inference attack AUC (Figure 1a), that mean distance LOOD matches the leave-one-out retraining prediction difference (Figure 1c), and that the analytical estimate is over 140 times faster than retraining; queries obtained by optimizing LOOD visually reconstruct the differing data, and leakage is approximately maximal when the query equals the differing data; the authors also state that GeLU leaks more than ReLU.
- The authors state that future directions include using LOOD to analyze other factors such as the training data distribution, extending to Shapley value estimation, and generalizing the leave-one-group-out results to practical reconstruction scenarios where the attacker holds no training data. Experiments are limited to the 'car'/'plane' subsets of CIFAR-10 and fully connected/CNN architectures; the main text and caption of Figure 5 state the opposite regarding which of ReLU and GeLU has higher LOOD.
- Threat model
- Black-box setting: the attacker observes the model's predictive distribution on a query set Q and infers whether a certain record S is in the training set (membership inference); in reconstruction experiments the attacker knows all training data except one record (or a group), and finds the maximum-leakage query by optimizing LOOD to reconstruct that record.
- Evaluated models
- NNGP (Neural Network Gaussian Process)fully connected neural network trained via SGD
- Benchmarks
- CIFAR-10('car' 与 'plane' 子集)一维 toy 正弦数据集
- Metrics
- LOOD(KL 散度)mean distance LOODMIA AUCPearson 相关系数
The researchers propose the leave-one-out distinguishability (LOOD) analysis framework, which quantifies the change in the output distribution of a machine learning algorithm after adding a small number of data points to the training set, and is used to measure data memorization, information leakage, and the influence of training data points. The method models the randomness of the machine learning algorithm with Gaussian processes and conducts extensive empirical validation of leakage through membership inference attacks. The framework can be used to analyze the causes of leakage and locations of high leakage, for example analyzing the effect of activation functions on data memorization; it can also identify the queries that leak the most training data information under the leave-one-out setting, and show how the optimal query can be used to accurately reconstruct training data.
Paper analysis
What problem does this paper attempt to solve?
How to analytically quantify the influence of one training data point on the model predictive distribution (memorization, influence, leakage) without retraining, and analyze where leakage is greatest.
Core question: how to efficiently and analytically quantify the change in the model's output distribution after adding/removing one (or a group of) training data, thereby measuring data memorization, influence functions, and information leakage.
- Problem setting: when the model's prediction for a data point mainly comes from its own presence in the training set (i.e., memorization), an attacker can infer whether that point is in the training set by observing predictions (membership inference attack), causing sensitive information leakage.
- Shortcomings of existing methods: the authors state that empirical methods (leave-one-out retraining, first-order approximation of influence functions, MIA measurement) suffer from approximation error, modeling error, high computational cost (requiring training hundreds to thousands of models), and unstable experiments; the correlation between influence function approximation and leave-one-out retraining degrades on deep networks (Figure 2 of Koh & Liang 2017 and Figure 1c of this paper).
- Core observation: influence, memorization, and leakage can be unified as the same object—the statistical distance between the output distributions of a (randomized) training algorithm on two training sets that differ by only a few data points, which the authors call leave-one-out distinguishability (LOOD).
- What the paper proposes: model the neural network output distribution with a Gaussian process (GP/NNGP) and analytically compute LOOD; and give an algorithm that optimizes LOOD to find the maximum-leakage query, a data reconstruction attack, and a theoretical analysis of the effect of activation functions on leakage.
- Threat model (as stated in the paper):
- Goal: infer whether a record S is in the training set (MIA), or reconstruct S itself.
- Knowledge: black-box setting, where the attacker observes the model's predictive distribution on a query set Q; in the reconstruction setting the attacker knows all training data except one (or a group of) records (consistent with the assumptions of Balle et al. 2022 and Guo et al. 2022).
- Capability: choose the query Q (optimizable), observe the predictive distribution.
- Victim system: GP/NNGP models and SGD-trained neural networks.
What related research exists?
The paper unifies four lines—influence functions, memorization measurement, membership inference, and differential privacy—as LOOD, and directly compares with influence function and TracIn.
Influence estimation and memorization measurement
- Koh & Liang (2017), Koh et al. (2019): influence functions, using first-order Taylor approximation and Hessian estimation to avoid retraining; the paper points out that their approximation quality degrades on deep neural networks (Figure 1c is used as a comparison baseline).
- Feldman (2020), Feldman & Zhang (2020), Zhang et al. (2021): the memorization (self-influence) definition and the use of boosting-type techniques to reduce the number of retrainings; the paper points out that hundreds to thousands of models are still required and estimation quality degrades. This paper's mean distance LOOD recovers this definition when the query equals the differing data.
- Steinhardt et al. (2017): influence analysis in data poisoning robustness.
Membership inference and leakage measurement
- Shokri et al. (2017): membership inference attack (MIA); Ye et al. (2022), Carlini et al. (2023), Zarifzadeh et al. (2023): the paper uses their experimental settings to validate the correlation between LOOD and MIA performance.
- Steinke et al. (2024), Jagielski et al. (2020), Nasr et al. (2021, 2023), Wen et al. (2022): tight privacy auditing via MIA requires constructing worst-case queries, which the paper calls an open problem; this paper uses optimizing LOOD to provide an efficient alternative.
Differential privacy
- Dwork et al. (2006), Mironov (2017), Balle et al. (2018), Dong et al. (2019): DP gives a worst-case (white-box) privacy loss upper bound across all datasets; the paper points out that DP bounds cannot measure the risk of a specific data point under a specific query, and LOOD is complementary to it, being closest to Rényi DP (α→1).
Training data reconstruction
- Balle et al. (2022), Guo et al. (2022), Haim et al. (2022): reconstruct training data under the assumption that the attacker knows all training data except one record; this paper's reconstruction attack follows this assumption, and states that the leave-one-group-out setting corresponds in the limit to the difficult scenario of Haim et al. (2022).
NNGP and activation function analysis
- Lee et al. (2017), Schoenholz et al. (2016, 2017), Novak et al. (2018), Yang (2019): wide neural network outputs converge to a Gaussian process (NNGP), on which this paper bases its analytical modeling.
- Hayou et al. (2019, 2021), Schoenholz et al. (2017): the NNGP kernel is sensitive to the activation function (Proposition G.1), on which this paper bases its derivation that the ReLU kernel is closer to a low-rank matrix.
Baselines and benchmarks: the comparison methods are influence function (Koh & Liang 2017) and TracIn (Pruthi et al. 2020); the experimental benchmarks are the 'car'/'plane' subsets of CIFAR-10 and a one-dimensional toy sine dataset.
Authors' positioning: LOOD unifies the above concepts as different instances of the same statistical distance, and analytical computation enables it to answer questions that empirical methods struggle to answer (which query leaks the most, how architecture affects leakage).
How does the paper address this problem?
Use NNGP to analytically compute the KL divergence between the predictive distributions on two leave-one-out training sets (LOOD), then perform gradient optimization on the query to find the maximum leakage point.
Overall idea: model the randomness of the training algorithm as a Gaussian process, so that "the change in the predictive distribution after adding/removing one data point" can be computed analytically, then perform theoretical analysis and gradient optimization on this objective. The framework is called leave-one-out distinguishability (LOOD).
Problem formalization
- Let D and D′ be two training sets that differ only by a set S (D′ = D ∪ S), and let f_D(Q) be the distribution of model predictions on training set D and query set Q (probability taken over the randomness of the training algorithm).
- LOOD is defined as the statistical distance between the two predictive distributions: LOOD(Q; D, D′) := dist(fD(Q), fD′(Q)), and the paper mainly uses KL divergence.
- Taking mean distance recovers influence function and memorization (self-influence); taking KL divergence corresponds to black-box information leakage, and the power of MIA is controlled by an upper bound via the likelihood ratio test.
Analytical computation with GP/NNGP
- A GP is specified by a mean function and a kernel function K; given noisy labels y_D = f(D) + N(0, σ²I), GP regression gives a posterior Gaussian distribution at the query points, with closed-form mean and covariance.
- NNGP: the output of an infinitely wide neural network at initialization converges to a GP, with kernel K(x,x′) = E_θ⟨f_θ(x), f_θ(x′)⟩; the paper replaces gradient training with the GP regression posterior of the NNGP to analytically compute LOOD.
- Appendix C argues that KL divergence is better than mean distance: mean distance contains only first-order information, is additive over queries, and inflates with the query norm under homogeneous kernels; KL divergence contains second-order (variance) information and is scale-invariant, and correlates more strongly with MIA AUC (Figure 6).
Optimizing LOOD to find the maximum-leakage query
- In the single-query, single differing point setting, solve arg max_Q LOOD(Q; D, D′), using Adam to optimize this non-convex objective.
- Theorem 4.1: under weak regularity conditions (K(x,x)=1 and the kernel distance is stable when the two data are equal), the differing data itself is a stationary point of LOOD (zero gradient); Appendix D.2 proves that the RBF kernel and the NNGP kernel on the sphere satisfy this condition.
- This optimization is used as a data reconstruction attack: the optimized query visually approximates the differing data; the method is extended to multi-query and leave-one-group-out settings (Appendix E).
Influence analysis and activation functions
- Proposition 5.1 gives the gradient expression of mean distance LOOD at Q=S: the gradient is close to 0 when S is far from D (K_SD≈0) or is perfectly predicted by D; between the two the gradient is nonzero, i.e., the differing data is generally not the optimal query for mean distance LOOD (Appendix F gives a Hessian analysis: it is a local maximum when S is sufficiently far).
- Proposition 6.1: the closer the kernel matrix is to a low-rank all-constant matrix (the smaller h(α_min)), the smaller the LOOD upper bound under the worst query; combined with Proposition G.1 (the NNGP kernel of ReLU is closer to low-rank than smooth activations such as GeLU), the authors conclude that smooth activations leak more than non-smooth activations.
What experiments did the paper conduct?
Validate the correlation of LOOD with MIA and leave-one-out retraining on CIFAR-10 subsets, demonstrate query optimization for data reconstruction, and compare the leakage of ReLU and GeLU.
Experimental setup
- Models tested: NNGP (RBF kernel, the NNGP kernel corresponding to a fully connected network, depth 1–10; additionally the NNGP corresponding to a depth-5 CNN); SGD-trained fully connected neural networks (depth 10, width 1024 for Figure 5).
- Datasets: the 'car' and 'plane' classes of CIFAR-10 (Figure 1a uses a class-balanced subset of 1000; Appendix E.1 uses a larger dataset of 10000; Figure 10 uses 500, 50 per class); a one-dimensional toy dataset (x∈[−5,5], y=sin(x)).
- Baselines: influence function (Koh & Liang 2017), TracIn (Pruthi et al. 2020), both using the leave-one-out retraining prediction difference as ground truth.
- Metrics: LOOD (KL divergence), mean distance LOOD, MIA AUC, Pearson correlation coefficient (with p-values).
- Sample sizes: Figure 1a uses 200 random differing data; Figure 1b/1c use 90 random differing data, with MIA evaluated on the NN over 50 models each for D and D′, and on the NNGP by sampling 5000 samples from the two Gaussian distributions; Figure 4 statistics use 70 differing data; Figure 5 uses 500 differing data (20 visualized).
- Number of repetitions: the leave-one-group-out experiments in Appendix E.2 consist of 10 rounds, with 10 independent optimizations per round.
Main results
The paper has no main results summary table; the key quantitative results are as follows (all from figure captions and the main text):
Swipe horizontally to read the table
Experiment Setting Result Source Correlation between LOOD and MIA NNGP, 200 differing data Authors state strong correlation (scatter plot, no numerical value) Figure 1a MIA consistency between NNGP and NN 90 differing data Authors state strong correlation (scatter plot, no numerical value) Figure 1b mean distance LOOD vs leave-one-out retraining 90 differing data, normalized to [0,1] Authors state mean distance LOOD has the highest correlation (legend reports Pearson r and p-values; converted text has no numerical values) Figure 1c Computational efficiency Figure 1b setting Retraining 100 GPU hours vs LOOD 40 GPU minutes, authors state over 140× speedup Footnote 6 Query location of maximum leakage 70 differing data Perturbation scale at maximum leakage: x = 0.000 ± 0.000 for NNGP, x = −2.375 ± 5.978 for NN Figure 4b/4c - Authors' interpretation: LOOD faithfully reflects information leakage in the MIA sense; NNGP leakage can represent the leakage of the corresponding SGD neural network; the analytical estimate reduces computation while maintaining correlation.
Query optimization and data reconstruction
- What was tested: using Adam to optimize the LOOD objective (single query), observing the relationship between the optimized query and the differing data (CIFAR-10 'car'/'plane', NNGP kernel, 10-layer FC + ReLU).
- Results: the authors state that optimized queries usually recover the differing data with high visual accuracy (Figure 2a, Appendix Figure 14–19, 500 cases in total); Figure 2c reports statistics over 500 runs of the predictive KL divergence between the optimized query and the differing data (histogram x-axis 0.000–0.075; converted text has no per-bar values). Counterexamples exist: in Figure 2b the optimized query has a clearly lower LOOD than the differing data but is still visually similar (the authors state this may be because LOOD is non-convex).
- Leave-one-group-out: with 3 differing records, 80% converged over 10 rounds × 10 optimizations; the record with the highest single-query LOOD within the group was recovered in 61% of cases, and the lowest in only 8% (Appendix E.2).
Effect of activation functions on leakage
- What was tested: on CIFAR-10 'car'/'plane', fully connected network NNGPs of depth {2,4,...,10}, 500 random differing data, comparing the LOOD of ReLU and GeLU; additionally, MIA AUC was used to compare the two activations on an SGD neural network of depth 10 and width 1024 (Figure 5).
- Results: the main text states "at fixed depth, ReLU's LOOD is more than 1.1× higher than GeLU's (95% of cases)", but the conclusion on the same page and the Figure 5 caption state that GeLU leaks more; the two statements are opposite, and taking the figure caption and theoretical analysis (Proposition G.1, 6.1) as authoritative, the authors argue GeLU is higher. The authors also state that the LOOD gap between the two activations grows with depth.
- Authors' interpretation: consistent with Proposition G.1 (the ReLU kernel is closer to low-rank) and Proposition 6.1 (a low-rank kernel implies low LOOD), and suggests a privacy-accuracy trade-off in activation choice.
Other ablations and analyses
- Multi-query: multi-query optimization with q = 1,2,4,8 yields LOOD no higher than that of a single differing data in all trials (Appendix E.1, 500 leave-one-out datasets, larger dataset of 10000, depth 2–10).
- Data-dependent normalization: when normalizing with training-set statistics, there exist optimized queries with LOOD higher than the differing data itself (Appendix D.4, Figure 10, 500 training data, NNGP of a depth-5 CNN).
- Optimal queries for mean distance LOOD: on the toy dataset and CIFAR-10 (1000, RBF kernel), the optimized query can differ from the differing data; in 50 trials, over 50% of optimized queries have MIA AUC more than 0.025 lower than the differing data (Appendix F.3, Figure 13).
What are some points that can be further explored?
The authors list extension directions (other factors, Shapley values, practical reconstruction scenarios); experiments focus on a CIFAR-10 binary classification subset and FC/CNN architectures.
Limitations and future directions noted by the authors
- Use LOOD to analyze the effect of other factors (such as training data distribution, architecture choice) on information leakage (Section 7 Future Works).
- Extend the framework to other concepts closely related to leave-one-out distinguishability, such as Shapley value in data valuation (Section 7 Future Works).
- Extend the results of the leave-one-group-out setting to practical reconstruction attack scenarios where the attacker holds no training data, which the authors call a "promising open problem" (Section 4).
- Design image similarity metrics that go beyond RGB values and are suitable for such reconstruction, as the authors state that existing metrics (per-pixel distance, SSIM, LPIPS) cannot reflect visual similarity in their setting (Footnote 7).
- Appendix F.2 points out that Lemma F.2 and F.4 are meaningful for computationally searching for the "worst poisoning point": when S is sufficiently far, M(S) can be used as a lower-bound estimate of max_Q M(Q) (listed as a future work implication).
Scope of experimental coverage
- All image experiments are on the 'car' and 'plane' class subsets of CIFAR-10 (three scales: a class-balanced subset of 1000, a larger dataset of 10000, and 500 with 50 per class), plus a one-dimensional toy sine dataset.
- The models tested are the NNGP corresponding to fully connected networks (depth 1–10), the NNGP corresponding to a depth-5 CNN, and an SGD-trained fully connected network (depth 10, width 1024); the paper does not report experiments on larger architectures (such as ResNet, Transformer).
- Leakage is judged by MIA AUC, training 50+50 models per setting on the NN; beyond the specific attack algorithm implementation details, the paper does not report multiple repetitions or confidence intervals (Figure 4 reports mean ± standard deviation).
- The theoretical conclusions (Theorem 4.1, Proposition 6.1) rely on kernel regularity conditions and GP modeling; Appendix B explains that NNGP characterizes random initialization and early training stages, and that a performance gap exists between the trained NN and the NNGP.
- The main text and caption of Figure 5 state the opposite regarding which of ReLU/GeLU has higher LOOD, and the paper does not clarify this in the text.
Summarize the main content of the paper
LOOD unifies memorization, influence and leakage as the statistical distance of the leave-one-out predictive distribution, computes it analytically with NNGP, and supports finding the maximum-leakage query and reconstructing data.
An analysis framework paper on measuring training data influence and leakage (ICLR 2024).
- Problem: quantifying the influence of one training data point on model predictions (memorization, influence, information leakage) traditionally relies on extensive leave-one-out retraining, which is expensive and hard to analyze.
- Method: the authors propose LOOD—the statistical distance (mainly KL divergence) between the model predictive distributions on two training sets that differ by only one (or a group of) data points; NNGP is used to model neural network outputs as a Gaussian process, making LOOD analytically computable. The mean distance version of LOOD recovers the influence function and memorization definitions.
- Validation results: the authors report that LOOD is strongly correlated with MIA AUC (Figure 1a, 200 differing data), that NNGP and SGD neural networks show consistent MIA performance (Figure 1b), that mean distance LOOD correlates with the leave-one-out retraining prediction difference more than influence function and TracIn (Figure 1c); and that the analytical estimate is over 140× faster than retraining (100 GPU hours vs 40 GPU minutes, Footnote 6).
- Maximum-leakage query: Theorem 4.1 proves that under weak regularity conditions the differing data is a stationary point of LOOD; in experiments, on 70 differing data the perturbation at the maximum NNGP leakage is x = 0.000 ± 0.000 (Figure 4b); queries optimized for LOOD visually reconstruct the differing data (500 cases, Figure 14–19), and in the leave-one-group-out setting the reconstruction rate for the records with the highest/lowest single-query LOOD is 61%/8% (Appendix E.2).
- Architecture analysis: Proposition 6.1 gives an upper bound showing that a low-rank kernel matrix implies low LOOD; combined with Proposition G.1, the authors conclude that smooth activations (GeLU) leak more than ReLU, and state that this suggests a privacy-accuracy trade-off in activation choice (verified in Figure 5, but the main text and the figure caption state the opposite).
- Authors' conclusion: estimating memorization, influence, and leakage is essentially the same LOOD estimation problem; the analytical framework can efficiently answer questions such as "which query leaks the most" and "how does architecture affect leakage", and supports training data reconstruction in leave-one-out/leave-one-group-out settings.
Related papers
- On the Privacy Risks of Model ExplanationsAttacksarXiv