Skip to content

TranScope: Membership inference attacks on Transformers using CPU performance countersTranScope

Paper Tracker· arXiv:2610.06848· Joshua Kalyanapu, Darsh Asher, Kaushal Mhapsekar, Bita Aslrousta, Rushiraj Chaitanyakumar Sheth, Maharshi Mukeshkumar Oza, Achyuta Kannan, Samira Mirbagher Ajorpaz·Indexed by this site · 2026-10-06· Originally publishedSelected AttacksSelectedAttention39

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

Researchers propose TRANSCOPE for static branch-free Transformers, detecting membership via CPU hardware counters, achieving an AUC of 0.99 on BERT-base.

Threat modelThe attacker is a legitimate auditor or ordinary user who owns and controls the hardware, downloading public or binary closed-source models and running them on a local CPU. No synchronization, co-location, or retries with the victim are needed. The attacker black-box inputs test samples and reads 263 local hardware performance counters and RAPL energy consumption, with the goal of detecting training set membership for copyright infringement investigations.

Questions
Closed-source and local models hide confidence and outputs, and modern Transformers have no dynamic branching, so end-to-end inference time is constant, making both existing software MIA and hardware side-channel attacks unable to determine training set membership.
Methods
The authors propose TRANSCOPE, which exploits the tokenizer's property of assigning compact IDs to familiar words while spanning widely over unfamiliar words, identifying members through CPU page table walks and hardware performance counters such as TLB, as well as energy consumption differences.
Experiments and results
Evaluated on BERT, GPT-2, Pythia, and ViT, BERT-base classification accuracy reaches 99%, NYT article validation shows a 56% reduction in non-core memory reads for pre-2019 samples, and time differences are within 1.2%.
Limitations and future work
The paper does not include a limitations section; future exploration includes microarchitectural prompt optimization and channel capacity calculation; experiments were conducted only on single-core isolated Intel CPUs and fixed-length sequences, without reporting multi-concurrency interference and end-to-end throughput.
Experimental setupBERT (4.4M, 11.3M, 29.1M, 41.7M, 110.1M, 340M)、ViT (22M, 86M, 307M) et al. · Large Movie Review Dataset (IMDb)、NIH Exporter et al. · AUC、Accuracy et al.
Evaluated models
BERT (4.4M, 11.3M, 29.1M, 41.7M, 110.1M, 340M)ViT (22M, 86M, 307M)Pythia (70M, 160M, 410M, 1B, 1.4B, 2.8B)GPT-2 (124M, 355M, 774M, 1.5B)
Benchmarks
Large Movie Review Dataset (IMDb)NIH ExporterEnron EmailsNew York Times articles (2018-2024)CIFARImageNet
Metrics
AUCAccuracyFPRFNRCohen's d
AI summaryand selection rationaleThe paper is the first to study the hardware execution footprint of large language models and vision Transformers at the microarchitectural cycle level under fixed-length, static, masked-confidence black-box conditions, confirming that the model's training data distribution significantly affects hardware access characteristics even under constant-time execution without dynamic optimization or branches. Root cause analysis shows that tokenization during training changes the access locality of vocabulary tokens fetched by the model during inference, thereby altering page table access patterns and TLB state in a data-dependent manner. Based on this, the study proposes the first microarchitecture-based membership inference tool, TranScope, which requires no shadow models and has extremely low overhead. In membership inference (MIA) tests, TranScope's detection AUC jumps from 0.6 for the previous best baseline PETAL to 0.9, providing a new hardware-level detection channel for copyright infringement detection of large model training data.

The paper is the first to study the hardware execution footprint of large language models and vision Transformers at the microarchitectural cycle level under fixed-length, static, masked-confidence black-box conditions, confirming that the model's training data distribution significantly affects hardware access characteristics even under constant-time execution without dynamic optimization or branches. Root cause analysis shows that tokenization during training changes the access locality of vocabulary tokens fetched by the model during inference, thereby altering page table access patterns and TLB state in a data-dependent manner. Based on this, the study proposes the first microarchitecture-based membership inference tool, TranScope, which requires no shadow models and has extremely low overhead. In membership inference (MIA) tests, TranScope's detection AUC jumps from 0.6 for the previous best baseline PETAL to 0.9, providing a new hardware-level detection channel for copyright infringement detection of large model training data.

