Beyond the Chat: Executable and Verifiable Text-Editing with LLMs

Philippe Laban, Jesse Vig, Marti A. Hearst, Caiming Xiong, Chien-Sheng Wu

TL;DR

InkSync is a novel text-editing interface that moves beyond the "black box" of LLM chat windows by providing inline, executable edit suggestions. By integrating a three-stage Warn-Verify-Audit framework, the system helps authors catch LLM hallucinations and significantly improves both editing efficiency and factual accuracy compared to standard conversational interfaces.

What Problem Does This Paper Address?

While Large Language Models (LLMs) are excellent writing assistants, the current "chatbot" paradigm is fundamentally flawed for serious editing. When you ask a chatbot to "make this email more professional," it typically returns a completely rewritten block of text. This forces the author to perform a "mental diff"—manually comparing the new version to their original to see what actually changed—and then copy-pasting pieces back into their document.

Furthermore, LLMs are prone to hallucinations. In a conversational interface, these factual errors are often buried in fluent prose, making them difficult to spot. The authors identify a lack of transparency (knowing exactly what the LLM changed) and verifiability (confirming if those changes are factually sound) as the primary barriers to effective human-AI collaborative writing.

InkSync vs. Baseline LLM Editing

Methods

The researchers developed InkSync, an interface built around a custom "Executable Editing Language" (a JSON schema that defines original text, replacement text, and metadata). The system consists of four primary interaction components:

  1. Markers: Proactive tools that run in the background to flag typos or tone issues (similar to a supercharged Grammarly).
  2. Chat: A global interface for broad requests (e.g., "fix all informal phrases").
  3. Comment: A localized tool where users select a specific text span to request targeted edits.
  4. Brainstorm: A feature that provides multiple diverse paraphrasing options for a selected sentence.

To tackle hallucinations, they introduced the Warn-Verify-Audit framework:

  • Warn: The LLM flags any edit that introduces new information not present in the original draft.
  • Verify: For flagged edits, the system automatically generates search engine queries, allowing the user to fact-check the suggestion with one click.
  • Audit: A dedicated mode that highlights all AI-generated content in the final document, allowing a human auditor to review the "provenance" of every word.

Datasets

The study did not introduce a new pre-training dataset but rather focused on human-centric evaluation:

  • User Survey: A survey of 64 knowledge workers to establish current LLM usage patterns in editing.
  • Usability Studies: Two controlled studies involving 55 and 35 participants respectively. The task involved customizing sales emails for a fictional travel agency, requiring both stylistic changes and factual additions about specific travel destinations (e.g., Egypt, Madagascar).
  • Annotated Corpus: The authors produced a corpus of ~200 edited documents, which were manually annotated for factual errors and customization quality to serve as a benchmark for the interface's effectiveness.

Key Insights and Ideas

  • LLMs are Self-Aware Hallucinators: One of the most striking findings is that while GPT-4 might hallucinate facts, it is remarkably good (97.5% accuracy) at identifying when it is introducing new information. This "self-awareness" is what makes the "Warn" stage possible.
  • The Creativity Trade-off: The study found that while conversational LLMs help users add more custom content, they can actually reduce the diversity of ideas. Users tended to settle for the LLM's suggestions rather than coming up with unique, "divergent" ideas themselves.
  • Granularity is Agency: By breaking down a "rewrite" into a list of individual, clickable edits, the interface gives the author significantly more control. Users felt more in command when they could accept a tone change but reject a factual hallucination in the same sentence.

Key Results

The evaluation showed that InkSync outperforms standard chat interfaces across several metrics:

  • Efficiency: Users in the "4-Comp" (all components enabled) condition were significantly faster at editing than those using a standard chat interface or manual editing.
  • Factual Accuracy: The Warn-Verify-Audit framework reduced the number of inaccurate edits accepted into documents by 44%.
  • Error Detection: The auditing stage helped participants identify up to 73% of the remaining factual inaccuracies that slipped through during the initial editing phase.
  • User Preference: Participants overwhelmingly preferred the integrated InkSync components over the "No-Executable" chat baseline, citing ease of integration and better understanding of suggestions.

Limitations and Future Work

The authors acknowledge that their study focused on relatively short documents (100-400 words). The benefits of localized comments and markers might be even more pronounced—or face new scaling challenges—in long-form reports or books.

Additionally, the current system is "memoryless." Future work could involve Personalized Interaction, where the LLM learns an author's specific style and preferences over time. There is also a need to expand the verification framework to check human-written text, as the study noted that human authors are just as capable of introducing factual errors as AI. Finally, the researchers plan to open-source InkSync to allow the community to test it with various open-source LLMs beyond GPT-4.

Summary updated

BibTeX
@inproceedings{laban2024beyond,
  author = {Philippe Laban and Jesse Vig and Marti A. Hearst and Caiming Xiong and Chien-Sheng Wu},
  title = {{Beyond the Chat: Executable and Verifiable Text-Editing with LLMs}},
  booktitle = {UIST},
  year = {2024},
  doi = {10.1145/3654777.3676419},
}
Figure