mlsanityData to 7 Oct 2026

Explaining Competitive-Level Programming Solutions using LLMs

arXiv 2307.05337 ↗First posted 11 Jul 2023cs.CLcited by 13

Not on the map. Why?

Abstract (arXiv)

In this paper, we approach competitive-level programming problem-solving as a composite task of reasoning and code generation. We propose a novel method to automatically annotate natural language explanations to textit<problem, solution> pairs. We show that despite poor performance in solving competitive-level programming problems, state-of-the-art LLMs exhibit a strong capacity in describing and explaining solutions. Our explanation generation methodology can generate a structured solution explanation for the problem containing descriptions and analysis. To evaluate the quality of the annotated explanations, we examine their effectiveness in two aspects: 1) satisfying the human programming expert who authored the oracle solution, and 2) aiding LLMs in solving problems more effectively. The experimental results on the CodeContests dataset demonstrate that while LLM GPT3.5's and GPT-4's abilities in describing the solution are comparable, GPT-4 shows a better understanding of the key idea behind the solution.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 20 of its 35 references that are in the map. First posted on arXiv 11 Jul 2023.

Builds on

20 of 35 references.

References · 20

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  6. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  7. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  8. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  9. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
  10. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
  11. 2023Teaching Large Language Models to Self-Debugcited by 963
  12. 2022STaR: Bootstrapping Reasoning With Reasoningcited by 895
8 more
  1. 2022CodeT: Code Generation with Generated Testscited by 369
  2. 2023LEVER: Learning to Verify Language-to-Code Generation with Executioncited by 228
  3. 2016DeepCoder: Learning to Write Programscited by 145
  4. 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 95
  5. 2022Experiences from Using Code Explanations Generated by Large Language Models in a Web Software Development E-Bookcited by 84
  6. 2022Iteratively Prompt Pre-trained Language Models for Chain of Thoughtcited by 75
  7. 2023Comparing Code Explanations Created by Students and Large Language Modelscited by 63
  8. 2018Neural Program Search: Solving Programming Tasks from Description and Examplescited by 10

Built on by

Cited by year

Citing papers per year: 2023: 3; 2024: 7; 2025: 3.

13 papers.

Sort:

By area: