Skip to content

(Token-level) InfoRMIA: Stronger membership inference and memorization evaluation for LLMs(Token-Level) InfoRMIA: Stronger Membership Inference and Memorization Assessment for LLMs

arXiv· arXiv:2510.05582· Jiashu Tao, Reza ShokriNational University of Singapore; Google ResearchIndexed by this site · 27 days ago· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors propose an information-theoretic version of membership inference attack, InfoRMIA, and a token-level framework; the authors claim it outperforms RMIA on tabular, image, and text datasets and requires no large-scale population data.

Threat modelMembership inference attack (MIA): an attacker or privacy auditor determines whether a given sample is in the target model's training set. InfoRMIA is an offline attack that uses reference models and population data; the token-level version treats other tokens in the vocabulary as the population, requiring no separate population dataset.

Questions
LLMs are trained on nearly all human data, and memorizing training data brings privacy risks; before release, membership inference attacks (MIA) are needed to quantify privacy. The authors argue that the existing SOTA attack RMIA relies on a population dataset that grows linearly with the training set, and that sequence-level membership inference compresses rich token information into a single bit, losing granularity.
Methods
The authors treat the RMIA setup as a composite hypothesis testing problem, use the Bayes Factor to derive an information-theoretic test statistic, InfoRMIA, turning discrete counts into a continuous score and decomposing it into a memorization term and a KL divergence term. For LLMs, they further propose a token-level framework: compute InfoRMIA per token, use the remaining tokens in the vocabulary as the population, then aggregate into a sequence score, with an accompanying visualization interface.
Experiments and results
On Purchase100, CIFAR-10, and AG News in ML Privacy Meter, InfoRMIA's AUC and [email protected]%FPR are not lower than RMIA's, and results are unchanged when the population is reduced from 1000 to 100 (Table 1). The token-level version performs sequence-level inference on fine-tuned GPT-2 and MIMIR pretrained Pythia models, and the authors state it has the strongest TPR at low FPR; token analysis also finds that high sequence scores correlate weakly with private tokens.
Limitations and future work
The authors list downstream applications such as targeted unlearning and token-guided data reconstruction and extraction as future work (Conclusion). Experimental coverage: the sequence-level comparison uses offline attacks with 4 reference models; MIMIR uses only the Pythia series (160M–6.9B) and a single step-1 reference model; token-level aggregation evaluates only general methods such as averaging and min-k; the paper does not report number of repetitions or variance.
Experimental setupGPT-2、Pythia-160M et al. · Purchase100、CIFAR-10 et al. · AUC、TPR@1%FPR et al.
Evaluated models
GPT-2Pythia-160MPythia-1.4BPythia-2.8BPythia-6.9B
Benchmarks
Purchase100CIFAR-10AG Newsai4privacy (pii-masking-300k)MIMIR
Metrics
AUCTPR@1%FPR[email protected]%FPR
AI summaryThe paper proposes InfoRMIA, an information-theory-based membership inference method that consistently outperforms RMIA on multiple benchmarks while also improving computational efficiency. The authors point out that treating sequence-level membership inference as a gold standard for measuring leakage has limitations, and propose a new perspective of token-level signals and analysis. Token-based InfoRMIA can locate memorized tokens in generated outputs, refining leakage localization from the sequence level to individual tokens, while achieving stronger sequence-level inference capability on LLMs. The authors state that this perspective can support more precise mitigation measures, such as exact unlearning.

