Search papers, labs, and topics across Lattice.
This study investigates how large language model (LLM) code explanations can be tailored to accommodate diverse problem-solving styles, addressing a significant gap in existing research. By employing an inclusive design method, the authors generated 1,072 code explanations from six open-weight LLMs and identified a taxonomy of 13 linguistic adaptations that enhance the relevance of explanations for different users. The findings reveal that certain LLMs are more adept at adapting their outputs to align with users' problem-solving preferences, which could significantly improve productivity and learning outcomes for users in coding contexts.
Tailoring LLM code explanations to individual problem-solving styles can dramatically enhance user productivity and learning in coding tasks.
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.