TL;DR
Did someone use your dataset to train their AI model without permission? Instead of analyzing a model's external outputs, idSCD looks inside the model to detect the unique "fingerprints" left behind by dataset-specific spurious correlations. This new white-box membership inference method outperforms traditional black-box baselines, achieving a mean ROC-AUC of 0.9472 across diverse text classification tasks.
What Problem Does This Paper Address?
As large language models are increasingly trained on massive, opaque mixtures of public, private, and licensed data, verifying data provenance has become crucial for auditing privacy, licensing compliance, and benchmark contamination.
Existing approaches to dataset-level membership inference (determining if an entire dataset was part of a model's training mixture) are primarily output-driven. They probe the model from the outside, relying on behavioral signals like confidence scores, losses, prediction margins, or generated samples. However, these methods struggle when different datasets induce similar output behaviors, or when membership evidence is buried deep within the model's internal structure.
This paper shifts the paradigm from behavioral tracking to semantic tracing. It addresses a core question: Can a dataset be recognized purely from the incidental, non-causal regularities (spurious correlations) it induces during training?
Methods
The authors introduce idSCD (Identifying Training Datasets through Semantic Correlation Descriptors), a white-box framework that maps out how strongly a model associates specific keywords with target classes.
The pipeline consists of three main steps:
- Extracting Semantic Correlation Maps: Using a tool called BEE (Bridging Explainability and Embeddings), the method extracts keyword-class correlations by comparing keyword embeddings from the model's hidden states with the class weight vectors from the classification head.
- Zero-Fill Alignment: Because different datasets contain different keywords, the authors introduce a shared global vocabulary space. If a keyword is missing from a specific dataset, its correlation score is safely set to zero, allowing direct matrix comparisons.
- SCD-Based Scoring: The final representation is vectorized into a Semantic Correlation Descriptor (SCD). To check if a target dataset was used during training, the framework simply computes the Pearson correlation coefficient between the inspected model's SCD and the standalone target dataset's SCD.
Datasets
The approach was evaluated across three distinct text-classification dataset groups, all mapped to shared canonical label spaces:
- Natural Language Inference (NLI): Composed of three datasets of English text written by non-native speakers: Reddit-L2, EFCAMDAT, and iTalki, filtered to 5 shared first-language classes.
- Emotion Classification: Four heterogeneous sources (EmoLit, EmotionDataset20, GoEmotions, and a merged XED/SMED corpus) collapsed into 9 shared emotion classes.
- Medical Section Classification: Derived from the PubMed 200k RCT corpus. To create distinct semantic fingerprints, the authors used TF-IDF and K-Means clustering to partition the data into 5 semantically distinct topic clusters.
Key Insights and Ideas
- Spurious Correlations as Fingerprints: Datasets naturally contain incidental regularities (e.g., specific keywords frequently co-occurring with a label due to annotation protocols or domain quirks). Models internalize these shortcuts, leaving a permanent, identifiable stamp on their internal geometry.
- The Power of Internal Auditing: Probing a model's internal weight-space alignment provides a much more stable and discriminative signal than looking at external predictions, especially when datasets share identical label spaces but differ in semantic content.
- A Priori Feasibility Checks: The success of SCD-based inference relies on keyword overlap across datasets. The authors note that this overlap can be measured before running any expensive training or attacks, serving as a built-in diagnostic tool for how well the method will perform.
Key Results
The authors evaluated idSCD in both a controlled diagnostic setting and a practical membership inference scenario against strong baselines (RMIA, Attack-P, LiRA, and SIF).
Controlled Sensitivity Analysis
In a leave-one-dataset-out setup, the difference-based SCD perfectly isolated dataset-specific changes, achieving a flawless 100% ROC-AUC across all dataset groups. This proved that the semantic correlation signal is highly specific to individual datasets and not just a generic training artifact.
Practical Membership Inference
In realistic settings where leave-one-out models are unavailable, idSCD achieved the highest average performance:
- Medical Dataset Group: idSCD outperformed all baselines by more than 60%, reaching an ROC-AUC of 0.9511. Because the medical splits were clustered by topic, the internal semantic correlation changes were incredibly distinct.
- Emotion Dataset Group: achieved the top performance with an ROC-AUC of 0.9800 (an 8% improvement over the strongest baseline).
- Overall Stability: Across all groups, idSCD achieved the highest mean ROC-AUC (0.9472) and the lowest standard deviation ($\pm 0.03$), demonstrating remarkable stability compared to fluctuating black-box baselines.
Limitations and Future Work
- White-Box Constraint: The current instantiation requires direct access to internal model parameters, embeddings, and classification weights, making it unsuitable for fully closed, API-protected models.
- Identity vs. Similarity: A high SCD score indicates that a dataset-level correlation pattern is present, but it cannot definitively prove sample-level membership if two datasets are near-duplicates or share identical domain styles.
- Keyword Dependency: Performance drops when the common keyword support between datasets is sparse (as seen in the NLI dataset group, where keyword overlap was only 15%).
Future work could explore adapting this semantic tracing principle to black-box settings using output-based probes or distilled surrogate models.
Summary updated