What Hard Tokens Reveal: Exploiting Low-confidence Tokens for Membership Inference Attacks against Large Language Models

arXiv:2601.20885 · cs.CR · Submitted 2026-01-27 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: We're looking at the paper: "What Hard Tokens Reveal".

Paper summary: Nadia: So we're looking at this paper titled "What Hard Tokens Reveal: Exploiting Low-confidence Tokens for Membership Inference Attacks against Large Language Models". It tackles how to actually find data samples in a model without it being too easy.

Elias: Exactly. The main idea is that most existing methods struggle because they just look at the whole sequence prediction statistics, and that doesn't really tell you if the model memorized something specific or if it just learned general patterns, which makes the attacks weak.

Priya: So this paper proposes a new way to get a better signal by focusing on individual tokens that have low confidence when it tries to predict them. It claims these hard tokens give much stronger membership signals than looking at the whole sequence prediction statistics <ref:2601.20885#pg1>.

Nadia: Right, so it’s about isolating those specific points in the text where the model is least sure, because that’s where you get a better clue about whether a sample was in the training set.

Elias: The authors say this approach works across four different datasets, covering both medical and general areas <ref:2601.20885#pg2>. That means they're not just testing it on one type of data; it's showing consistency there.

Priya: And the results are pretty impressive. On the Asclepius dataset, for example, HT-MIA achieves the highest AUC score across all three models tested: seventy-three point four eight percent for LLaMA-three point two-1B, seventy-three point one two percent for Qwen-three-0 point 6B, and fifty-six point seven nine percent for GPT-two <ref:2601.20885#pg4>.

Nadia: So they’re showing that this token-level focus translates into a tangible improvement in the attack's ability to find members compared to the other seven state of the art methods they benchmarked <ref:2601.20885#pg1>.

Elias: And it specifically highlights why traditional methods fail, pointing out that tokens with the lowest predicted probability under a fine-tuned model F give the most informative signals because those errors are more linked to memorization effects introduced during training <ref:2601.20885#pg3>.

Priya: That makes sense from a data perspective; if you’re looking at where the model is most uncertain, that uncertainty is often where the specific details of the training set leak through <ref:2601.20885#pg5>.

Nadia: So they've developed this HT-MIA framework that extracts token probability information from both a fine-tuned model F and a reference model B to calculate this score <ref:2601.20885#pg3>.

Elias: The actual process involves tokenizing the text, then performing a forward pass on both models, and then doing some adaptive token selection based on confidence scores <ref:2601.20885#pg3>.

Priya: When you look at the math they lay out, it shows how they compare the probability of seeing a specific next token using model F versus model B for every single position in the text <ref:2601.20885#pg3>.

Nadia: It’s aggregating those per-token comparisons to get one final HT-MIA score, which measures the fraction of selected tokens where the fine-tuned model performs better than the reference model <ref:2601.20885#pg3>.

Elias: That final score is what they use to determine if a sample was likely used in training, and they even have some theoretical work backing this up with Lemma one and Lemma two <ref:2601.20885#pg13>.

Priya: The paper also looks at defenses, specifically how differential privacy training using Differentially Private Stochastic Gradient Descent can act as a defense against these types of attacks <ref:2601.20885#pg3>.

Nadia: That’s important because if we can find a way to make these attacks more effective, then the defense mechanisms need to be strong too.

Elias: The paper does show that using differential privacy during the fine-tuning process does reduce downstream task performance for both models, which is the privacy utility tradeoff they are talking about <ref:2601.20885#pg8>.

Priya: So what this means for us is that we can use this token-level analysis to build better membership inference tools and also understand how to defend against them by looking at those low-confidence tokens.

Nadia: Overall, the paper "What Hard Tokens Reveal: Exploiting Low-confidence Tokens for Membership Inference Attacks against Large Language Models" points out that fine-grained, token-level analysis is what you need for effective membership inference and privacy protection <ref:2601.20885#pg9>.

Elias: The authors make three main original contributions: proposing this HT-MIA method, showing its superiority over seven baselines across four datasets, and investigating defense strategies against these risks <ref:2601.20885#pg9>.

Priya: So for anyone working in the privacy space or building LLM applications, this study establishes hard-token based analysis as a foundation for advancing both the attacks and the defenses we use <ref:2601.20885#pg9>.

