mlsanityData to 14 Oct 2026

Coding Triangle: How Does Large Language Model Understand Code?

arXiv 2507.06138 ↗First posted 8 Jul 2025cs.CL cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have achieved remarkable progress in code generation, yet their true programming competence remains underexplored. We introduce the Code Triangle framework, which systematically evaluates LLMs across three fundamental dimensions: editorial analysis, code implementation, and test case generation. Through extensive experiments on competitive programming benchmarks, we reveal that while LLMs can form a self-consistent system across these dimensions, their solutions often lack the diversity and robustness of human programmers. We identify a significant distribution shift between model cognition and human expertise, with model errors tending to cluster due to training data biases and limited reasoning transfer. Our study demonstrates that incorporating human-generated editorials, solutions, and diverse test cases, as well as leveraging model mixtures, can substantially enhance both the performance and robustness of LLMs. Furthermore, we reveal both the consistency and inconsistency in the cognition of LLMs that may facilitate self-reflection and self-improvement, providing a potential direction for developing more powerful coding models.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 21 of its 27 references that are in the map. First posted on arXiv 8 Jul 2025.

Builds on

21 of 27 references.

References · 21

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2024The Llama 3 Herd of Modelscited by 14,715
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  6. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  7. 2024Qwen2.5 Technical Reportcited by 4,942
  8. 2021Program Synthesis with Large Language Modelscited by 3,637
  9. 2023Qwen Technical Reportcited by 3,344
  10. 2024Qwen2 Technical Reportcited by 2,120
  11. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  12. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
9 more
  1. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  2. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  3. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  4. 2022MultiPL-E: A Scalable and Extensible Approach to Benchmarking Neural Code Generationcited by 136
  5. 2024TableBench: A Comprehensive and Complex Benchmark for Table Question Answeringcited by 128
  6. 2025Competitive Programming with Large Reasoning Modelscited by 119
  7. 2024AutoKaggle: A Multi-Agent Framework for Autonomous Data Science Competitionscited by 70
  8. 2024CodeEditorBench: Evaluating Code Editing Capability of Large Language Modelscited by 23
  9. 2024M2rc-Eval: Massively Multilingual Repository-level Code Completion Evaluationcited by 21

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.