Skip to content

Can LLM Code Explanations Adapt to Diverse Problem-Solvers' Needs?

Jul 2026 · arXiv.org · Vol abs/2607.17022 · 0 citations
Computer Science

TL;DR

This paper is the first to investigate problem-solving style adaptations in LLM code explanation, contributing two problem-solving adaptation approaches: declarative statements for each adaptation and 10 problem-solving style prompts.

Abstract

Large language model (LLM) code explanations can support people in solving code-related problems, yet prior work has shown that people have diverse problem-solving styles. If explanations fail to meet people's problem-solving needs, they may be less productive in their occupations and miss opportunities to learn and grow. Although some research has examined how LLMs can adapt their outputs to a user's age or expertise, no prior work has examined how LLMs can adapt their code explanations to people's problem-solving styles. To address this gap, we developed prompts from an established inclusive design method that considers 5 types of problem-solving styles, and we generated 1,072 code explanations from six open-weight LLMs. Using natural language processing techniques, we uncovered a taxonomy of 13 linguistic adaptations, with each adaptation supported by evidence from the literature, the prompts, or the LLMs'outputs. They also show which LLMs adapted their code explanations more frequently than others. This paper is the first to investigate problem-solving style adaptations in LLM code explanation, contributing two problem-solving adaptation approaches: declarative statements for each adaptation and 10 problem-solving style prompts.

View source

Similar papers

#artificial intelligence Preprint Sep 2026

Beyond Prompt or Skill? Attribution-Guided Optimization of Modular LLM Programs

SPARO (Skill, Prompt, And Routing Optimization), a framework that jointly optimizes task instructions, reusable skill blocks, and routing rules, is proposed, suggesting that effective language-program optimization depends not only on discovering useful task knowledge, but also on deciding where that knowledge should be...

Hao-Ran Shou, Hao-Yue Liu, Yun-Chen Huo et al. · 0 citations
#human-computer interacti... Preprint Aug 2026

Self-Explanation Tutor for Active Study of CS1 Worked Examples

Worked examples are an important part of introductory programming, but reading their expert explanations is passive. Self explanation, students explaining the problem and its solution to themselves with subgoal level analysis, converts passive reading into an active study of worked example, yet it is hard to scale beca...

Arun-Balajiee Lekshmi-Narayanan, Mohammad Hassany, Kamil Akhuseyinoglu et al. · 0 citations
Conference Sep 2026

Explanation First Prompting for Reviewing AI Programming Answers in Undergraduate Courses

Undergraduate students can now obtain complete programming answers from generative artificial intelligence systems in seconds, but many of those answers are accepted with little checking. This paper examines whether explanation-first prompting makes such answers easier to review rather than whether it improves student...

Orest Raiter · 0 citations
Preprint Aug 2026

Why Do LLMs Fail at OCL Generation? A Graph Reasoning Perspective

The underlying causes of LLM failures in OCL generation are investigated, framing the task as a graph reasoning problem over UML class diagrams and finding that OCL generation performance significantly degrades with increasing navigation depth and structural complexity.

Hamza Attarwala, Moataz Chouchen, Mohammad Hamdaqa et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Adaptive-GEPA: Make Your Harness Fit Heterogeneous Requests

Reflective optimizers such as GEPA improve language model prompts from execution traces and evaluator feedback; full-program extensions can also rewrite tools and control flow. In practice, a user hands the same endpoint heterogeneous requests whose effective solutions require different tools, reasoning modes, and cont...

Tian-Yu Chen, Yasi Zhang, Rui-Yi Wang et al. · 0 citations
#software testing Preprint Sep 2026

Enhancing Automated Unit Test Generation for NLP Libraries Using Large Language Models

LLMSuite is proposed, a hybrid test generation framework that integrates self-refinement prompting with class-level LLM reasoning into the search-based testing process and complements manually written test suites by exercising domain-specific behaviors that are often left untested.

Amirhossein Deljouyi, Annibale Panichella, Andy Zaidman · 0 citations

Related blog posts

MIT News · Artificial Intelligence Oct 15, 2026

AI model decodes the language cells use to communicate

A new computational approach reveals how cells communicate to assemble into tissues. This could accelerate stem cell engineering, improve disease models, and inform therapies.

Microsoft Research Blog Oct 15, 2026

Proof-based general-purpose computing with Magnetar

Zero-knowledge proofs can verify computing results without rerunning workloads or exposing sensitive data. Magnetar helps bring them into the mainstream with support for standard programming languages, major speed gains, and quantum-resistant security. The post Proof-based general-purpose computing with Magnetar appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.