NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

"What It Wants Me To Say": Bridging the Abstraction Gap Between End-User Programmers and Code-Generating Large Language Models

Michael Xieyang Liu, Advait Sarkar, Carina Negreanu, Benjamin G. Zorn, Jack Williams, Neil Toronto, Andrew D. GordonCHI 2023 · DOI

Introduction

Large Language Models (LLMs) like OpenAI’s Codex have revolutionized the potential for end-user programming by allowing users to generate code through natural language. However, a significant barrier remains: the "abstraction gap." This gap represents the distance between a user’s high-level intent and the specific, often rigid, linguistic patterns required by an LLM to produce correct code. For non-expert programmers, such as spreadsheet users, this gap often manifests as a frustrating "trial and error" loop.

This paper introduces grounded abstraction matching, a technique designed to bridge this gap by translating generated code back into systematic, naturalistic utterances. By providing a transparent and editable feedback loop, the system helps users develop a more accurate mental model of the AI's capabilities and the specific "dialect" it requires.

The Problem: The Abstraction Gap

While LLMs are capable of mapping natural language to code, the mapping is often "fuzzy." A user might request to "find the average mission length" in a spreadsheet, but the LLM might require specific column names or a particular phrasing to execute the task correctly. When the system fails, the underlying code is typically hidden from the end-user, leaving them with no indication of why the failure occurred. Did the model misunderstand the data structure, or was the mathematical logic flawed? Without this transparency, users often feel directionless, leading to a loss of trust in the tool.

Grounded Abstraction Matching

To address this, the authors developed a system integrated into Microsoft Excel that utilizes a four-step interaction loop:

  1. User Query: The user enters a natural language request.
  2. Code Generation: The system uses Codex to generate Python/Pandas code.
  3. Grounded Utterance Generation: Instead of executing the code in a black box, the system performs program analysis to translate the Python code back into a systematic set of natural language instructions (e.g., "1. Select column 'Missions', 2. Calculate count").
  4. User Interaction: These steps are presented in a "step-staging" area. Users can review, edit, or refine these steps directly, which in turn updates the logic and re-runs the query.

This approach ensures that the system's interpretation is "grounded" in the actual code it intends to execute, providing a clear bridge between the user's intent and the machine's action.

Experimental Evaluation

The researchers conducted a between-subjects, think-aloud study with 24 participants. They compared the Grounded system against an Ungrounded baseline. The baseline followed existing "best-practice" prompting techniques, such as encouraging users to decompose tasks themselves, but lacked the automated code-to-text feedback loop.

Tasks and Datasets

Participants performed three tasks based on real-world spreadsheet challenges sourced from Stack Overflow:

  • Analyzing Super Bowl records.
  • Processing astronaut mission data.
  • Evaluating real estate listings.

Additionally, the authors validated the technical accuracy of their translation layer using a Round-Trip Benchmark. This benchmark consisted of 317 queries (126 from Stack Overflow and 191 from the user study). They tested "round-trip stability"—whether the grounded utterance, when fed back into the LLM, would produce the same output as the original query.

Key Insights

Learning the "Dialect"

One of the most significant findings was that users in the grounded condition began to adopt the system's internal vocabulary. By observing how the AI described its own actions (e.g., using terms like "split by" or "filter where"), users learned the specific language the AI preferred. This reduced the abstraction gap over time, as users' subsequent queries became more aligned with the model's requirements.

Recognizing Partial Success

In the ungrounded condition, users often viewed the AI's output as binary: it either worked or it didn't. If a complex query failed, users frequently deleted their entire prompt and started over. Conversely, grounded users could see when the AI was partially correct. If the system successfully identified two out of three criteria, the user could simply manually add or edit the third step in the staging area. This transformed the interaction from "guesswork" to "refinement."

Agency over Automation

The grounded approach shifted the user's perception of the AI from an unpredictable "black box" to a "programmable tool." Participants reported a higher sense of agency and confidence. Because they could verify the logic step-by-step without needing to read Python code, they felt more in control of the final result.

Results

  • Task Success: While all participants eventually completed the tasks, the way they achieved success differed. There was no significant difference in total time, but the grounded group showed much higher efficiency in query iteration.
  • Strategy Shift: Grounded users were statistically more likely to reuse the system's breakdown and build upon partial answers. Ungrounded users relied more on trial-and-error.
  • Stability: The grounded utterances achieved approximately 85% output equivalence in round-trip testing, confirming that the simplified natural language steps were robust enough for the LLM to interpret consistently.

Limitations and Future Work

The current implementation is limited by the subset of the Pandas/Python library it can translate. Expanding this to more complex data science operations is a primary goal for future development. Additionally, while the study focused on small datasets (20-30 rows), the authors argue that grounded utterances are even more vital for large-scale data where manual verification is impossible. Future iterations might also explore using the LLM itself to generate these explanations, provided the fidelity remains high enough to stay truly "grounded" in the code.

Summary updated

BibTeX
@inproceedings{liu2023what,
  author = {Michael Xieyang Liu and Advait Sarkar and Carina Negreanu and Benjamin G. Zorn and Jack Williams and Neil Toronto and Andrew D. Gordon},
  title = {{"What It Wants Me To Say": Bridging the Abstraction Gap Between End-User Programmers and Code-Generating Large Language Models}},
  booktitle = {CHI},
  year = {2023},
  doi = {10.1145/3544548.3580817},
}
Figure