@inproceedings{oubelmouh-etal-2026-comparing,
title = "Comparing Retrieval-Augmented Generation Pipelines for Energy-Aware Code Refactoring",
author = "Oubelmouh, Youssef and
Chhieng, Pierre and
Daoudi, Amir Salah Eddine",
editor = "Chen, Guanyi and
Perez-Beltrachini, Laura and
van Miltenburg, Emiel",
booktitle = "Proceedings of the 19th International Natural Language Generation Conference: Long Papers",
month = oct,
year = "2026",
address = "Utrecht, The Netherlands",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.inlg-long.78/",
pages = "1410--1420",
ISBN = "979-8-89176-498-9",
abstract = "Choosing a Natural Language Generation (NLG) pipeline is difficult when the generated output must be functionally correct, measurably effective, and inexpensive to produce, all at once. We propose an evaluation framework for comparing NLG pipelines under these joint constraints, together with the Inference-Adjusted Gain (IAG), an architecture-agnostic metric combining output quality and inference cost. We instantiate the framework on energy-aware code refactoring: five systems (LLM-only, Retrieval-Augmented Generation (RAG), Knowledge-Augmented Generation (KAG), Agentic RAG, and Token-Efficient Agentic RAG (TeaRAG)) share the same 1,368-entry knowledge base (KB), named GreenKB, backbone LLM, and validation protocol across 11 Python programs, including three real GitHub projects. Only TeaRAG passes the functional gate on all three GitHub projects, with confirmed energy reductions on two; the third remains within measurement noise. Every other system passes at most one project. A rollback ablation traces this robustness mainly to orchestration rather than retrieval alone. On three synthetic scripts, each run over five seeds, TeaRAG again achieves the highest IAG: it cuts energy use by 96 {\%} on average, against 88 {\%} for KAG, at a higher token cost (3.6k vs. 2.2k tokens). One synthetic case is unstable across seeds for every system, leaving the margin over KAG narrow."
}<?xml version="1.0" encoding="UTF-8"?>
<modsCollection xmlns="http://www.loc.gov/mods/v3">
<mods ID="oubelmouh-etal-2026-comparing">
<titleInfo>
<title>Comparing Retrieval-Augmented Generation Pipelines for Energy-Aware Code Refactoring</title>
</titleInfo>
<name type="personal">
<namePart type="given">Youssef</namePart>
<namePart type="family">Oubelmouh</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Pierre</namePart>
<namePart type="family">Chhieng</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Amir</namePart>
<namePart type="given">Salah</namePart>
<namePart type="given">Eddine</namePart>
<namePart type="family">Daoudi</namePart>
<role>
<roleTerm authority="marcrelator" type="text">author</roleTerm>
</role>
</name>
<originInfo>
<dateIssued>2026-10</dateIssued>
</originInfo>
<typeOfResource>text</typeOfResource>
<relatedItem type="host">
<titleInfo>
<title>Proceedings of the 19th International Natural Language Generation Conference: Long Papers</title>
</titleInfo>
<name type="personal">
<namePart type="given">Guanyi</namePart>
<namePart type="family">Chen</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Laura</namePart>
<namePart type="family">Perez-Beltrachini</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<name type="personal">
<namePart type="given">Emiel</namePart>
<namePart type="family">van Miltenburg</namePart>
<role>
<roleTerm authority="marcrelator" type="text">editor</roleTerm>
</role>
</name>
<originInfo>
<publisher>Association for Computational Linguistics</publisher>
<place>
<placeTerm type="text">Utrecht, The Netherlands</placeTerm>
</place>
</originInfo>
<genre authority="marcgt">conference publication</genre>
<identifier type="isbn">979-8-89176-498-9</identifier>
</relatedItem>
<abstract>Choosing a Natural Language Generation (NLG) pipeline is difficult when the generated output must be functionally correct, measurably effective, and inexpensive to produce, all at once. We propose an evaluation framework for comparing NLG pipelines under these joint constraints, together with the Inference-Adjusted Gain (IAG), an architecture-agnostic metric combining output quality and inference cost. We instantiate the framework on energy-aware code refactoring: five systems (LLM-only, Retrieval-Augmented Generation (RAG), Knowledge-Augmented Generation (KAG), Agentic RAG, and Token-Efficient Agentic RAG (TeaRAG)) share the same 1,368-entry knowledge base (KB), named GreenKB, backbone LLM, and validation protocol across 11 Python programs, including three real GitHub projects. Only TeaRAG passes the functional gate on all three GitHub projects, with confirmed energy reductions on two; the third remains within measurement noise. Every other system passes at most one project. A rollback ablation traces this robustness mainly to orchestration rather than retrieval alone. On three synthetic scripts, each run over five seeds, TeaRAG again achieves the highest IAG: it cuts energy use by 96 % on average, against 88 % for KAG, at a higher token cost (3.6k vs. 2.2k tokens). One synthetic case is unstable across seeds for every system, leaving the margin over KAG narrow.</abstract>
<identifier type="citekey">oubelmouh-etal-2026-comparing</identifier>
<location>
<url>https://aclanthology.org/2026.inlg-long.78/</url>
</location>
<part>
<date>2026-10</date>
<extent unit="page">
<start>1410</start>
<end>1420</end>
</extent>
</part>
</mods>
</modsCollection>
%0 Conference Proceedings
%T Comparing Retrieval-Augmented Generation Pipelines for Energy-Aware Code Refactoring
%A Oubelmouh, Youssef
%A Chhieng, Pierre
%A Daoudi, Amir Salah Eddine
%Y Chen, Guanyi
%Y Perez-Beltrachini, Laura
%Y van Miltenburg, Emiel
%S Proceedings of the 19th International Natural Language Generation Conference: Long Papers
%D 2026
%8 October
%I Association for Computational Linguistics
%C Utrecht, The Netherlands
%@ 979-8-89176-498-9
%F oubelmouh-etal-2026-comparing
%X Choosing a Natural Language Generation (NLG) pipeline is difficult when the generated output must be functionally correct, measurably effective, and inexpensive to produce, all at once. We propose an evaluation framework for comparing NLG pipelines under these joint constraints, together with the Inference-Adjusted Gain (IAG), an architecture-agnostic metric combining output quality and inference cost. We instantiate the framework on energy-aware code refactoring: five systems (LLM-only, Retrieval-Augmented Generation (RAG), Knowledge-Augmented Generation (KAG), Agentic RAG, and Token-Efficient Agentic RAG (TeaRAG)) share the same 1,368-entry knowledge base (KB), named GreenKB, backbone LLM, and validation protocol across 11 Python programs, including three real GitHub projects. Only TeaRAG passes the functional gate on all three GitHub projects, with confirmed energy reductions on two; the third remains within measurement noise. Every other system passes at most one project. A rollback ablation traces this robustness mainly to orchestration rather than retrieval alone. On three synthetic scripts, each run over five seeds, TeaRAG again achieves the highest IAG: it cuts energy use by 96 % on average, against 88 % for KAG, at a higher token cost (3.6k vs. 2.2k tokens). One synthetic case is unstable across seeds for every system, leaving the margin over KAG narrow.
%U https://aclanthology.org/2026.inlg-long.78/
%P 1410-1420
Markdown (Informal)
[Comparing Retrieval-Augmented Generation Pipelines for Energy-Aware Code Refactoring](https://aclanthology.org/2026.inlg-long.78/) (Oubelmouh et al., INLG 2026)
ACL