idSCD: Identifying Training Datasets through Semantic Correlation Descriptors

Andrada Gobeaja, Ionut Hodoroaga, Elena Burceanu, Marius Leordeanu

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.

Figure 1: Dataset membership through semantic correlation fingerprints. The pipeline evaluates whether dataset-specific regularities leave recoverable traces in the semantic correlation structure of trained models. We extract semantic correlations over a keyword vocabulary shared within each dataset group, aggregate them into Semantic Correlation Descriptors (SCDs), and use the SCD classifier over the membership score to test whether a target dataset was part of the training mixture.

The pipeline consists of three main steps:

  1. 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.
  2. 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.
  3. 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.

Dataset-specificity of correlation descriptors across Medical, Emotion, and NLI groups.

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

Abstract

Can a dataset be recognized from the spurious correlations it induces during training? We argue that datasets leave dataset-specific traces in a model's learned semantic correlation structure: incidental regularities that are predictive within a dataset, but not causal for the underlying task, can be internalized during training. We use this insight to study dataset-level membership inference, moving beyond existing methods that rely on behavioral or distributional evidence such as confidence scores, losses, margins, generated samples, or query responses. We introduce a white-box semantic fingerprinting approach based on semantic correlation descriptors (SCDs), which capture the semantic correlation structure learned by a model and make it comparable across dataset mixtures. In a controlled leave-one-dataset-out diagnostic, SCDs recover dataset-specific changes and perfectly separate matching from non-matching dataset pairs. We then propose a practical SCD-based membership score that tests whether a target dataset is part of a model's training mixture using only the model's SCD and the target dataset's standalone SCD, without requiring leave-one-dataset-out models. Across three diverse experimental settings, with dataset groups for natural language inference, emotion classification, and medical text classification, we test both the advantages and limitations of SCD-based membership inference with different degrees of semantic separation and keyword support between dataset splits. On average, the classifier based on this score achieves the highest performance and the lowest std, outperforming black-box baselines RMIA, Attack-P, and LiRA, as well as the white-box SIF baseline. These results show that dataset membership can be traced through internal semantic correlations, with the largest relative gain exceeding 60% in ROC-AUC when dataset groups expose distinct semantic particularities.
BibTeX
@inproceedings{gobeaja2026idscd,
  author = {Andrada Gobeaja and Ionut Hodoroaga and Elena Burceanu and Marius Leordeanu},
  title = {{idSCD: Identifying Training Datasets through Semantic Correlation Descriptors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=D59otSencJ},
}
Figure