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

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

Wenshuo Zhang, Leixian Shen, Shuchang Xu, Jindu Wang, Jian Zhao, Huamin Qu, Linping Yuan

Abstract

Traditional AI-assisted programming relies on a linear "Prompt-to-Code" pipeline that often suffers from semantic loss and logic misalignment. NeuroSync introduces a "direct intent-task matching" paradigm that externalizes a Large Language Model’s (LLM) internal reasoning as an interactive graph before code generation. By allowing users to inspect and edit the model's planned logic, the system bridges the gap between human intent and machine execution. Our evaluation demonstrates that NeuroSync reduces task completion time by nearly 42% and cuts required LLM interactions by two-thirds, significantly streamlining the development loop for domain experts.

Introduction

Domain experts, such as scientists and data analysts, increasingly rely on LLMs to translate complex requirements into executable code. However, this process is frequently hindered by bidirectional ambiguity. On one hand, human intents are nonlinear and hierarchical, yet they must be flattened into linear text prompts, leading to semantic loss. On the other hand, generated code often acts as a "black box," making it difficult for non-programmers to diagnose logic errors or provide precise feedback.

NeuroSync addresses these challenges by targeting the understanding phase of the LLM. Rather than focusing solely on better prompts or better explanations of the final output, NeuroSync externalizes the model's intermediate reasoning. This allows users to align the model's plan with their intent before the expensive and error-prone step of code generation.

The NeuroSync Framework

The core of NeuroSync is a shift in the interaction paradigm from Prompt → Code to Prompt → Task Graph → User Refinement → Code. This is supported by several technical innovations:

1. The Triple Extractor

NeuroSync utilizes a specialized component to extract a structured "triple" from the initial user prompt:

  • Intent Tree: A hierarchical representation of the user’s goals.
  • Understanding Graph: A map of the model’s planned subtasks and their dependencies.
  • Mappings: The explicit links between the user's intents and the model's proposed tasks.

2. Knowledge Distillation for Real-Time Interaction

To ensure the user interface remains responsive, the authors bypassed the latency of massive LLMs for the extraction phase. Using a "teacher" model (DeepSeek R1) to generate high-quality training data, they fine-tuned Small Language Models (SLMs) such as Qwen 1.5B and Llama 8B. These distilled models can extract the required triples in a single step, providing up to a 22.9x speedup in extraction latency while maintaining over 90% similarity to the teacher model's output.

3. Intent-Aware Graph Simplification

To prevent cognitive overload in complex projects, NeuroSync employs an algorithm that dynamically collapses or expands the task graph based on the user's current focus. This ensures that the visualization remains manageable even as the underlying logic grows in complexity.

Empirical Evaluation

Methodology

The system was evaluated using a combination of synthetic benchmarks and human studies. A Multi-Agent Module (comprising Intent Constructor, User Simulator, Code Generator, and Execution Analyzer agents) was used to generate thousands of interaction histories for training. For human evaluation, 12 participants performed domain-specific tasks, including web crawling and sentiment analysis.

Key Results

NeuroSync showed significant improvements across both technical and user-centric metrics:

  • Efficiency: Average task completion time dropped from 23.8 minutes to 13.9 minutes.
  • Reduced Iteration: The number of LLM calls required per task decreased from 3.9 to 1.3, indicating that users were often able to achieve correct code on the first attempt following graph refinement.
  • User Experience: Qualitative feedback showed a marked decrease in frustration, with NASA-TLX scores dropping from 18% to 10%. Users reported a significantly higher "sense of control" over the AI's output.

Discussion and Future Work

While NeuroSync represents a major step forward in proactive AI alignment, several challenges remain. Despite the use of SLMs, there is still a 10–15 second delay in generating the initial graph. Furthermore, while the system excels at logic alignment, users must still contend with low-level syntax errors or library-specific bugs in the final code.

Future research will explore how this graph-based representation scales to multi-file software architectures and how the UI can be personalized to match the varying levels of abstraction preferred by different users. By treating the LLM's mental model as a first-class UI object, NeuroSync paves the way for more transparent and collaborative AI-assisted programming.

Summary updated

BibTeX
@inproceedings{zhang2025neurosync,
  author = {Wenshuo Zhang and Leixian Shen and Shuchang Xu and Jindu Wang and Jian Zhao and Huamin Qu and Linping Yuan},
  title = {{NeuroSync: Intent-Aware Code-Based Problem Solving via Direct LLM Understanding Modification}},
  booktitle = {UIST},
  year = {2025},
}
Figure