Enhancing Code Consistency in AI Research with Large Language Models and Retrieval-Augmented Generation

Ensuring that code accurately reflects the algorithms and methods described in research papers is critical for maintaining credibility and fostering trust in AI research. This paper presents a novel system designed to verify code implementations against the algorithms and methodologies outlined in corresponding research papers. Our system employs Retrieval-Augmented Generation to extract relevant details from both the research papers and code bases, followed by a structured comparison using Large Language Models. This approach improves the accuracy and comprehensiveness of code implementation verification while contributing to the transparency, explainability, and reproducibility of AI research. By automating the verification process, our system reduces manual effort, enhances research credibility, and ultimately advances the state of the art in code verification.
View on arXiv@article{keshri2025_2502.00611, title={ Enhancing Code Consistency in AI Research with Large Language Models and Retrieval-Augmented Generation }, author={ Rajat Keshri and Arun George Zachariah and Michael Boone }, journal={arXiv preprint arXiv:2502.00611}, year={ 2025 } }