An LLM's Attempts to Adapt to Diverse Software Engineers' Problem-Solving Styles: More Inclusive & Equitable?
Andrew Anderson, David Piorkowski, Margaret Burnett, Justin Weisz
TL;DR
The paper investigates whether a code-explanation LLM can adapt to diverse software engineers problem-solving styles using GenderMag and evaluates inclusivity and equity outcomes. Using COBOL programs and a between-subjects design across five style treatments, the study finds that unadapted explanations are often inequitable, while matching adaptations can enhance both inclusivity and equity, though not universally and sometimes at the cost of other groups. Mismatches generally reduce equity and can undermine inclusivity, highlighting complex interactions among multiple style dimensions. The work advances inclusive UX in AI-assisted programming by experimentally examining the tradeoffs and proposing an optimization framing for multi-style adaptations.
Abstract
Software engineers use code-fluent large language models (LLMs) to help explain unfamiliar code, yet LLM explanations are not adapted to engineers' diverse problem-solving needs. We prompted an LLM to adapt to five problem-solving style types from an inclusive design method, the Gender Inclusiveness Magnifier (GenderMag). We ran a user study with software engineers to examine the impact of explanation adaptations on software engineers' perceptions, both for explanations which matched and mismatched engineers' problem-solving styles. We found that explanations were more frequently beneficial when they matched problem-solving style, but not every matching adaptation was equally beneficial; in some instances, diverse engineers found as much (or more) benefit from mismatched adaptations. Through an equity and inclusivity lens, our work highlights the benefits of having an LLM adapt its explanations to match engineers' diverse problem-solving style values, the potential harms when matched adaptations were not perceived well by engineers, and a comparison of how matching and mismatching LLM adaptations impacted diverse engineers.
