arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.00419cs.LGcs.AI
收藏

G-Drift MIA:基于梯度诱导特征漂移的LLM成员推断

G-Drift MIA: Membership Inference via Gradient-Induced Feature Drift in LLMs

Florida International University(佛罗里达国际大学);University of South Florida(南佛罗里达大学)

Ravi Ranjan, Utkarsh Grover, Xiaomin Lin, Agoritsa Polyzou

AI总结:

本文提出G-Drift MIA,通过梯度诱导的特征漂移实现LLM成员推断,优于传统方法,在多个模型和数据集上表现突出,揭示了梯度几何与记忆之间的联系。

摘要:

大型语言模型(LLMs)在大规模网络语料上训练,引发了隐私和版权的担忧。成员推断攻击(MIAs)旨在确定给定示例是否在训练中使用。现有LLM MIAs大多依赖输出概率或损失值,当成员和非成员来自同一分布时,效果仅略优于随机猜测。我们引入G-Drift MIA,一种基于梯度诱导特征漂移的白盒成员推断方法。给定候选(x,y),我们应用单次目标梯度上升步以增加其损失,并测量更新前后内部表示的变化,包括logits、隐藏层激活和固定特征方向上的投影。这些漂移信号用于训练轻量级逻辑分类器,有效分离成员和非成员。在多个基于transformer的LLM和现实MIAs数据集上,G-Drift显著优于基于置信度、困惑度和参考的攻击。我们进一步表明,记忆化的训练样本系统性地表现出比非成员更小且更结构化的特征漂移,提供了梯度几何、表示稳定性与记忆之间的机制联系。总体而言,我们的结果表明,小规模受控梯度干预为审计训练数据成员身份和评估LLM隐私风险提供了实用工具。

英文摘要:

Large language models (LLMs) are trained on massive web-scale corpora, raising growing concerns about privacy and copyright. Membership inference attacks (MIAs) aim to determine whether a given example was used during training. Existing LLM MIAs largely rely on output probabilities or loss values and often perform only marginally better than random guessing when members and non-members are drawn from the same distribution. We introduce G-Drift MIA, a white-box membership inference method based on gradient-induced feature drift. Given a candidate (x,y), we apply a single targeted gradient-ascent step that increases its loss and measure the resulting changes in internal representations, including logits, hidden-layer activations, and projections onto fixed feature directions, before and after the update. These drift signals are used to train a lightweight logistic classifier that effectively separates members from non-members. Across multiple transformer-based LLMs and datasets derived from realistic MIA benchmarks, G-Drift substantially outperforms confidence-based, perplexity-based, and reference-based attacks. We further show that memorized training samples systematically exhibit smaller and more structured feature drift than non-members, providing a mechanistic link between gradient geometry, representation stability, and memorization. In general, our results demonstrate that small, controlled gradient interventions offer a practical tool for auditing the membership of training-data and assessing privacy risks in LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