Manuscript Offprint

arXiv:2610.41445

From Representation to Readout: Mechanistic Analysis of Membership Signals in Language Models

Wenxi Dai, Jingyu Hu, Yanting Yang, Mengnan Du

ABSTRACT

Membership inference aims to determine whether a particular example was included in a model's training data. Such membership signals are often broadly described as memorization, while the underlying mechanisms can involve both how information is represented internally and how it is accessed by the model to produce behaviors. We therefore present a mechanistic study of membership signals in large language models (LLMs). We introduce Decodable Information Score, Used Information Score, and Readout Accessibility Gap (DUG), a set of complementary measures that separately quantify membership information decodable from internal representations and the extent to which it is exposed through the model's readout. Across supervised fine-tuning (SFT) and reinforcement learning (RL)-based membership inference methods, membership-specific effects appear in both the amount of decodable information and readout under SFT, while under RL-based membership inference methods they appear primarily in readout. Activation patching further localizes this membership-specific effect to intermediate layers. To examine whether these findings extend to a more general RL setting, we further study reinforcement learning with verifiable rewards (RLVR) contamination, where the training reward is independent of the reference solution. In this setting, we find that behavioral changes can emerge without a corresponding increase in likelihood-based membership inference signals.

1 INTRODUCTION

Membership inference attacks (MIAs) aim to determine whether a given example belongs to a model's training data. They have been widely studied as a way to characterize and audit a model's exposure to training data. We refer to included examples as members and excluded examples as non-members (Shokri et al., 2017; Duan et al., 2024). Prior work uses signals from the behavior of large language models (LLMs), such as loss, perplexity, and model outputs, to infer membership (Xie et al., 2025; Carlini et al., 2021). More recent approaches further modify the target model weights to bring out membership-related behaviors, typically using reinforcement learning (RL) or supervised fine-tuning (SFT) to elicit membership signals (Yin et al., 2026; Fu et al., 2024). Such signals are often broadly referred to as memorization.

Interpretability studies of memorization have provided evidence that information associated with memorized content can manifest internally, and have shown that such representations can be actively steered at inference time to affect model behavior (Stoehr et al., 2024). Much of this work studies memorization through the model's ability to reproduce training content. Some studies group examples by their reproducibility and analyze the resulting differences (Chen et al., 2026; Wang et al., 2025). Others manipulate training exposure and examine the resulting changes in model behavior (Lee et al., 2022). These analyses primarily ask how well the model reproduces a given example, rather than directly comparing members and non-members to characterize how training membership is reflected in the model's internal representations. In particular, it remains unclear how these interventions alter how models expose information associated with their training data.

Motivated by this gap, we ask: How do training interventions shape membership signals in language models? –by changing the information encoded in internal representations, by changing how that information is read out, or both? To address this question, we introduce the Decodable Information Score, Used Information Score, and Readout Accessibility Gap, collectively termed DUG, a layer-wise set of complementary measures that quantify membership information in internal representations and its accessibility through the model's readout. We combine these measures with a difference-in-differences analysis to isolate membership-specific changes induced by training. We then apply this framework to SFT and RL-based MIA methods, further using activation patching to causally localize where the induced membership-specific effect forms, and examine whether these findings extend to a more general RLVR contamination setting.

To be specific, our main contributions can be listed as follows:

  • We propose DUG, together with a difference-in-differences analysis that separates membership-specific changes from those shared with non-members, decomposes them into decodable information and model readout, and quantifies both across layers.
  • Across controlled SFT and RL-based membership inference methods, we find that membership-specific changes under SFT emerge in both decodable information and readout, whereas RL-based MIA methods primarily affect the readout of membership-specific information (Section 5.2). We further use activation patching to causally localize this effect across layers (Section 5.5).
  • We show, in a relatively general RLVR contamination setting where the reward is independent of the reference solution, that behavioral membership effects can emerge without a corresponding increase in likelihood-based MIA performance, thereby revealing a dissociation between behavioral and likelihood-based membership inference (Section 5.3).

References (46)