Get Started
Home
Topics
Search
Library
Research questionHow can LLMs modify existing code without breaking or drifting from its intended behavior?LLM-generated code can create structural complexity that makes direct automated maintenance difficult, and changes may cause the implementation to diverge from its intended semantics. Models with different coding styles may also rewrite more of foreign code than a requested change requires. The challenge is to limit unnecessary edits without causing build or test failures.
Alignment & Safety
Code Generation & Program Synthesis
LLM Pretraining & Post-training
Latest papersRecent research connected to this question, newest first.From Reading Code to Reading Spec: A Verified Layer for LLM-Driven Codebase MaintenanceThe source presents PROOF, which represents codebase topology in hierarchical natural-language specifications, reconstructs source code from those specifications to establish semantic equivalence, and updates the specifications alongside maintenance changes. Evidence comes from experiments on real-world repositories.research paper · Sep 6, 2026CROCODIL: Cross-Model Code Editing with LLMsThe source reports excessive edits on code written by another LLM and presents CROCODIL, a post-training framework that combines similarity and execution rewards. Its evidence concerns LLM-based code editing, with functional success assessed through builds and tests.research paper · Sep 3, 2026
Related questions
How can LLMs generate functionally correct code without introducing security vulnerabilities?How can LLM safeguards prevent fine-tuning from reactivating suppressed harmful behaviors?How can LLM knowledge editing keep updated facts consistent with related knowledge?How can LLM long-term memory stay inspectable and stop errors from persisting?