AI-based code generation is increasingly prevalent, with GitHub Copilot estimated to generate 46% of the code on GitHub. Accurately evaluating how well generated code aligns with developer intent remains a critical challenge. Traditional evaluation methods, such as unit tests, are often unscalable and costly. Syntactic similarity metrics (e.g., BLEU, ROUGE) fail to capture code functionality, and metrics like CodeBERTScore require reference code, which is not always available. To address the gap in reference-free evaluation, with few alternatives such as ICE-Score, this paper introduces MATCH, a novel reference-free metric. MATCH uses Contrastive Learning to generate meaningful embeddings for code and natural language task descriptions, enabling similarity scoring that reflects how well generated code implements the task. We show that MATCH achieves stronger correlations with functional correctness and human preference than existing metrics across multiple programming languages.
VisTA: Vision-Text Alignment Model with Contrastive Learning using Multimodal Data for Evidence-Driven, Reliable, and Explainable Alzheimer's Disease Diagnosis
Centre hospitalier universitaire vaudois (CHUV)(洛桑大学医院中心(CHUV));Université de Lausanne (UNIL)(洛桑大学(UNIL));VNU University of Engineering and Technology, Vietnam National University(越南国家大学下属越南工程技术大学);University of Science, Vietnam National University Ho Chi Minh City(胡志明市越南国家大学下属科学大学);Military Hospital 175(175军事医院);School of Biomedical Engineering, International University, Vietnam National University(越南国家大学下属国际大学生物医学工程学院)