atlas

Research map / Large language models / Agents, code and math

CodeMMLU: A Multi-Task Benchmark for Assessing Code Understanding & Reasoning Capabilities of CodeLLMs

ICLR 2025 · Large language models › Agents, code and math · approach: Code generation benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces CodeMMLU, a ~20k-question multiple-choice benchmark for code understanding and reasoning across knowledge and fundamental coding tasks, evaluating 40+ code and general LLMs.

Problem

Existing code benchmarks focus on open-ended generation and rely on test execution or LLM judges, offering limited assessment of whether CodeLLMs truly understand code.

Approach

A large-scale multiple-choice benchmark spanning software-knowledge questions (syntactic and semantic) and fundamental coding tasks (code completion, fill-in-the-blank, code repair, execution prediction), with LLM-based and execution-based filtering, distractor generation, and answer-order permutation to probe selection bias.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Chain-of-Thought prompting instead of zero-shot promptingGPT-4o · CodeMMLUaccuracyHurt
Use Chain-of-Thought prompting instead of zero-shot promptingCodeLLMs across evaluated model families · CodeMMLUaccuracyHurt
Use few-shot prompting instead of zero-shot promptingCodeLLMs · CodeMMLU knowledge tasksaccuracyHelped
Use few-shot prompting instead of zero-shot promptingCodeLLMs · CodeMMLU real tasksaccuracyHurt
Instruction-tune DeepSeek-Coder-33BDeepSeek-Coder-33B · CodeMMLUaccuracy: approximately 29%Helped
Use DeepSeek R1 instead of DeepSeek V3DeepSeek · CodeMMLUaccuracy (%) — overall: 49.08 -> 43.91Hurt
Move the correct answer from position A to position BCodeLlama-7B-Python · CodeMMLU code completion MCQaccuracy (%): 0.00 -> 90.24Helped
Move the correct answer from position B to position ACodeLlama-7B-Python · CodeMMLU code completion MCQaccuracy (%): 90.24 -> 0.00Hurt
Reorder the correct answer among A, B, C, and DLLMs on CodeMMLU code completion · CodeMMLU code completion MCQaccuracy: average performance drop of 25%; average increase of 15.49%Mixed
Use open-ended generation rather than MCQ code completionCodeLLMs · HumanEval and CodeMMLU code completionaccuracyMixed
Increase answer-choice order sensitivityCodeLLMs on CodeMMLU code completion · CodeMMLU code completion MCQaccuracy standard deviation: 4.38; 31.75Mixed

Surprising findings

Limitations

Experimental setup

Datasets: W3Schools quizzes GeeksforGeeks Common Crawl HumanEval QuixBugs IBM CodeNet LeetCode

Benchmarks: CodeMMLU HumanEval MMLU GSM8K MBPP

Metrics: accuracy standard deviation across answer positions Pearson correlation perplexity 5-gram accuracy

Baselines: HumanEval MBPP CRUXEval LiveCodeBench CodeApex CodeScope

Builds on: MMLU HumanEval QuixBugs IBM CodeNet

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy