LBG: LNE-based Blocking Generation Against Data Contamination on Large Language Models

Ruijie Hou, Jiao Yueyang, Hanxu Hu, Huajian Zhang, Hongyuan LuOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

Data contamination gradually becomes inevitable during the development of large language models (LLMs), meaning the training data commonly integrates those evaluation benchmarks unintentionally. This subsequently makes it hard to benchmark LLMs fairly. This paper introduces a novel framework called LBG (\textbf{L}NE-based \textbf{B}locking \textbf{G}eneration) for both contamination detection and mitigation for evaluating contaminated LLMs. For the first component of LBG, LBG reports a SOTA performance on our proposed length normalized entropy (LNE) to identify potential contamination by detecting anomalies on possibly contaminated LLMs. For the second component of LBG, LBG reports a SOTA performance on the mitigation of the impact of data contamination by applying LNE within a novel blocking generation strategy, specialized to adjust generation processes and re-calibrate performance metrics by suppressing the maximum value of output candidates during the generation process. We conduct extensive experiments on both contamination detection and contamination mitigation evaluation tasks, on both code generation and mathematical reasoning scenarios. The results indicate that LBG achieves an obvious SOTA performance throughout the experiments conducted in this paper. Simultaneously, LGB is lightweight and costs obviously fewer computational costs (nearly 25x) than the previous work. We hope our method will open new research avenues on data contamination for LLMs. We plan to release the resources upon publication of this work to facilitate future work.
BibTeX
@misc{hou2025lbg,
  author = {Ruijie Hou and Jiao Yueyang and Hanxu Hu and Huajian Zhang and Hongyuan Lu},
  title = {{LBG: LNE-based Blocking Generation Against Data Contamination on Large Language Models}},
  year = {2025},
  url = {https://openreview.net/forum?id=HcyVr9SlwR},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}

Loading related content...

Figure