<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Code Generation | Web IR NLP Group @ NUS</title><link>https://wing.comp.nus.edu.sg/tag/code-generation/</link><atom:link href="https://wing.comp.nus.edu.sg/tag/code-generation/index.xml" rel="self" type="application/rss+xml"/><description>Code Generation</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 01 Oct 2026 00:00:00 +0000</lastBuildDate><image><url>https://wing.comp.nus.edu.sg/media/icon_hu_ce731d16d7c8719.png</url><title>Code Generation</title><link>https://wing.comp.nus.edu.sg/tag/code-generation/</link></image><item><title>LLMs for Code: Faithful and Minimal Code Editing</title><link>https://wing.comp.nus.edu.sg/project/llms-for-code/</link><pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate><guid>https://wing.comp.nus.edu.sg/project/llms-for-code/</guid><description>&lt;p&gt;LLMs are increasingly asked to edit code that already exists, not just to write it from scratch. There, correctness alone is not enough: a good repair should also be minimal, reviewable, and faithful to the original implementation. This project looks beyond whether generated code passes the tests and asks how faithfully models edit what is already there.&lt;/p&gt;
&lt;p&gt;In &lt;a href="https://wing.comp.nus.edu.sg/publication/zhu-etal-2026-models/"&gt;When Models Edit Too Much: On the Fidelity of Minimal Code Edits&lt;/a&gt; (EMNLP 2026), we study &lt;strong&gt;over-editing&lt;/strong&gt;: repairs that pass the tests but change far more code than the bug requires. We build a benchmark from 400 BigCodeBench problems with injected AST-level corruptions, so that the minimal patch is known by construction, and score repairs on Pass@1, excess edit distance, and added cognitive complexity. Over-editing is widespread even among frontier models, a single preservation instruction helps substantially, and reinforcement learning teaches minimal editing that generalizes out of domain better than supervised fine-tuning. The &lt;a href="https://github.com/nreHieW/over-editing" target="_blank" rel="noopener"&gt;over-editing repository&lt;/a&gt; provides the benchmark, evaluation, and training code.&lt;/p&gt;</description></item><item><title>When Models Edit Too Much: On the Fidelity of Minimal Code Edits</title><link>https://wing.comp.nus.edu.sg/publication/zhu-etal-2026-models/</link><pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate><guid>https://wing.comp.nus.edu.sg/publication/zhu-etal-2026-models/</guid><description/></item></channel></rss>