Knowledge distillation unintentionally transfers test data contamination to student models
https://arxiv.org/abs/2411.02284
π€ **Original Problem**
Neural ranking models are computationally expensive. Knowledge distillation helps create smaller efficient models from larger ones. But when using closed-source commercial models as teachers, there's risk of data contamination if test collections were part of their training data.
-----
π οΈ **Solution in this Paper**
β Simulated worst-case contamination by directly adding test data into teacher model's training
β Used ELECTRA-based cross-encoder as teacher and both ELECTRA cross-encoders and BERT bi-encoders as students
β Evaluated three distillation techniques: marginMSE, KL divergence minimization, and RankNet loss
β Tested on MSMARCO passage collection with TREC Deep Learning 2019/2020 and TREC COVID datasets
-----
π‘ **Key Insights**
β Even 0.1% test data contamination significantly impacts student model performance
β RankNet-style order distillation showed largest effectiveness disparities with contaminated teachers
β Out-of-distribution contamination can exceed standard cross-encoder performance by >10 points in nDCG@10
β Cross-contamination between different datasets yielded unexpected effectiveness improvements
-----
π **Results**
β Cross-architecture distillation with contaminated OOD data exceeded standard cross-encoder by >10 points nDCG@10
β OOD contamination improved effectiveness across collections, even outperforming in-distribution contamination










