paper-with-me

홈 › Papers

ACR: Adaptive Context Refactoring via Context Refactoring Operators for Multi-Turn Dialogue

2026-01-09 · Jiawei Shen, Jia Zhu, Hanghui Guo, Weijie Shi, Yue Cui, Qingyu Niu, Guoqing Ma, Yidan Liang, Jingjiang Liu, Yiling Wang, Shimin Di, Jiajie Xu arxiv

Large Language Models (LLMs) have shown remarkable performance in multi-turn dialogue. However, in multi-turn dialogue, models still struggle to stay aligned with what has been established earlier, follow dependencies across many turns, and avoid drifting into incorrect facts as the interaction grows longer. Existing approaches primarily focus on extending the context window, introducing external memory, or applying context compression, yet these methods still face limitations such as \textbf{contextual inertia} and \textbf{state drift}. To address these challenges, we propose the \textbf{A}daptive \textbf{C}ontext \textbf{R}efactoring \textbf{(ACR)} Framework, which dynamically monitors and reshapes the interaction history to mitigate contextual inertia and state drift actively. ACR is built on a library of context refactoring operators and a teacher-guided self-evolving training paradigm that learns when to intervene and how to refactor, thereby decoupling context management from the reasoning process. Extensive experiments on multi-turn dialogue demonstrate that our method significantly outperforms existing baselines while reducing token consumption.

📄 PDF Abstract BibTeX arXiv:2601.05589

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

RefactorAssist: Agentic Refinement for Reliable Code Refactoring

2026-08-02 · Jonathan Cordeiro, Shayan Noei, Ying Zou arxiv

Code refactoring aims to enhance the internal structure of source code without affecting its functional behavior. The recent advancements of Large Language Models (LLMs) have demonstrated potential for automating softwar…

Multi-Agent Coordinated Rename Refactoring

2026-01-01 · Abhiram Bellur, Mohammed Raihan Ullah, Fraol Batole, Mohit Kansara 외 arxiv

The primary value of AI agents in software development lies in their ability to extend the developer's capacity for reasoning and action, not to supplant human involvement. To showcase how to use agents working in tandem…

RefAgent: A Multi-agent LLM-based Framework for Automatic Software Refactoring

2025-11-05 · Khouloud Oueslati, Maxime Lamothe, Foutse Khomh arxiv

Large Language Models (LLMs) have substantially influenced various software engineering tasks. Indeed, in the case of software refactoring, traditional LLMs have shown the ability to reduce development time and enhance c…

Teaching Code Refactoring Using LLMs

2025-08-12 · Anshul Khairnar, Aarya Rajoju, Edward F. Gehringer arxiv

This Innovative Practice full paper explores how Large Language Models (LLMs) can enhance the teaching of code refactoring in software engineering courses through real-time, context-aware feedback. Refactoring improves c…

CODECLEANER: Elevating Standards with A Robust Data Contamination Mitigation Toolkit

2024-11-16 · Jialun Cao, Songqiang Chen, Wuqi Zhang, Hau Ching Lo 외

Data contamination presents a critical barrier preventing widespread industrial adoption of advanced software engineering techniques that leverage code language models (CLMs). This phenomenon occurs when evaluation data …