TL;DR
This paper introduces edit recommendation, a new task where LLMs anticipate a user's next request to modify a generated artifact (like code or text) before it's even sent. To handle the inherent unpredictability of human intent, the authors propose a decision model-based gating mechanism that selectively shows suggestions only when they are likely to be correct, significantly improving the quality of the user experience.
What Problem Does This Paper Address?
Interacting with LLMs is often an iterative "generate-and-refine" loop. A user asks for a draft, reviews it, and then sends a follow-up request to "make it shorter," "fix this bug," or "change the tone." This back-and-forth creates friction.
If an assistant could anticipate these requests and offer them as clickable suggestions, it would save users significant effort. However, the authors identify a major hurdle: unpredictability. Some edit requests are "No New Info" (predictable from context, like fixing a typo), while others are "New Info" (introducing external constraints or facts the LLM couldn't possibly know). Blindly showing suggestions for the latter leads to "hallucinated" recommendations that annoy users.
Methods
The authors formalize the task and propose a two-stage pipeline:
- Prediction: An LLM predictor generates the top-$K$ most likely edit requests based on the conversation history and the current artifact.
- Gating: To solve the "blind suggestion" problem, they introduce a decision model-based gate. This is a fine-tuned model (specifically Qwen3.5-4B with LoRA adapters) that evaluates both the context and the content of the predicted edits to estimate the probability of a match. Suggestions are only shown if this confidence score exceeds a threshold ($\tau$).
For evaluation, they use an LLM-as-a-Judge approach (powered by Claude Haiku 5.5). The judge decomposes the ground-truth request into atomic requirements and checks if the predicted edits satisfy them, ensuring a more nuanced evaluation than simple string matching.
Datasets
The authors introduce EditRecBench, a benchmark derived from real-world interaction logs:
- Source: Sampled from WildChat-4.8M, a massive dataset of real ChatGPT user logs.
- Scale: 12,298 high-quality samples after rigorous filtering (removing toxic content, automated traffic, and ambiguous turns).
- Diversity: Covers various artifact types including Code (the most common), Documents, Answers, and Lists.
Key Insights and Ideas
- The "New Info" Wall: Models perform significantly worse on requests that introduce information not present in the preceding context. For example, if a user suddenly decides to add a specific person's name to an email, no amount of "reasoning" can predict that name.
- Gating Requires Content: A key finding is that gating models perform poorly if they only look at the conversation context. To effectively "gate," the model needs to see the actual suggestions generated by the predictor to judge their plausibility.
- Selective over Universal: In production settings, it is better to show no suggestions than to show bad ones. The authors argue for a "precision-first" deployment strategy where suggestions are shown only ~20% of the time but with much higher accuracy.
Key Results
- Model Rankings: Among the tested predictors, gpt-6.1-sol performed best, achieving a pass@5 of 47%.
- Gating Efficacy: The proposed gating model (Qwen3.5-4B) outperformed standard statistical baselines and zero-shot decision APIs.
- Precision Boost: By setting the gating threshold to show suggestions for only the top 20% of samples, the authors improved the pass@5 of the shown suggestions by 12–25 points across different models.
- Generalization: The gating model trained on one set of LLM predictors generalized well to entirely unseen models, suggesting it learns fundamental patterns of "predictability" in human-AI dialogue.
Limitations and Future Work
- Inference Overhead: The current gating approach requires the predictor to generate suggestions before the gate decides whether to show them. This means the system incurs the full inference cost even when nothing is displayed to the user.
- Offline Evaluation: While the metrics are robust, the paper lacks a live user study to measure how these suggestions actually impact user productivity or satisfaction in a real-time interface.
- Judge Reliability: Although validated against human annotators (Cohen’s $\kappa = 0.86$), the system still relies on an LLM judge, which may have its own biases or failure modes in complex edge cases.
Summary updated