TL;DR
Subliminal learning allows language models to secretly inherit behavioral traits from training data that has no obvious semantic connection to those traits, rendering standard content filters useless. This paper investigates whether gradient-based Training Data Attribution (TDA) can detect and filter out this stealthy data, finding that while token-level attribution shows promise, current methods remain too inconsistent and unreliable to be a silver bullet for AI safety.
What Problem Does This Paper Address?
Safety interventions like RLHF or machine unlearning can often be bypassed via cheap adversarial fine-tuning. Filtering the pre-training data is a much more robust solution, but it traditionally relies on semantic classifiers to spot harmful content.
This approach fails against subliminal learning—a phenomenon where a model picks up a persona or bias (e.g., a preference for a specific animal) from data that seems completely unrelated (e.g., lists of numbers generated by a biased teacher model). Because there is no semantic link, standard filters are blind to it. The authors investigate whether Training Data Attribution (TDA)—which uses gradients to trace model behaviors back to specific training examples regardless of text content—can be used to detect and filter out subliminal learning data.
Methods
The authors evaluate three gradient-based TDA methods to score the influence of training data on a target behavior:
- GradCos: Measures the cosine similarity between the loss gradient of the training data and a target query set.
- GradCos-diff: A contrastive variant that subtracts the average GradCos score of 16 counterfactual behaviors to isolate the specific bias.
- EK-FAC: An influence function approximation that preconditions gradients using an eigenvalue-corrected Kronecker-factored approximate curvature (Fisher matrix).
They compare these against Divergence Tokens, a strong baseline that identifies exact tokens where biased and unbiased teacher models diverge.
Filtering is evaluated at two granularities: sample-level (removing entire sequences) and token-level (masking specific tokens' loss). They use cumulative filtering (sweeping the fraction of retained data) and decile training (training separate models on data split into ten attribution tiers) to measure the fidelity of the attribution signals.
Datasets
The authors generate synthetic datasets where a teacher model is fine-tuned to prefer a specific target animal (e.g., cat, dog, elephant, lion, wolf). This biased teacher then generates sequences of up to ten numbers. Any data directly mentioning the animal is discarded, leaving a dataset of pure numbers that implicitly carries the subliminal bias. These datasets are tested across three open-source models: Llama-3.2-1B-Instruct, Qwen2.5-3B-Instruct, and Olmo-3-7B-Instruct.
Key Insights and Ideas
- Granularity Matters (Tokens > Samples): Subliminal learning signals are highly concentrated in a sparse set of tokens scattered across many samples. Aggregating these scores to the sample level dilutes the signal, making sample-level filtering significantly less effective.
- Inconsistency is the Enemy: A TDA method that successfully mitigates a bias in one model-target pair might completely fail in another. For instance, filtering worked well for a "dog" preference but struggled with an "elephant" preference in Qwen2.5-3B.
- The Counterfactual Catch-22: The most effective filtering method relies on tracking "divergence tokens," but this requires training multiple counterfactual teacher models on alternative targets—a luxury defenders won't have in real-world threat scenarios where the attacker's exact objective is unknown.
Key Results
- EK-FAC emerged as the most consistent gradient-based method at the token level, recovering between 0.25 and 1.30 of the full fine-tuning gap across various settings, occasionally matching or exceeding the divergence token baseline.
- GradCos and GradCos-diff performed poorly, failing to show a statistically significant effect in more than a third of the tested settings.
- In cumulative token-level filtering on Qwen2.5-3B, retaining just the top 10% highest-attributed tokens under EK-FAC induced the same subliminal effect as training on the entire dataset, confirming that the bias is highly concentrated.
Limitations and Future Work
- High Computational Cost: Gradient-based TDA methods like EK-FAC are computationally expensive and difficult to scale to massive, web-scale pre-training corpora.
- Lack of Generalizability: Performance varies wildly by model architecture, size, and target bias, meaning sample-level TDA cannot be safely deployed without per-setting validation.
- U-Shaped Anomalies: For some token-level filtering setups, tokens with highly negative attribution scores unexpectedly increased the subliminal learning rate, a phenomenon the authors note is currently unexplained.
Future work must explore more advanced, scalable attribution approximations to find cleaner data signals that resist these anomalies.
Summary updated