Saved in:
Bibliographic Details
Main Authors: Dziuba, Maria, Malykh, Valentin
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.19757
Tags: Add Tag
No Tags, Be the first to tag this record!
Table of Contents:
  • Effective generation of structured code comments requires robust quality metrics for dataset curation, yet existing approaches (SIDE, MIDQ, STASIS) suffer from limited code-comment analysis. We propose CIDRe, a language-agnostic reference-free quality criterion combining four synergistic aspects: (1) relevance (code-comment semantic alignment), (2) informativeness (functional coverage), (3) completeness (presence of all structure sections), and (4) description length (detail sufficiency). We validate our criterion on a manually annotated dataset. Experiments demonstrate CIDRe's superiority over existing metrics, achieving improvement in cross-entropy evaluation. When applied to filter comments, the models finetuned on CIDRe-filtered data show statistically significant quality gains in GPT-4o-mini assessments.