Making code review evaluation smarter through semantic understanding
The research presents a novel semantic-based method for evaluating automatically generated code reviews, moving beyond traditional lexical similarity metrics.
-----
https://arxiv.org/abs/2501.05176
Original Problem π€:
β Current code review evaluation metrics like BLEU rely solely on lexical similarity, often underestimating semantically equivalent but differently worded reviews. This leads to inaccurate assessment of automatically generated code reviews.
-----
Solution in this Paper π§:
β The paper introduces GradedReviews, a benchmark with 5,164 manually scored code reviews.
β Proposes two semantic-based approaches: embedding-based similarity using deep learning models and LLM-based scoring using ChatGPT.
β The embedding method converts reviews into vectors and measures cosine similarity.
β The LLM approach directly compares generated and reference reviews through prompts.
-----
Key Insights π‘:
β Most current code review generation approaches produce low-quality reviews (90.82% rated as poor)
β Semantic-based metrics significantly outperform lexical-based metrics
β LLM-based scoring shows stronger correlation with human evaluation
-----
Results π:
β Improved correlation with human scores from 0.22 (BLEU) to 0.47 (LLM-based)
β 80.11% accuracy in matching human-assigned scores
β 7.2% higher accuracy compared to traditional metrics










