NeuroSync: Intent-Aware Code-Based Problem Solving via Direct LLM Understanding Modification

The Hong Kong University of Science and Technology
UIST '25: The 38th Annual ACM Symposium on User Interface Software and Technology

*wzhangeb@connect.ust.hk, who is activly looking for research intern position

+corrsponding author

Abstract

Conversational LLMs have been widely adopted by domain users with limited programming experience to solve domain problems. However, these users often face misalignment between their intent and generated code, resulting in frustration and rounds of clarification. This work first investigates the cause of this misalignment, which dues to bidirectional ambiguity: both user intents and coding tasks are inherently nonlinear, yet must be expressed and interpreted through linear prompts and code sequences. To address this, we propose direct intent–task matching, a new human–LLM interaction paradigm that externalizes and enables direct manipulation of the LLM understanding, i.e., the coding tasks and their relationships inferred by the LLM prior to code generation. As a proof-of-concept, this paradigm is then implemented in NeuroSync, which employs a knowledge distillation pipeline to extract LLM understanding, user intents, and their mappings, and enhances the alignment by allowing users to intuitively inspect and edit them via visualizations. We evaluate the algorithmic components of NeuroSync via technical experiments, and assess its overall usability and effectiveness via a user study (N=12). The results show that it enhances intent–task alignment, lowers cognitive effort, and improves coding efficiency.

Why Misalignment and How to Solve (Formative Study)

Bidirectional ambiguity is one important reason why misalignment occurs and graphs (node-link diagrams) are a good link between users's nonlinear intent and LLM's nonlinear code tasks.

LLM Understanding and Intent-Task Direct Matching (Concept)

Inspired by the concept of understanding, where humans develop their interpretation of LLM outputs, we suggest that LLMs form a kind of understanding of user inputs. We call this LLM understanding, which refers to the tasks and their relationships implicitly encoded in the code that an LLM is expected to generate based on user prompts.

We propose a new human–LLM interaction paradigm, direct intent–task matching, based on externalizing and modifying LLM understanding organized in graphs prior to code generation.

Concept

NeuroSync

NeuroSync allows a user to directly manipulate a visual task graph on two levels via the user interface to correct an LLM's understanding before code generation. This interaction is kept responsive by a lightweight distillation pipeline, which fine-tunes a small model using data from a multi-agent system that simulates user behavior. To manage cognitive load, an intent-aware graph simplification algorithm dynamically collapses and highlights parts of the graph based on the user's focus.

Usage Scenario Video

BibTeX

@article{zhang2025neurosync,
  title={NeuroSync: Intent-Aware Code-Based Problem Solving via Direct LLM Understanding Modification},
  author={Zhang, Wenshuo and Shen, Leixian and Xu, Shuchang and Wang, Jindu and Zhao, Jian and Qu, Huamin and Yuan, Linping},
  journal={arXiv preprint arXiv:2508.02823},
  year={2025}
}