RADAR: Mechanistic Pathways for Detecting Data Contamination in LLM Evaluation
Ashish Kattamuri, Harshwardhan Fartale, Arpita Vats, Rahul Raja, Ishita Prasad
TL;DR
Data contamination undermines reliable LLM evaluation by conflating memorization with genuine reasoning. RADAR uses mechanistic interpretability to distinguish recall from reasoning by extracting 37 surface and internal features and employing an ensemble of four classifiers, achieving about $93\%$ overall accuracy and strong performance on clear cases while handling challenging prompts. The approach highlights interpretable signatures such as specialized attention and circuit dynamics, and operates without access to training data, offering a practical tool to improve evaluation reliability. This work suggests a scalable direction for LLM assessment that complements traditional metrics by examining internal computation rather than solely outputs.
Abstract
Data contamination poses a significant challenge to reliable LLM evaluation, where models may achieve high performance by memorizing training data rather than demonstrating genuine reasoning capabilities. We introduce RADAR (Recall vs. Reasoning Detection through Activation Representation), a novel framework that leverages mechanistic interpretability to detect contamination by distinguishing recall-based from reasoning-based model responses. RADAR extracts 37 features spanning surface-level confidence trajectories and deep mechanistic properties including attention specialization, circuit dynamics, and activation flow patterns. Using an ensemble of classifiers trained on these features, RADAR achieves 93\% accuracy on a diverse evaluation set, with perfect performance on clear cases and 76.7\% accuracy on challenging ambiguous examples. This work demonstrates the potential of mechanistic interpretability for advancing LLM evaluation beyond traditional surface-level metrics.