Conclusion: Nadia: So we're wrapping up our look at this paper, "What Hard Tokens Reveal: Exploiting Low-confidence Tokens for Membership Inference Attacks against Large Language Models."

Elias: Yeah, basically, it’s about how you can actually find data samples in a model without it being too easy by focusing on those specific tokens that the model is least confident about.

Nadia: Right, they showed this new method called HT-MIA that looks at the token-level probabilities for those hard tokens to get a stronger membership signal.

Elias: And they found that this approach consistently beat seven other state of the art methods across four different datasets, including medical and general ones.

Nadia: It seems like a really practical way to make these membership inference attacks more effective and robust against privacy defenses.

Elias: The authors also looked into how to defend against this using something called differentially private training with stochastic gradient descent, which is a common technique in this area.

Nadia: They showed that while differential privacy helps, it still creates a tradeoff where the model's actual task performance drops because of the privacy protection.

Elias: So, what does this mean for us right now? It means we need to get really granular with our analysis if we want to build better membership inference tools and stronger defenses against these large language models.

Florida International University · California State Polytechnic University

cs.CR

Submitted: 2026-01-27

Updated: 2026-11-26

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 87/100

The gist: With the widespread adoption of Large Language Models (LLMs) and increasingly stringent privacy regulations, protecting data privacy in LLMs has become essential…

Key concepts

Membership Inference Attacks (MIAs)
These are methods used to determine if a specific data point was included in the training set of a machine learning model. In LLMs, this often involves testing whether the model has memorized private information rather than learned general patterns from the data.
Low-Confidence (Hard) Tokens
These are specific tokens within an input sequence where a fine-tuned target model (F) exhibits the lowest prediction confidence. The paper argues that these low-confidence positions contain the most informative signals about whether the model has memorized training examples.
HT-MIA Framework
This is the proposed methodology that extracts and aggregates token probabilities from both a fine-tuned target model (F) and a reference model (B). It systematically selects tokens with low confidence and computes a membership score based on how often F outperforms B at these specific, hard positions.

Terminology

Summary

With the widespread adoption of Large Language Models (LLMs) and increasingly stringent privacy regulations, protecting data privacy in LLMs has become essential, especially for privacy-sensitive applications. p. 0<ref:2601.20885#pg1,With the widespread adoption of Large Language Models (LLMs) and increasingly stringent privacy regulations, protecting data privacy in LLMs has become essential, especially for privacy-sensitive applications>

The paper proposes a novel membership inference approach that captures the token-level probabilities for low-confidence (hard) tokens to isolate strong and robust membership signals.<ref:2601.20885#pg1,To address this limitation, we propose a novel membership inference approach that captures the token-level probabilities for low-confidence (hard) tokens, where membership signals are more pronounced>

Extensive experiments on both domain-specific medical datasets and generalpurpose benchmarks demonstrate that HT-MIA consistently outperforms seven state-of-the art MIA baselines.<ref:2601.20885#pg1,Extensive experiments on both domain-specific medical datasets and generalpurpose benchmarks demonstrate that HT-MIA consistently outperforms seven state-of the art MIA baselines>

The Core Methodology

The HT-MIA framework builds on the idea of extracting token-level probabilities for low-confidence (hard) tokens within a given sequence sample.<ref:2601.20885#pg3,Specifically, we perform a teacher-forced forward pass for both the fine-tuned target model F and the reference model B>

The process involves several key steps outlined in Algorithm 1, including token probability extraction from both models.<ref:2601.20885#pg3,Step 1: Token probability extraction. p. 2 Given a text sample x, the text is first tokenized into a sequence t1:L with corresponding next tokens y1:L>

Next, adaptive token selection identifies the tokens where F has the lowest confidence by sorting them and selecting a subset based on user-specified bounds.<ref:2601.20885#pg3,Step 2: Adaptive token selection. p. 2 The algorithm identifies the tokens where F has the lowest confidence by sorting {pF,i}L i=1 in ascending order>

The final score is computed by aggregating these per-token comparisons, measuring the fraction of selected tokens where F outperforms B.<ref:2601.20885#pg3,Step 4: Membership score aggregation. p. 2 The HT-MIA score is computed by aggregating these per-token comparisons, measuring the fraction of selected tokens where F outperforms B>

Why Traditional Methods Fail

Traditional membership inference approaches often rely on sequence-level aggregated prediction statistics, which fail to distinguish prediction improvements caused by generalization from those caused by memorization.<ref:2601.20885#pg1,However, most existing MIA techniques against LLMs rely on sequence-level aggregated prediction statistics, which fail to distinguish prediction improvements caused by generalization from those caused by memorization>

