arXiv · 2604.12881
Evaluating LLMs Code Reasoning Under Real-World Context
Abstract
Code reasoning tasks are increasingly crucial to evaluating large language models (LLMs). Yet most existing benchmarks rely on simplistic, LLM-generated snippets or human-written solutions to code challenges and often restrict inputs and outputs to primitive types, failing to reflect the structure and dependencies of real-world projects. These simplifications limit their ability to measure practical generalizability. We present R2Eval1, a benchmark of 135 code reasoning problems drawn from ten widely used Python projects. Unlike prior work, R2Eval serializes compound and custom types, preserving real-world data complexity and enabling a more realistic assessment of LLMs.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Changshu Liu. 2026-04-14. Evaluating LLMs Code Reasoning Under Real-World Context. https://arxiv.org/abs/2604.12881
Cite the original work for its findings. Save a collection to share your selection of sources.