Why it was selectedThe paper presents a membership inference method based on hardware performance counters, bypassing confidence masking on constant-time models, and discloses that it has been reported to Intel.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The paper addresses how to detect training set membership and copyrighted data leakage on black-box large models that have no dynamic branches, masked outputs, and constant execution time.

    The core problem is how to effectively detect whether input data belongs to the model's training set on black-box Transformer models that lack output confidence and have constant inference time.

    • Scenario and importance: Model copyright disputes and privacy compliance cases are frequent; models are often compiled into locally running binaries or only expose labels, making internal weights and confidence inaccessible.
    • Limitations of existing methods: Software-level membership inference attacks rely on confidence scores or require expensive shadow models and thousands of queries; hardware-based attacks (e.g., GateBleed) rely on branch prediction differences, but modern mainstream Transformers use static forward computation, and input-dependent branches do not exist.
    • Core observation: The tokenizer assigns numerically close IDs to high-frequency words in the training data, but discrete high IDs to unfamiliar words; this geometric difference in tokenization spans maps to embedding table accesses, directly causing hardware-level divergence in TLB hit rates and page-table walks.
    • Proposed solution: The paper proposes the TRANSCOPE framework, which uses hundreds of hardware performance counters and power side channels exposed by the CPU during a single inference to perform out-of-distribution and membership detection while keeping end-to-end time constant.
    • Threat model:
      • Attacker goal: Detect whether input data belongs to the training set distribution, providing reproducible hardware evidence for copyright compliance or legal proceedings (e.g., Daubert standard evidence).
      • Attacker knowledge: Only black-box access, without relying on model weights or internal features; the model may be a closed-source binary format.
      • Attacker capability: As a privileged auditor or ordinary user, execute a single inference on a physical machine fully under their control (OS, hardware, inputs, and inference runtime) and read hardware performance counters and energy consumption, without needing interaction with or co-residency on the victim.
      • Victim system: Mainstream static branchless Transformer models running on general-purpose CPUs (e.g., BERT, GPT, ViT, LLaMA/Pythia).
  2. What related research exists?

    The paper systematically reviews software-level membership inference, hardware-assisted privacy attacks, and attribute inference research, positioning itself as the first microarchitectural MIA targeting static constant-time models.

    Software-level membership inference attacks

    • Shokri et al. (2017) — proposed using shadow models to infer membership from classifier output confidence; Carlini et al. (2022, LiRA) improved attack effectiveness through likelihood ratio tests.
    • Choquette-Choo et al. (2021) and Peng et al. (2024, OSLO) — launched robustness perturbation-based attacks against label-only APIs, but require thousands of expensive queries or training shadow models; He et al. (2025, PETAL) extended label-only attacks to language models but rely on shadow models of comparable size.
    • Tong et al. (2025) — found that public tokenizer vocabularies contain domain-specific tokens that leak membership information; the authors note that Tong et al. rely on the presence of specific tokens, while TRANSCOPE relies on hardware access strides induced by token spans, so vocabulary filtering defenses cannot resist TRANSCOPE.

    Hardware-assisted side-channel and privacy attacks

    • Kalyanapu et al. (2025, GateBleed) — used Intel AMX power gating timing against adaptive neural networks (e.g., BranchyNet, Mixture-of-Experts) for membership inference; the authors note that GateBleed relies on input-dependent dynamic branches and unpatched AMX hardware, and cannot be applied to modern Transformers with static forward propagation.
    • Srivastava et al. (2026, GhostTrace) — used GPU performance counters for membership inference on CNNs and ViTs; the authors note that because GPUs expose fewer counters than CPUs, its inference accuracy is lower.
    • Yan et al. (2020, Cache Telepathy) and Akinsanya et al. (2024) — respectively used cache side channels to recover model architecture hyperparameters, or timing channels to attack adaptive networks with observable latency differences.

    Baselines and benchmark settings

    • Baseline methods: Confidence truncation and discretization defenses (Top-k, confidence rounding, label-only output), constant-time padding, and the AUC performance reported by PETAL.
    • Evaluation benchmarks: IMDb sentiment analysis dataset, NIH Exporter grant records, Enron Emails email data, and real New York Times (NYT) copyrighted articles.

    Positioning and distinction

    • The authors note that traditional software attacks all require confidence, multiple queries, or shadow models, while existing hardware attacks rely on timing fluctuations or dynamic branches; TRANSCOPE is the first to extract training set membership signals from static networks with completely constant model execution paths and timing, using only a single query's CPU microarchitectural counters.
  3. How does the paper address this problem?

    TRANSCOPE exploits the locality differences in embedding table access induced by tokenizer token intervals, collecting and aggregating evidence from 263 CPU hardware counters across five stages.

    The core idea of TRANSCOPE is to analyze the address span differences caused by tokenization of input text in the vocabulary, reading hidden page table and cache telemetry signals in the CPU memory hierarchy.

    Root cause mechanism and memory geometry

    • Token spacing mapping: The tokenization of an input sequence maps words to integer IDs, each corresponding to a row in the embedding table, with the memory base address formula addr(rt) = BASE + rt · dmodel · sizeof(float), where dmodel is the hidden layer dimension.
    • Locality divergence: High-frequency co-occurring words in the training set are assigned numerically close IDs by the tokenizer, producing small-span memory jumps of about 0.83 MB in BERT-base (falling into fewer than 70 distinct pages), which are quickly hit by the TLB; unfamiliar word IDs for non-member inputs are scattered, with spans up to 28.9 MB, causing TLB misses and multiple page-table walks.
    • Timing masking effect: Although each page-table walk introduces about 200 cycles of overhead, in a static execution with tens of millions of total cycles per inference, the cumulative latency difference is less than 1.2%, which cannot be captured by end-to-end timing but is fully preserved in performance counters.

    Framework design principles

    • Non-intrusive measurement (P1): Treat the model under test as an unmodifiable static artifact, without injecting code.
    • Multi-witness jury (P2): Collect 263 core performance monitoring events from 7 hardware subsystems, not relying on a single side channel.
    • Strictly controlled execution (P3): Isolate CPU cores, disable hyper-threading (SMT), and fix prefetchers to exclude environmental random noise.
    • Separation of method and legal conclusion (P4): Output microarchitectural fingerprint confidence scores that comply with evidence rules, rather than a single binary verdict.

    Five-stage execution flow

    1. Artifact conditioning: Construct familiar and novel reference sets with lengths matching the test sample.
    2. Controlled execution environment assembly: On Linux, use taskset to bind a single core, enable isolcpus, and set a fixed turbo frequency (800 MHz–4.1 GHz).
    3. Target model inference: Perform standard forward computation on the test input and reference samples.
    4. Multi-witness data collection: Use PAPI to collect 263+ hardware event metrics, and read per-socket power consumption per inference via Intel RAPL.
    5. Analysis and evidence report generation: Compute z-score effect sizes for each counter relative to the reference distribution, aggregate to generate a multi-witness fingerprint (MCF) score, and provide 95% bootstrap confidence intervals.
  4. What experiments did the paper conduct?

    Experiments were evaluated on BERT, GPT-2, Pythia, and ViT. The main results show multi-model accuracy reaching 90%–100%, and non-core reads reduced by 56% in real copyrighted data tests.

    Experimental Setup

    • Models under test: BERT series (4.4M, 11.3M, 29.1M, 41.7M, 110.1M, 340M), GPT-2 series (124M, 355M, 774M, 1.5B), Pythia series (70M, 160M, 410M, 1B, 1.4B, 2.8B), Vision Transformer (ViT, 22M, 86M, 307M), and unmodified GPT.
    • Datasets and scales: IMDb (1,000 training samples vs 1,000 uniformly random token sequences, length 512); NIH Exporter (1,000 samples) and Enron Emails (1,000 samples) serve as each other's in-distribution and out-of-distribution samples; New York Times (NYT) real articles (pre-cutoff samples from 2018–2019 vs post-cutoff samples from 2020–2024, length 512); CIFAR and ImageNet (image resolution 224×224×3).
    • Hardware and backend environment: single-core isolated Intel Sapphire Rapids and Haswell architecture CPUs, standard PyTorch and Intel IPEX (with AMX/AVX-512-VNNI acceleration enabled).
    • Metric definitions: AUC, classification accuracy (Acc.), false positive rate (FPR), false negative rate (FNR), Cohen's d effect size.
    • Evaluation and classification method: a four-layer MLP classifier (neurons 512-128-32-1, 80/20 split, 10 epochs) was trained using 2,000 feature samples (100 ID and 100 OOD, each with 10 repetitions, with 1,596 features extracted per sample).

    Main Results

    According to Table III, TRANSCOPE's membership inference and out-of-distribution detection results across production-grade Transformers are as follows:

    Swipe horizontally to read the table

    Model architecture and taskParameter countAUCAccuracy (Acc.)FPRFNR
    BERT (Structured v Random)4M / 110M / 340M0.92 / 0.99 / 1.0084% / 99% / 100%0.14 / 0.01 / 0.000.19 / 0.01 / 0.00
    BERT IPEX (Structured v Random)4M / 41M / 110M0.89 / 0.96 / 0.9881% / 90% / 93%0.16 / 0.10 / 0.040.22 / 0.09 / 0.10
    GPT-2 (Structured v Random)124M / 355M / 1.5B0.99 / 1.00 / 0.9096% / 100% / 82%0.05 / 0.01 / 0.160.05 / 0.00 / 0.21
    Pythia (Structured v Random)70M / 1B / 2.8B1.00 / 0.98 / 1.0099% / 94% / 99%0.00 / 0.07 / 0.000.01 / 0.06 / 0.00
    BERT (Enron v NIH)4M / 41M / 340M0.75 / 1.00 / 0.9269% / 98% / 84%0.35 / 0.00 / 0.120.28 / 0.03 / 0.19
    BERT (NIH v Enron)4M / 41M / 340M0.73 / 0.87 / 0.9067% / 94% / 81%0.29 / 0.14 / 0.220.38 / 0.13 / 0.16
    • The authors note that in the vast majority of configurations, discrimination accuracy exceeding 90% can be achieved using hardware performance counters alone, and the attack signal generally strengthens as model size increases.
    • The table omits some intermediate-scale points: BERT (29M at 100%, 41M at 100%), GPT-2 (774M at 93%), Pythia (160M at 99%, 410M at 98%, 1.4B at 97%), BERT IPEX (11M at 83%, 29M at 88%), BERT Enron/NIH (11M at 77%, 29M at 80%, 110M at 97%), BERT NIH/Enron (11M at 73%, 29M at 80%, 110M at 80%), with full values listed in Table III.

    Real Copyrighted Data Validation (NYT Case)

    • Test content: unmodified GPT inference on Sapphire Rapids using real New York Times articles from 2019 (pre-cutoff, potentially training data) and 2020–2023 (post-cutoff, definitely non-members).
    • Experimental results: 2019 articles showed a 56% reduction in non-core request reads compared to later years (Figure 12(a) marks a decline of up to approximately 90%), a 12% reduction in DTLB load miss walk cycles (Figure 12(b)), while end-to-end timing differences were within 1.2%.
    • Authors' interpretation: the authors argue this confirms that hardware counters exhibit a clear temporal cutoff boundary on real copyrighted articles, which can serve as court-admissible copyright forensics evidence.

    Power Side Channel and Emergent Counters

    • Test content: Intel RAPL was used to monitor single-inference power consumption, and effect sizes of each counter were analyzed on Haswell and Sapphire Rapids.
    • Experimental results: non-member samples consumed 2.6%–4.5% more power than member samples, increasing monotonically with model size (Figure 3); on ViT-base (86M), the floating-point microcode assist (ASSISTS.FP) effect size reached d = 2.52 (Figure 10), and on BERT-tiny the page table walk counter effect size reached d = 0.75–0.82 (Figure 8).
    • Authors' interpretation: the authors argue this confirms that power and microcode assists constitute a new leakage channel fully orthogonal to execution time.

    Other Ablations and Analyses

    • BERT-base median cycle difference was only 0.015% (7.6×10^4 cycles), but the median page table walk count differed by 14 (Figure 7).
    • ViT-base pipeline clear effect size d was approximately 0.84, and pipeline recovery cycle effect size d was approximately 0.73 (Section V).
    • The power difference for the 4.4M-parameter tiny model was -0.65%, which the authors note is an artifact below the RAPL quantization step (Figure 3).
    • GPT-2 accuracy declined at the 1.5B parameter scale, dropping from 93% at 774M to 82%, with FPR rising to 0.16 and FNR rising to 0.21 (Table III and Figure 11).
    • BERT-large (340M) showed flat page table walk counts in the experiment varying the proportion of all-zero tokens, with the authors speculating that the model's main computation drowns out the embedding table access contribution (Figure 5).
  5. What are some points that can be further explored?

    The paper does not specifically discuss its own limitations, but proposes hardware reconstruction and channel capacity computation directions; the experiments cover specific CPUs, model scales, and test sets.

    Limitations and future directions noted by the authors

    • Branch predictor adaptive reconstruction: Future CPU designs for LLM inference could introduce "ML-phase" hint information to adaptively adjust the branch predictor's confidence threshold for out-of-distribution inputs (Section V).
    • Memory structure and prefetch optimization: For the 300+ page table walks induced by Transformer embedding table accesses, future hardware could adopt embedding-aware TLB partitioning, large-page-supported embedding tables, and speculative page table prefetch designs (Section V).
    • Formal channel capacity computation: The authors note that their publicly released 290+ event trace dataset allows the community to compute formal channel capacity theoretical upper bounds for each leaking hardware event across three model families and two microarchitectures (Section VI).
    • Defense mechanism exploration: The authors propose restricting tokenizer updates during fine-tuning, reordering embedding table token IDs by frequency to smooth access spans, and exploring a "constant-footprint execution" defense that balances energy consumption and port utilization (Section IV-Contributions).

    Experimental coverage

    • Hardware platform coverage: Tests focus on Intel Sapphire Rapids and Haswell microarchitectures running in single-core isolation; AMD processors, GPU clusters, smartphone edge chips, and proprietary AI accelerator hardware were not tested.
    • Model type and scale coverage: Covers BERT (4.4M–340M), GPT-2 (124M–1.5B), Pythia (70M–2.8B), and ViT (22M–307M), with the largest model parameter count reaching 2.8B.
    • Input sequence shape coverage: Text test samples are all truncated or padded to a uniform 512-token length, and image samples are fixed at 224×224×3 dimensions; variable-length dynamic inputs were not tested.
    • Unreported information: The paper does not report end-to-end throughput changes for each model in real production deployments, nor does it report the degree of noise interference under OS concurrent multithreading or multi-tenant shared CPU caches.
  6. Summarize the main content of the paper

    TRANSCOPE reveals hardware access locality differences in the embedding table caused by the tokenizer, confirming that microarchitectural counters can break defenses of constant time and confidence masking.
    • Core positioning: TRANSCOPE is a hardware-assisted microarchitectural membership inference and out-of-distribution detection technique that does not require model internal weights, does not rely on confidence scores, and does not depend on execution timing differences.
    • Problem to solve: Modern large language models and vision transformers commonly adopt static branchless forward propagation, and the industry is shifting toward local closed-source binary deployment with masked output confidence, rendering traditional software MIA and existing hardware side-channel attacks ineffective.
    • Core mechanism: The paper finds that model training causes high-frequency tokens to cluster while rare tokens disperse, and this geometric span directly affects the memory page locality of the embedding table, thereby triggering observable TLB misses, page table walks, and energy consumption differences at the hardware level.
    • Key experimental results: On Intel CPUs, TRANSCOPE achieves 99% accuracy and 0.99 AUC on BERT-base (Table III); in real New York Times article tests, articles truncated before training set cutoff show 56% fewer non-core reads compared to later articles (Figure 12); single-inference energy consumption shows a 2.6%–4.5% extra overhead for non-members (Figure 3).
    • Conclusion and implications: The authors point out that model training footprints are deeply imprinted in the processor's microarchitectural execution state, and relying solely on software-level confidence discretization and constant-time padding is no longer sufficient to protect privacy. Hardware design must re-examine memory hierarchy and side-channel leakage under AI workloads.

Related papers

Show 2 more papers
Read originalarxiv.org