This dilution of signal is evident in the ablation study where tokens with the lowest predicted probability under F provide the most informative membership signals.<ref:2601.20885#pg5>

The authors argue that tokens with the lowest predicted probability under F provide the most informative membership signals because improvements at these positions are more indicative of memorization effects introduced during LLM fine-tuning, rather than generalization.<ref:2601.20885#pg3,Empirically, we observe that tokens with the lowest predicted probability under F provide the most informative membership signals>

Performance Across Datasets

HT-MIA demonstrates superior performance across four datasets spanning both medical and general domains.<ref:2601.20885#pg1,We benchmark HT-MIA against seven state-of the art MIA methods and demonstrate consistent performance improvements across four datasets spanning both medical and general domains>

On the Asclepius dataset, HT-MIA achieves the highest AUC on all three models: 73.48% (LLaMA-3. p. 3 p. 32-1B), 73.12% (Qwen-3-0. p. 3 p. 36B), and 56.79% (GPT-2). p. 3<ref:2601.20885#pg4,On Asclepius, it achieves the highest AUC on all three models: 73. p. 348% (LLaMA-3.2-1B), 73.12% (Qwen-3-0.6B), and 56.79% (GPT-2)>

On the Clinicalnotes dataset, HT-MIA achieves the highest AUC: 86.59% (LLaMA-3. p. 3 p. 32-1B), 88.43% (Qwen-3-0. p. 3 p. 36B), and 69.78% (GPT-2). p. 3<ref:2601.20885#pg4,On Clinicalnotes, HT-MIA achieves the highest AUC: 86. p. 359% (LLaMA-3.2-1B), 88.43% (Qwen-3-0.6B), and 69.78% (GPT-2)>

Defense and Theoretical Guarantees

The paper investigates differentially private training as an effective defense mechanism against MIAs in LLMs through Differentially Private Stochastic Gradient Descent (DP-SGD).<ref:2601.20885#pg3>

The application of DP-SGD during finetuning reduces downstream task performance for both models, demonstrating the inherent privacy-utility tradeoff.<ref:2601.20885#pg8>

The theoretical analysis formalizes why selecting low-probability tokens is optimal by establishing Lemma 1 and Lemma 2.<ref:2601.20885#pg13>

Theorem 1 provides exponential concentration guarantees, showing that finite-sample error bounds decay exponentially with sequence length.<ref:2601.20885#pg13,Theorem 1 provides exponential concentration guarantees: both error types decay exponentially in K>

Conclusion

Overall, this study highlights critical MIA vulnerabilities in LLMs and demonstrates the importance of fine-grained, tokenlevel analysis for effective membership inference and privacy protection.<ref:2601.20885#pg9,Overall, this study highlights critical MIA vulnerabilities in LLMs and demonstrates the importance of fine-grained, tokenlevel analysis for effective membership inference and privacy protection>

The authors make three original contributions: proposing HT-MIA, demonstrating its superiority over seven baselines across four datasets, and investigating effective defense strategies against MIAs.<ref:2601.20885#pg9>

The study establishes hard-token based analysis as a state-of the art foundation for advancing membership inference attacks and defenses for LLMs.<ref:2601.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Improved Membership Inference Capability

The HT-MIA framework captures strong and robust membership signals that are obscured by prior MIA approaches by focusing on token-level probabilities for low-confidence (hard) tokens. This allows AI systems to determine whether a specific data sample was included in the model training or fine-tuning dataset with higher accuracy than sequence-level aggregated statistics.

  1. Enhanced Attack Robustness

The method achieves consistent performance improvements across four datasets spanning both medical and general domains when compared against seven state-of-the-art MIA baselines, demonstrating that it isolates strong and robust membership signals.

  1. Optimized Detection Strategy

The system can perform membership inference by using a decision rule based on the HTMIA score: "member, if S(x; F, B) >= τ," where S is computed as the fraction of selected tokens where the target model assigns higher probabilities than the reference model at difficult positions.

  1. Defense Integration via DP-SGD

The AI system can be defended against membership inference risks by incorporating Differentially Private Stochastic Gradient Descent (DP-SGD), which provides formal privacy guarantees by limiting the influence of individual training examples on model parameters.

Sources

Related papers