A Code Comprehension Benchmark for Large Language Models for Code
Jayant Havare, Saurav Chaudhary, Ganesh Ramakrishnan, Kaushik Maharajan, Srikanth Tamilselvam

TL;DR
This paper introduces a benchmark to evaluate and improve large language models' understanding of code semantics through fine-tuning, demonstrating significant performance gains on code comprehension tasks.
Contribution
It proposes a new benchmark for code comprehension and shows that fine-tuning models on relevant tasks enhances their semantic understanding capabilities.
Findings
Fine-tuning improves model accuracy on code comprehension tasks.
QWQ-32B model accuracy increased from 70% to 83.47%.
DPO-fine-tuned Codestral-22B achieved 87.66% micro-accuracy.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Natural Language Processing Techniques · Model-Driven Software Engineering Techniques
