paper-with-me

홈 › Papers

A Code Comprehension Benchmark for Large Language Models for Code

2025-07-14 · Jayant Havare, Saurav Chaudhary, Ganesh Ramakrishnan, Kaushik Maharajan, Srikanth Tamilselvam arxiv

Large Language Models have shown impressive capabilities in coding tasks like code generation and code completion, as they have been trained on a large amount of code data. Also, since one of the core pretraining objectives is Next Token Prediction, these models tends to learn surface-level syntactic patterns in code. However, this does not guarantee code comprehension ability i.e. the ability to capture the semantics of the code. In our opinion, this is the reason why these models often underperform on tasks that require deeper semantic understanding, such as code debugging and code optimization. To address this, we propose fine-tuning these models specifically for code comprehension tasks using large-scale datasets, enabling them to develop a more robust understanding of code semantics. We evaluate three code models of varying sizes on a suite of code comprehension tasks designed to assess semantic understanding beyond surface-level syntactic pattern matching. In particular, we analyze performance on the Subjectivity Grading Task and observe that model performance improves after fine-tuning on relevant downstream tasks. The most significant improvement is seen in the QWQ-32B model, where accuracy increases from 70% to 83.47%. A similar or explainable trend is observed across other models, clearly indicating an enhancement in code comprehension ability. Among the models studied, the DPO-fine-tuned Codestral-22B achieves the highest micro-accuracy of 87.66% on the Subjectivity Grading Task.

📄 PDF Abstract BibTeX arXiv:2507.10641

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationCode Completion

Similar Papers 제목 키워드 기반

Lost in the Mix: Evaluating LLM Understanding of Code-Switched Text

2025-06-16 · Amr Mohamed, Yang Zhang, Michalis Vazirgiannis, Guokan Shang

Code-switching (CSW) is the act of alternating between two or more languages within a single discourse. This phenomenon is widespread in multilingual communities, and increasingly prevalent in online content, where users…

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

JavisGPT: A Unified Multi-modal LLM for Sounding-Video Comprehension and Generation

2025-12-28 · Kai Liu, Jungang Li, Yuchong Sun, Shengqiong Wu 외 arxiv

This paper presents JavisGPT, the first unified multimodal large language model (MLLM) for joint audio-video (JAV) comprehension and generation. JavisGPT has a concise encoder-LLM-decoder architecture, which has a SyncFu…

Leveraging Artificial Intelligence on Binary Code Comprehension

2022-10-11 · Yifan Zhang

Understanding binary code is an essential but complex software engineering task for reverse engineering, malware analysis, and compiler optimization. Unlike source code, binary code has limited semantic information, whic…

Compiler OptimizationMalware Analysis

CodeApex: A Bilingual Programming Evaluation Benchmark for Large Language Models

2023-09-05 · Lingyue Fu, Huacan Chai, Shuang Luo, Kounianhua Du 외

With the emergence of Large Language Models (LLMs), there has been a significant improvement in the programming capabilities of models, attracting growing attention from researchers. Evaluating the programming capabiliti…

Code GenerationMultiple-choice