paper-with-me

홈 › Papers

From Completion to Editing: Unlocking Context-Aware Code Infilling via Search-and-Replace Instruction Tuning

2026-01-19 · Jiajun Zhang, Zeyu Cui, Jiaxi Yang, Lei Zhang, Yuheng Jing, Zeyao Ma, Tianyi Bai, Zilei Wang, Qiang Liu, Liang Wang, Binyuan Hui, Junyang Lin arxiv

The dominant Fill-in-the-Middle (FIM) paradigm for code completion is constrained by its rigid inability to correct contextual errors and reliance on unaligned, insecure Base models. While Chat LLMs offer safety and Agentic workflows provide flexibility, they suffer from performance degradation and prohibitive latency, respectively. To resolve this dilemma, we propose Search-and-Replace Infilling (SRI), a framework that internalizes the agentic verification-and-editing mechanism into a unified, single-pass inference process. By structurally grounding edits via an explicit search phase, SRI harmonizes completion tasks with the instruction-following priors of Chat LLMs, extending the paradigm from static infilling to dynamic context-aware editing. We synthesize a high-quality dataset, SRI-200K, and fine-tune the SRI-Coder series. Extensive evaluations demonstrate that with minimal data (20k samples), SRI-Coder enables Chat models to surpass the completion performance of their Base counterparts. Crucially, unlike FIM-style tuning, SRI preserves general coding competencies and maintains inference latency comparable to standard FIM. We empower the entire Qwen3-Coder series with SRI, encouraging the developer community to leverage this framework for advanced auto-completion and assisted development.

📄 PDF Abstract BibTeX arXiv:2601.13384

Code (0)

등록된 구현이 없습니다.

Tasks

Code Completion

Similar Papers 제목 키워드 기반

Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editing

2023-05-29 · Jiayi Wei, Greg Durrett, Isil Dillig

Developers often dedicate significant time to maintaining and refactoring existing code. However, most prior work on generative models for code focuses solely on creating new code, overlooking the distinctive needs of ed…

Code CompletionEDIT TaskLanguage Modelling

Geometry-Aware Face Completion and Editing

2018-09-09 · Linsen Song, Jie Cao, Linxiao Song, Yibo Hu 외

Face completion is a challenging generation task because it requires generating visually pleasing new pixels that are semantically consistent with the unmasked face region. This paper proposes a geometry-aware Face Compl…

DecoderFacial Inpainting

From Guessing to Placeholding: A Cost-Theoretic Framework for Uncertainty-Aware Code Completion

2026-04-02 · Liang Zhu, Haolin Chen, Lidong Zhao, Xian Wu arxiv

While Large Language Models (LLMs) have demonstrated exceptional proficiency in code completion, they typically adhere to a Hard Completion (HC) paradigm, compelling the generation of fully concrete code even amidst insu…

Reinforcement LearningCode Completion

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

2025-12-14 · Yiming Zeng, Jinghan Cao, Zexin Li, Wanhao Yu 외 arxiv

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, …

Text Generation

VINCIE: Unlocking In-context Image Editing from Video

2025-06-12 · Leigang Qu, Feng Cheng, Ziyan Yang, Qi Zhao 외

In-context image editing aims to modify images based on a contextual sequence comprising text and previously generated images. Existing methods typically depend on task-specific pipelines and expert models (e.g., segment…

PredictionSegmentationStory Generation