paper-with-me

Papers

Mutation-based Consistency Testing for Evaluating the Code Understanding Capability of LLMs

2024-01-11 · Ziyu Li, Donghwan Shin

Large Language Models (LLMs) have shown remarkable capabilities in processing both natural and programming languages, which have enabled various applications in software engineering, such as requirement engineering, code generation, and software testing. However, existing code generation benchmarks do not necessarily assess the code understanding performance of LLMs, especially for the subtle inconsistencies that may arise between code and its semantics described in natural language. In this paper, we propose a novel method to systematically assess the code understanding performance of LLMs, particularly focusing on subtle differences between code and its descriptions, by introducing code mutations to existing code generation datasets. Code mutations are small changes that alter the semantics of the original code, creating a mismatch with the natural language description. We apply different types of code mutations, such as operator replacement and statement deletion, to generate inconsistent code-description pairs. We then use these pairs to test the ability of LLMs to correctly detect the inconsistencies. We propose a new LLM testing method, called Mutation-based Consistency Testing (MCT), and conduct a case study on the two popular LLMs, GPT-3.5 and GPT-4, using the state-of-the-art code generation benchmark, HumanEval-X, which consists of six programming languages (Python, C++, Java, Go, JavaScript, and Rust). We compare the performance of the LLMs across different types of code mutations and programming languages and analyze the results. We find that the LLMs show significant variation in their code understanding performance and that they have different strengths and weaknesses depending on the mutation type and language.

📄 PDF Abstract BibTeX arXiv:2401.05940

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationHumanEvalsoftware testing

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Transformer A Transformer is a model architecture that eschews recurrence and instead relies entirely on an [attention…
15 Ways to Contact How can i speak to someone at Delta Airlines 설명 없음
{Dispute@FaQ-s}How to file a dispute with Expedia? How to file a dispute with Expedia? To file a complaint against Expedia, first try contacting their customer service directly. You can reach them by phone at…

Similar Papers 제목 키워드 기반

MILE: A Mutation Testing Framework of In-Context Learning Systems

2024-09-07 · Zeming Wei, Yihao Zhang, Meng Sun

In-context Learning (ICL) has achieved notable success in the applications of large language models (LLMs). By adding only a few input-output pairs that demonstrate a new task, the LLM can efficiently learn the task duri…

In-Context Learning

MUGEN: Evaluating and Improving Multi-audio Understanding of Large Audio-Language Models

2026-03-10 · Chih-Kai Yang, Yun-Shao Tsai, Yu-Kai Guo, Ping-Le Tsai 외 arxiv

While multi-audio understanding is critical for large audio-language models (LALMs), it remains underexplored. We introduce MUGEN, a comprehensive benchmark evaluating this capability across speech, general audio, and mu…

How Accurately Do Large Language Models Understand Code?

2025-04-06 · Sabaat Haroon, Ahmad Faraz Khan, Ahmad Humayun, Waris Gill 외

Large Language Models (LLMs) are increasingly used in post-development tasks such as code repair and testing. A key factor in these tasks' success is the model's deep understanding of code. However, the extent to which L…

Code GenerationCode RepairFault localization

Cheap Permutation Testing

2025-02-11 · Carles Domingo-Enrich, Raaz Dwivedi, Lester Mackey

Permutation tests are a popular choice for distinguishing distributions and testing independence, due to their exact, finite-sample control of false positives and their minimax optimality when paired with U-statistics. H…

Are Large Language Models Robust in Understanding Code Against Semantics-Preserving Mutations?

2025-05-15 · Pedro Orvalho, Marta Kwiatkowska

Understanding the reasoning and robustness of Large Language Models (LLMs) is critical for their reliable use in programming tasks. While recent studies have assessed LLMs' ability to predict program outputs, most focus …

Mathematical Reasoning