The paper proposes InfoRMIA, an information-theory-based membership inference method that consistently outperforms RMIA on multiple benchmarks while also improving computational efficiency. The authors point out that treating sequence-level membership inference as a gold standard for measuring leakage has limitations, and propose a new perspective of token-level signals and analysis. Token-based InfoRMIA can locate memorized tokens in generated outputs, refining leakage localization from the sequence level to individual tokens, while achieving stronger sequence-level inference capability on LLMs. The authors state that this perspective can support more precise mitigation measures, such as exact unlearning.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to perform membership inference more powerfully and at lower cost, and refine the measurement of LLM privacy leakage from the sequence level to the token level.

    Core problem: how to more accurately quantify LLM privacy leakage before release—both by having a stronger membership inference attack (MIA) and by refining leakage localization from the whole sequence to individual tokens.

    • Scenario and importance: The authors note that LLMs are now trained on nearly all available data, and even limited memorization translates into privacy risk, so quantifying privacy before release is more critical; MIA is the standard method for quantifying privacy, and a stronger attack indicates more leakage from the model.
    • Shortcomings of existing methods: The authors state that the SOTA attack RMIA relies on an independent population dataset whose size grows linearly with the training set (the rule of thumb in the RMIA paper is about 10% of the training set size), which is too costly for LLMs; moreover, sequence-level MIA compresses rich per-token information into a single bit, which the authors consider a lossy compression (Figure 1a).
    • Core observation: The authors argue that private information is usually concentrated in a few tokens, and averaging over the whole sequence is diluted by common words; in Figure 1b, the two sequences with the highest sequence-level scores mainly memorize non-private tokens.
    • What the paper proposes: (1) InfoRMIA, which turns the RMIA setup into a composite hypothesis test and an information-theoretically quantified continuous test statistic; (2) a token-level MIA framework and visualization interface that can locate which tokens in generated output are memorized, which the authors state opens possibilities for downstream applications such as targeted unlearning.
    • Threat model:
      • Goal: Determine whether a given sample (or token) belongs to the target model's training set, i.e., membership inference.
      • Knowledge and capability: The attacker can obtain the target model's output probabilities (loss/logits) and can train reference models; InfoRMIA is an offline attack (Table 1 notes that Privacy Meter implements only the offline version).
      • Victim systems: Tabular, image, and text classification models, as well as autoregressive LLMs (GPT-2, Pythia series).
      • Auxiliary data: Sequence-level InfoRMIA uses a population dataset Z; the token-level version uses all tokens in the vocabulary except the ground-truth as Z, requiring no independent population data.
  2. What related research exists?

    Related work follows two lines: membership inference attacks (from shadow models to RMIA) and the definition and measurement of memorization.

    Membership inference attacks (general)

    • Shokri et al. [19] proposed membership inference and trained shadow models to directly predict membership labels; Yeom et al. [25] used the loss value as the membership signal.
    • Reference-model methods: Ye et al. [24] trained a set of reference models on population data and counted; Carlini et al. [2] (LiRA) constructed IN/OUT distributions with and without the target point and used the likelihood ratio as the signal.
    • RMIA (Zarifzadeh et al. [26]): counts how many similar data points the target point dominates; it is the SOTA that this paper aims to improve.

    Membership inference for LLMs

    • Reference-model-free methods: Carlini et al. [1] used zlib compression for calibration; Mattern et al. [15] compared the perplexity difference between the target sequence and neighboring sequences; Shi et al. [18] (Min-K%) looked at the lowest-probability tokens.
    • MIMIR benchmark (Duan et al. [5]): evaluates LLM MIA and finds that the above methods perform poorly on pretrained LLMs; Zhang et al. [29] (DC-PDD) and Zhang et al. [28] (Min-K%++) improve via additional calibration.
    • In a footnote, the paper notes that another arXiv work found LiRA outperforms RMIA when there are many reference models, but the authors believe its RMIA implementation deviates from the original paper and that RMIA is better when reference models are limited.

    Memorization

    • Feldman [6] defines memorization in a leave-one-out manner, but this is too expensive to compute on LLMs.
    • verbatim memorization [1, 3] is the most commonly used concept; depending on whether the prompt is constructed by the attacker, it is divided into discoverable [3, 16] and extractable memorization [16]; Hayes et al. [10] proposed a probabilistic variant; there are also k-eidetic [1] and counterfactual memorization [27].

    Baselines and benchmarks: The baseline for the sequence-level comparison is the original RMIA (Table 1, 2); baselines on MIMIR include Loss, Zlib, Min-K%, Min-K%++, DC-PDD, Ref (Table 3–5); ReCaLL was excluded, and the authors state that its MIMIR implementation treats non-members in the evaluation set as prefixes, implicitly leaking membership labels (Appendix D.3.2).

    The authors position this paper as: InfoRMIA is an improvement over RMIA and is claimed to be the new SOTA; the token-level framework is a re-examination of the granularity of LLM privacy measurement, distinct from all sequence-level methods.

  3. How does the paper address this problem?

    Rewrite RMIA as a continuous test statistic based on the Bayes Factor, then compute and aggregate it per token, with an accompanying visualization interface.

    The overall approach has two parts: first, use information theory to rewrite RMIA's discrete count statistic as a continuous InfoRMIA, then propose a token-level InfoRMIA framework for LLMs that computes membership scores for each token and aggregates them back to the sequence level.

    Derivation of InfoRMIA

    • RMIA's statistic counts population data z: pz((p(θ|x))/(p(θ|z)) ≥ γ), i.e., how many "similar" data points the target point x dominates; the score is discrete, with granularity 1/|Z|, and requires the threshold hyperparameter γ.
    • InfoRMIA instead measures the number of bits that x saves relative to the population in explaining the model θ: log p(θ|x) − 𝔼z log p(θ|z), which via a Bayesian decomposition is equivalent to log(p(x|θ)/p(x)) + D_KL(p(z)‖p(z|θ)).
    • The authors' interpretation of the two parts: log(p(x|θ)/p(x)) measures the model's memorization of x; the KL divergence term characterizes the difference between the base distribution of z and the distribution conditioned on θ, similar to generalization analysis.

    Why it is better (the authors' argument)

    • The authors formulate the membership inference game as a composite hypothesis test: H0 is that θ was trained on some z ∈ Z, H1 is that θ was trained on x; RMIA amounts to performing many pairwise tests, whereas InfoRMIA's statistic corresponds to the log-likelihood ratio when using the Bayes Factor, which the authors call a more systematic solution.
    • The continuous score eliminates the dependence on γ, and granularity is no longer determined by |Z|, which the authors state reduces the need for large population data and lowers computational cost when |Z| is fixed.

    Token-level framework

    • The authors view a sequence of length k as k−1 (prefix subsequence, next token) prediction samples, computing a membership score at each token generation step rather than one score for the whole sequence.
    • Token-level InfoRMIA no longer constructs an independent population dataset; instead it treats all tokens in the vocabulary except the ground-truth token as z; the authors give an equivalent form (Equation 9) that can compute the KL divergence over the entire vocabulary without normalization.
    • The authors argue from an information-theoretic perspective: the number of bits of private information comes only from the private token set V_priv, whereas existing sequence-level privacy notions treat all tokens of a member sequence as private, overestimating leakage (Equation 5).

    From token level back to sequence level

    • For each sequence, k−1 scores {s1, …, s_{k−1}} are obtained and must be aggregated into a sequence score; the simplest is averaging, and the authors note that the average token-level InfoRMIA is not equal to the InfoRMIA of the whole sequence (the two operations do not commute).
    • Stronger aggregation could be optimized for the model or data distribution but requires additional holdout data; for practicality, the paper evaluates only general aggregation methods: averaging and min-k (min-k uses the same hyperparameter k as Min-K% and Min-K%++).

    Visualization interface

    • The authors built an HTML interface that uses highlight intensity to indicate each token's membership score (Figure 1b, 2, 7, 8), so auditors can directly inspect leakage on private tokens; auditors who know the location of PII can also directly check the memorization degree of the corresponding tokens.
    • Analysis tools: on AG News, SpaCy is used for entity classification, and token scores are aggregated by entity type; the ai4privacy dataset comes with a privacy mask, allowing tokens to be divided into private/non-private groups.
  4. What experiments did the paper conduct?

    Three sets of experiments: sequence-level comparison of InfoRMIA against RMIA, sequence-level inference by the token-level method on fine-tuned and pretrained LLMs, and token-level leakage analysis.

    Experimental setup

    • Experiments comparing with RMIA: Using the default configuration of the ML Privacy Meter library (released by the original RMIA team), with datasets Purchase100, CIFAR-10, and AG News; AG News is used to train an autoregressive GPT-2, the others are classification models; all are offline attacks with 4 reference models; CIFAR-10 and Purchase100 are trained for 100 epochs, AG News for 1 epoch (Appendix C.1).
    • Fine-tuned LLM experiments: Fine-tune GPT-2 on AG News and ai4privacy (a pii-masking-300k variant), training for 1 and 4 epochs respectively (Table 2).
    • Pretrained LLM experiments: MIMIR benchmark (based on Pile, ngram<0.8 split), target models are deduped Pythia-160M/1.4B/2.8B/6.9B; the reference model is the Pythia-160M first-step (step-1) checkpoint (non-deduped version); Appendix E.2 additionally reports results using the target model's own step-1 checkpoint.
    • Metrics: AUC, TPR@1%FPR, [email protected]%FPR; the authors cite Carlini et al. [2]'s view that TPR at low FPR better reflects membership identification capability.
    • Baselines: RMIA (sequence-level); on MIMIR, Loss, Zlib, Min-K%, Min-K%++, DC-PDD, Ref; ReCaLL was excluded due to implementation issues (Appendix D.3.2).
    • Sample sizes and number of repetitions: The paper does not report sample sizes or number of repetitions for each experiment.

    Main results

    Comparison of InfoRMIA and RMIA (per Table 1, 4 reference models, offline attack):

    Swipe horizontally to read the table

    Dataset|Z|RMIA AUCInfoRMIA AUCRMIA [email protected]%FPRInfoRMIA [email protected]%FPR
    AG News1000.85740.87840.00%12.0%
    AG News10000.87660.87841.60%12.0%
    CIFAR-1010000.82290.83300.00%5.82%
    CIFAR-10100000.83270.83300.00%5.82%
    Purchase10010000.53110.57540.00%0.32%
    Purchase100100000.54320.57540.00%0.32%
    • The authors state that InfoRMIA outperforms RMIA on all datasets and models, consistent with the table.
    • InfoRMIA gives exactly the same results under both population sizes, which the authors consider validates its insensitivity to |Z|; RMIA's AUC rises as |Z| increases.
    • The authors note that the CIFAR-10 numbers are lower than in the original RMIA paper because Privacy Meter does not use data augmentation during training; Purchase100 used a larger training set.

    Sequence-level inference on fine-tuned LLMs

    • Per Table 2: on AG News fine-tuned for 1 epoch, the AUC of RMIA, sequence-level InfoRMIA, and token-level InfoRMIA (averaging) are 0.839, 0.843, and 0.836 respectively, and TPR@1%FPR are 0.00%, 23.0%, and 20.2%; at 4 epochs the three AUCs are 0.945, 0.945, and 0.942, and TPR@1%FPR are 0.00%, 16.2%, and 20.6%.
    • On ai4privacy fine-tuned for 1 epoch, the three AUCs are 0.643, 0.644, and 0.620, and TPR@1%FPR are 6.6%, 10.6%, and 9.0%; at 4 epochs the AUCs are 0.821, 0.822, and 0.804, and TPR@1%FPR are 26.0%, 27.2%, and 23.2%.
    • The authors state that although the token-level method is not designed for sequence-level inference, simple averaging is competitive; the exception is that on ai4privacy the token-level method's AUC and TPR are both slightly lower than sequence-level InfoRMIA.

    Pretrained LLMs (MIMIR)

    • Per Table 3 (TPR@1%FPR, reference model Pythia-160M step-1): InfoRMIA1 (averaging) averages 2.9/3.3/3.7/2.9 across the 7 domains (160M/1.4B/2.8B/6.9B), which the authors state achieves the strongest inference capability; on the Github domain, Zlib reaches 24.0 at 2.8B, higher than InfoRMIA1's 21.2.
    • Per Table 4 ([email protected]%FPR): all methods are close to 0 on most domains; on the Github domain Zlib is highest (e.g., 8.4 at 160M), and InfoRMIA variants are lower than Zlib on that domain.
    • Per Table 5 (AUC): the ranking is opposite to low-FPR TPR; Min-K%++ has the highest average AUC (e.g., 54.6 at 6.9B), and InfoRMIA1 is 52.7; the authors cite Carlini et al. [2] that AUC as a privacy metric may be misleading, and note that many recent works report only AUC.
    • Appendix E.2 (Table 6–8): using the target model's own step-1 checkpoint as the reference model, the authors state the utility change is very small, and recommend that cost-sensitive auditors use small-model snapshots.

    Token-level leakage analysis

    • AG News (Table 9, Figure 3): PERSON tokens have the highest average score (0.156000, n=2225), followed by WORK_OF_ART (0.135550, n=107); among the top 1% highest-scoring tokens, these two categories also have the highest high-score rates (0.022472, 0.028037), and the authors suggest person names and work titles are more easily memorized.
    • ai4privacy (Table 10, Figure 4): private tokens have an average score of 0.076426 (n=36340), slightly lower than non-private tokens' 0.090224 (n=147411); the authors suggest that the high AUC reported by sequence-level MIA may mainly reflect memorization of non-private content, and that AUC itself is not a good indicator of privacy risk.
    • The authors report a low correlation between sequence-level scores and private-token scores (Figure 1a); some of the 10 most "memorized" sequences at the sequence level contain no private tokens (Figure 2, 7), while the 10 sequences with the highest average private-token scores have noticeably lower sequence average scores (Figure 8), and the authors suggest the signal of private tokens is diluted in long texts.

    Other ablations and analyses

    • Aggregation method: at low-FPR TPR, averaging (InfoRMIA1) is better than min-k (InfoRMIA2), while under AUC the ranking is reversed (Table 3–5); the authors explain that min-k is essentially a non-member detector.
    • Reference model choice: the authors find that early snapshots of the LLM are more useful than models trained on large corpora, differing from the recommendation of Duan et al. [5].
    • Hardware: all computation was done on two NVIDIA RTX-3090s and two H100s (Appendix C.2).
  5. What are some points that can be further explored?

    The authors list downstream applications such as targeted unlearning as future work; the experiments have clear boundaries in the number of reference models, the aggregation method, and model coverage.

    Limitations and future directions noted by the authors

    • In the Conclusion, the authors write that downstream applications such as targeted machine unlearning and token-guided data reconstruction and extraction are "left for future work to explore systematically."
    • In Section 4.3, the authors state that for token-level aggregation only general methods such as averaging and min-k were evaluated, and that stronger aggregation optimized for the model or data distribution requires additional holdout data, which this paper did not do.
    • In Section 4.3, the authors state that using token-level MIA for sequence-level inference "is not the best way to evaluate token-level MIA, but rather more of a proof of concept."
    • In Section 6.2, the authors acknowledge that the reference model used on MIMIR is not ideal: an ideal reference model should share the target LLM's architecture and data distribution but have a (partially) non-overlapping dataset, and such a reference model cannot be found among open-source LLMs, so only a single Pythia-160M step-1 checkpoint was used.
    • In Appendix D.3.2, the authors point out that the implementation of ReCaLL in MIMIR has an implicit leakage of membership labels, and state that it will be included in the comparison after the official implementation is fixed.

    Scope of experimental coverage

    • The sequence-level comparison (Table 1) covers 3 datasets (Purchase100, CIFAR-10, AG News), all offline attacks with 4 reference models, with two population sizes each.
    • The fine-tuned LLM experiments (Table 2) cover 2 datasets × 2 fine-tuning epoch counts (1, 4), with GPT-2 as the target model.
    • The pretraining experiments (Table 3–8) cover 7 MIMIR domains and 4 Pythia model sizes (160M, 1.4B, 2.8B, 6.9B, deduped versions), with a single step-1 checkpoint as the reference model.
    • The token-level analysis (Table 9, 10) is conducted on fine-tuned models on AG News and ai4privacy, using offline token-level InfoRMIA with 4 reference models (Appendix F).
    • The paper does not report sample sizes, number of repetitions, or variance or confidence intervals of results for each experiment.
  6. Summarize the main content of the paper

    InfoRMIA reformulates RMIA in information-theoretic terms and pairs it with a token-level framework; the authors claim it is stronger, more economical, and able to localize leakage to individual tokens.

    A membership inference attack (MIA) paper in two parts: improving the SOTA attack RMIA, and proposing a token-level privacy analysis framework for LLMs.

    • Problem to solve: LLM training data nearly covers all human data, and memorization brings privacy risk; the authors argue that RMIA relies on a population dataset that grows with the training set, and that sequence-level MIA compresses per-token information into a single bit, losing granularity.
    • Method highlights: InfoRMIA treats membership inference as a composite hypothesis test, uses the Bayes Factor to derive a continuous test statistic that can be decomposed into a memorization term log(p(x|θ)/p(x)) and a KL divergence term, eliminating the threshold γ and the dependence on a large population; the token-level version computes scores per token, uses the remaining tokens in the vocabulary as the population, then aggregates into a sequence score via averaging or min-k, and comes with a visualization interface.
    • Result 1: On Purchase100, CIFAR-10, and AG News in ML Privacy Meter, InfoRMIA's AUC and [email protected]%FPR are not lower than RMIA's; e.g., on AG News with |Z|=100, [email protected]%FPR is 12.0% versus RMIA's 0.00%, and results are unchanged when the population is reduced from 1000 to 100 (Table 1).
    • Result 2: Token-level InfoRMIA can perform sequence-level inference via simple averaging, and on fine-tuned GPT-2 it is close to sequence-level methods (Table 2); on MIMIR pretrained Pythia models, the authors state it has the strongest TPR at low FPR, but its AUC ranking is below Min-K%++ (Table 3–5).
    • Result 3: Token analysis finds that sequence-level high scores correlate weakly with private tokens: in ai4privacy, the average score of private tokens (0.076426) is slightly lower than that of non-private tokens (0.090224), and some of the most "memorized" sequences at the sequence level contain no private tokens (Table 10, Figure 2, 7).
    • Authors' conclusion: The authors state that InfoRMIA is a new SOTA attack that is lower-cost and more effective; the token-level perspective can estimate privacy risk more accurately and opens directions for applications such as targeted unlearning and token-guided data reconstruction, which are left for future work.

Related papers

Show 3 more papers
Read originalarxiv.org