# HyperEdit: Unlocking Instruction-based Text Editing in LLMs via Hypernetworks

Source: [HyperEdit: Unlocking Instruction-based Text Editing in LLMs via Hypernetworks](<https://www.sota2.com/research/paper/6940e777456146936284f673>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-12-17T05:03:45.767Z

Authors: Yiming Zeng, Jinghan Cao, Zexin Li, Wanhao Yu, Zhankai Ye, Dawei Xiang, Ting Hua, Xin Liu, Shangqian Gao, Tingting Yu

Published: 2025-12-14T04:28:39.000Z

## Abstract

Instruction-based text editing is increasingly critical for real-world applications such as code editors (e.g., Cursor), but Large Language Models (LLMs) continue to struggle with this task. Unlike free-form generation, editing requires faithfully implementing user instructions while preserving unchanged content, as even minor unintended modifications can break functionality. Existing approaches treat editing as generic text generation, leading to two key failures: they struggle to faithfully align edits with diverse user intents, and they often over-edit unchanged regions. We propose HyperEdit to address both issues. First, we introduce hypernetwork-based dynamic adaptation that generates request-specific parameters, enabling the model to tailor its editing strategy to each instruction. Second, we develop difference-aware regularization that focuses supervision on modified spans, preventing over-editing while ensuring precise, minimal changes. HyperEdit achieves a 9%--30% relative improvement in BLEU on modified regions over state-of-the-art baselines, despite utilizing only 3B parameters.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Instruction-based text editing on InstrEdit-Bench](<https://www.sota2.com/research/sota/instruction-based-text-editing-on-instredit-bench.md>): Instruction-based text editing; InstrEdit-Bench; Diff-BLEU (Code): 0.1714.

- [Multi-turn Editing on InstrEdit-Bench](<https://www.sota2.com/research/sota/multi-turn-editing-on-instredit-bench.md>): Multi-turn Editing; InstrEdit-Bench; Diff-BLEU (Code): 0.0809.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2512.12544>)

[PDF](<https://arxiv.org/pdf/2512.12544.pdf>)
