<?xml version="1.0" encoding="utf-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:hal="http://hal.archives-ouvertes.fr/" xmlns:gml="http://www.opengis.net/gml/3.3/" xmlns:gmlce="http://www.opengis.net/gml/3.3/ce" version="1.1" xsi:schemaLocation="http://www.tei-c.org/ns/1.0 http://api.archives-ouvertes.fr/documents/aofr-sword.xsd">
  <teiHeader>
    <fileDesc>
      <titleStmt>
        <title>HAL TEI export of hal-05227453</title>
      </titleStmt>
      <publicationStmt>
        <distributor>CCSD</distributor>
        <availability status="restricted">
          <licence target="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0 - Universal</licence>
        </availability>
        <date when="2026-05-03T11:18:09+02:00"/>
      </publicationStmt>
      <sourceDesc>
        <p part="N">HAL API Platform</p>
      </sourceDesc>
    </fileDesc>
  </teiHeader>
  <text>
    <body>
      <listBibl>
        <biblFull>
          <titleStmt>
            <title xml:lang="en">When Faster Isn't Greener: The Hidden Costs of LLM-Based Code Optimization</title>
            <author role="aut">
              <persName>
                <forename type="first">Tristan</forename>
                <surname>Coignion</surname>
              </persName>
              <email type="md5">e6bb5f6d46354d907fb6dafa8054d54e</email>
              <email type="domain">inria.fr</email>
              <idno type="idhal" notation="numeric">1368297</idno>
              <idno type="halauthorid" notation="string">3108452-1368297</idno>
              <affiliation ref="#struct-432644"/>
            </author>
            <author role="aut">
              <persName>
                <forename type="first">Clément</forename>
                <surname>Quinton</surname>
              </persName>
              <email type="md5">a490131615f82ea914f5da94bb5eff98</email>
              <email type="domain">univ-lille.fr</email>
              <idno type="idhal" notation="string">clement-quinton</idno>
              <idno type="idhal" notation="numeric">2755</idno>
              <idno type="halauthorid" notation="string">13075-2755</idno>
              <idno type="ORCID">https://orcid.org/0000-0003-3203-6107</idno>
              <idno type="IDREF">https://www.idref.fr/183079922</idno>
              <idno type="ARXIV">https://arxiv.org/a/quinton_c_1</idno>
              <affiliation ref="#struct-432644"/>
            </author>
            <author role="aut">
              <persName>
                <forename type="first">Romain</forename>
                <surname>Rouvoy</surname>
              </persName>
              <email type="md5">d9cb9130e142c96dd9184da680e3db7a</email>
              <email type="domain">inria.fr</email>
              <ptr type="url" target="http://romain.rouvoy.fr"/>
              <idno type="idhal" notation="string">romain-rouvoy</idno>
              <idno type="idhal" notation="numeric">2635</idno>
              <idno type="halauthorid" notation="string">14836-2635</idno>
              <idno type="ORCID">https://orcid.org/0000-0003-1771-8791</idno>
              <idno type="IDREF">https://www.idref.fr/111762146</idno>
              <idno type="GOOGLE SCHOLAR">https://scholar.google.fr/citations?user=U3217h0AAAAJ</idno>
              <idno type="ARXIV">https://arxiv.org/a/rouvoy_r_1</idno>
              <affiliation ref="#struct-432644"/>
            </author>
            <editor role="depositor">
              <persName>
                <forename>Clément</forename>
                <surname>Quinton</surname>
              </persName>
              <email type="md5">a490131615f82ea914f5da94bb5eff98</email>
              <email type="domain">univ-lille.fr</email>
            </editor>
            <funder ref="#projanr-57788"/>
            <funder ref="#projanr-109998"/>
          </titleStmt>
          <editionStmt>
            <edition n="v1" type="current">
              <date type="whenSubmitted">2025-08-28 10:02:10</date>
              <date type="whenModified">2025-11-13 09:11:48</date>
              <date type="whenReleased">2025-08-28 14:11:55</date>
              <date type="whenProduced">2025-11-16</date>
              <date type="whenEndEmbargoed">2025-08-28</date>
              <ref type="file" target="https://hal.science/hal-05227453v1/document">
                <date notBefore="2025-08-28"/>
              </ref>
              <ref type="file" subtype="author" n="1" target="https://hal.science/hal-05227453v1/file/Crinkles_ASE.pdf" id="file-5227453-4495578">
                <date notBefore="2025-08-28"/>
              </ref>
            </edition>
            <respStmt>
              <resp>contributor</resp>
              <name key="163211">
                <persName>
                  <forename>Clément</forename>
                  <surname>Quinton</surname>
                </persName>
                <email type="md5">a490131615f82ea914f5da94bb5eff98</email>
                <email type="domain">univ-lille.fr</email>
              </name>
            </respStmt>
          </editionStmt>
          <publicationStmt>
            <distributor>CCSD</distributor>
            <idno type="halId">hal-05227453</idno>
            <idno type="halUri">https://hal.science/hal-05227453</idno>
            <idno type="halBibtex">coignion:hal-05227453</idno>
            <idno type="halRefHtml">&lt;i&gt;ASE'25 - 40th International Conference on Automated Software Engineering&lt;/i&gt;, Nov 2025, Seoul, South Korea</idno>
            <idno type="halRef">ASE'25 - 40th International Conference on Automated Software Engineering, Nov 2025, Seoul, South Korea</idno>
            <availability status="restricted">
              <licence target="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0 - Attribution<ref corresp="#file-5227453-4495578"/></licence>
            </availability>
          </publicationStmt>
          <seriesStmt>
            <idno type="stamp" n="CNRS">CNRS - Centre national de la recherche scientifique</idno>
            <idno type="stamp" n="INRIA">INRIA - Institut National de Recherche en Informatique et en Automatique</idno>
            <idno type="stamp" n="INRIA-LILLE">INRIA Lille - Nord Europe</idno>
            <idno type="stamp" n="INRIA_TEST">INRIA - Institut National de Recherche en Informatique et en Automatique</idno>
            <idno type="stamp" n="TESTALAIN1">TESTALAIN1</idno>
            <idno type="stamp" n="CRISTAL">Centre de Recherche en Informatique, Signal et Automatique de Lille (CRISTAL)</idno>
            <idno type="stamp" n="INRIA2">INRIA 2</idno>
            <idno type="stamp" n="CRISTAL-SPIRALS" corresp="CRISTAL">CRISTAL-SPIRALS</idno>
            <idno type="stamp" n="UNIV-LILLE">Université de Lille</idno>
            <idno type="stamp" n="ANR">ANR</idno>
            <idno type="stamp" n="DDRS-TEST-CJ">Test de la collection DD-RS</idno>
          </seriesStmt>
          <notesStmt>
            <note type="audience" n="2">International</note>
            <note type="invited" n="0">No</note>
            <note type="popular" n="0">No</note>
            <note type="peer" n="1">Yes</note>
            <note type="proceedings" n="1">Yes</note>
          </notesStmt>
          <sourceDesc>
            <biblStruct>
              <analytic>
                <title xml:lang="en">When Faster Isn't Greener: The Hidden Costs of LLM-Based Code Optimization</title>
                <author role="aut">
                  <persName>
                    <forename type="first">Tristan</forename>
                    <surname>Coignion</surname>
                  </persName>
                  <email type="md5">e6bb5f6d46354d907fb6dafa8054d54e</email>
                  <email type="domain">inria.fr</email>
                  <idno type="idhal" notation="numeric">1368297</idno>
                  <idno type="halauthorid" notation="string">3108452-1368297</idno>
                  <affiliation ref="#struct-432644"/>
                </author>
                <author role="aut">
                  <persName>
                    <forename type="first">Clément</forename>
                    <surname>Quinton</surname>
                  </persName>
                  <email type="md5">a490131615f82ea914f5da94bb5eff98</email>
                  <email type="domain">univ-lille.fr</email>
                  <idno type="idhal" notation="string">clement-quinton</idno>
                  <idno type="idhal" notation="numeric">2755</idno>
                  <idno type="halauthorid" notation="string">13075-2755</idno>
                  <idno type="ORCID">https://orcid.org/0000-0003-3203-6107</idno>
                  <idno type="IDREF">https://www.idref.fr/183079922</idno>
                  <idno type="ARXIV">https://arxiv.org/a/quinton_c_1</idno>
                  <affiliation ref="#struct-432644"/>
                </author>
                <author role="aut">
                  <persName>
                    <forename type="first">Romain</forename>
                    <surname>Rouvoy</surname>
                  </persName>
                  <email type="md5">d9cb9130e142c96dd9184da680e3db7a</email>
                  <email type="domain">inria.fr</email>
                  <ptr type="url" target="http://romain.rouvoy.fr"/>
                  <idno type="idhal" notation="string">romain-rouvoy</idno>
                  <idno type="idhal" notation="numeric">2635</idno>
                  <idno type="halauthorid" notation="string">14836-2635</idno>
                  <idno type="ORCID">https://orcid.org/0000-0003-1771-8791</idno>
                  <idno type="IDREF">https://www.idref.fr/111762146</idno>
                  <idno type="GOOGLE SCHOLAR">https://scholar.google.fr/citations?user=U3217h0AAAAJ</idno>
                  <idno type="ARXIV">https://arxiv.org/a/rouvoy_r_1</idno>
                  <affiliation ref="#struct-432644"/>
                </author>
              </analytic>
              <monogr>
                <meeting>
                  <title>ASE'25 - 40th International Conference on Automated Software Engineering</title>
                  <date type="start">2025-11-16</date>
                  <settlement>Seoul</settlement>
                  <country key="KR">South Korea</country>
                </meeting>
                <imprint/>
              </monogr>
              <ref target="https://distiller.cloud" type="seeAlso"/>
              <ref target="https://carecloud.irisa.fr/" type="seeAlso"/>
            </biblStruct>
          </sourceDesc>
          <profileDesc>
            <langUsage>
              <language ident="en">English</language>
            </langUsage>
            <textClass>
              <keywords scheme="author">
                <term xml:lang="en">energy consumption</term>
                <term xml:lang="en">code optimization</term>
                <term xml:lang="en">code efficiency</term>
                <term xml:lang="en">large language model</term>
              </keywords>
              <classCode scheme="halDomain" n="info.info-se">Computer Science [cs]/Software Engineering [cs.SE]</classCode>
              <classCode scheme="halTypology" n="COMM">Conference papers</classCode>
              <classCode scheme="halOldTypology" n="COMM">Conference papers</classCode>
              <classCode scheme="halTreeTypology" n="COMM">Conference papers</classCode>
            </textClass>
            <abstract xml:lang="en">
              <p>Large Language Models (LLMs) are increasingly adopted to optimize source code, offering the promise of faster, more efficient programs without manual tuning. This capability is particularly appealing in the context of sustainable computing, where enhanced performance is often assumed to correspond to reduced energy consumption. However, LLMs themselves are energy-and resource-intensive, raising critical questions about whether their use for code optimization is energetically justified. Prior work mainly focused on runtime performance gains, leaving a gap in our understanding of the broader energy implications of LLM-based code optimization.In this paper, we report on a systematic, energy-focused evaluation of LLM-based code optimization methods. Relying on 118 tasks from the EvalPerf benchmark, we assess the trade-offs between code performance, correctness, and energy consumption of multiple optimization methods across multiple families of LLMs. We introduce the Break-Even Point (BEP) as a key metric to quantify the number of executions required for an optimized program to outweigh the energy consumed when generating the optimization itself.Our results show that, while certain configurations achieve substantial speedups and energy reductions, these benefits often demand from hundreds to hundreds of thousands of executions to become energetically profitable. Moreover, the optimization process often yields incorrect or less efficient code. Importantly, we identify a weak negative correlation between performance gains and actual energy savings, challenging assumptions that faster code automatically equates to a smaller energy footprint. This work underscores the necessity of energy-aware optimization strategies. Practitioners should carefully target LLM-based optimization efforts to high-frequency, high-impact workloads, while monitoring energy consumption across the entire life-cycle of development and deployment.</p>
            </abstract>
            <particDesc>
              <org type="consortium">https://project.inria.fr/llm4code/</org>
            </particDesc>
          </profileDesc>
        </biblFull>
      </listBibl>
    </body>
    <back>
      <listOrg type="structures">
        <org type="researchteam" xml:id="struct-432644" status="VALID">
          <idno type="RNSR">201421121B</idno>
          <idno type="ROR">https://ror.org/03eyty988</idno>
          <orgName>Self-adaptation for distributed services and large software systems</orgName>
          <orgName type="acronym">SPIRALS</orgName>
          <date type="start">2015-01-01</date>
          <date type="end">2026-06-30</date>
          <desc>
            <address>
              <addrLine>Centre Inria de l'Université de Lille ,170 Av. de Bretagne, 59000 Lille</addrLine>
              <country key="FR"/>
            </address>
            <ref type="url">http://www.inria.fr/equipes/spirals</ref>
          </desc>
          <listRelation>
            <relation active="#struct-104752" type="direct"/>
            <relation active="#struct-300009" type="indirect"/>
            <relation active="#struct-410272" type="direct"/>
            <relation name="UMR9189" active="#struct-120930" type="indirect"/>
            <relation name="UMR9189" active="#struct-374570" type="indirect"/>
            <relation name="UMR9189" active="#struct-441569" type="indirect"/>
          </listRelation>
        </org>
        <org type="laboratory" xml:id="struct-104752" status="VALID">
          <idno type="RNSR">200818245B</idno>
          <idno type="ROR">https://ror.org/04eej9726</idno>
          <orgName>Centre Inria de l'Université de Lille</orgName>
          <desc>
            <address>
              <addrLine>Parc Scientifique de la Haute Borne 40, avenue Halley Bât.A, Park Plaza 59650 Villeneuve d'Ascq</addrLine>
              <country key="FR"/>
            </address>
            <ref type="url">http://www.inria.fr/lille/</ref>
          </desc>
          <listRelation>
            <relation active="#struct-300009" type="direct"/>
          </listRelation>
        </org>
        <org type="institution" xml:id="struct-300009" status="VALID">
          <idno type="ROR">https://ror.org/02kvxyf05</idno>
          <orgName>Institut National de Recherche en Informatique et en Automatique</orgName>
          <orgName type="acronym">Inria</orgName>
          <desc>
            <address>
              <addrLine>Domaine de VoluceauRocquencourt - BP 10578153 Le Chesnay Cedex</addrLine>
              <country key="FR"/>
            </address>
            <ref type="url">http://www.inria.fr/en/</ref>
          </desc>
        </org>
        <org type="laboratory" xml:id="struct-410272" status="VALID">
          <idno type="IdRef">18388695X</idno>
          <idno type="RNSR">201521249L</idno>
          <idno type="ROR">https://ror.org/05vrs3189</idno>
          <idno type="Wikidata">Q116959497</idno>
          <orgName>Centre de Recherche en Informatique, Signal et Automatique de Lille - UMR 9189</orgName>
          <orgName type="acronym">CRIStAL</orgName>
          <date type="start">2015-01-01</date>
          <desc>
            <address>
              <addrLine>Université de Lille - Campus scientifique - Bâtiment ESPRIT - Avenue Henri Poincaré - 59655 Villeneuve d’Ascq</addrLine>
              <country key="FR"/>
            </address>
            <ref type="url">https://www.cristal.univ-lille.fr/</ref>
          </desc>
          <listRelation>
            <relation name="UMR9189" active="#struct-120930" type="direct"/>
            <relation name="UMR9189" active="#struct-374570" type="direct"/>
            <relation name="UMR9189" active="#struct-441569" type="direct"/>
          </listRelation>
        </org>
        <org type="institution" xml:id="struct-120930" status="VALID">
          <idno type="IdRef">256304629</idno>
          <idno type="ISNI">0000000122034461</idno>
          <idno type="ROR">https://ror.org/01x441g73</idno>
          <orgName>Centrale Lille</orgName>
          <desc>
            <address>
              <addrLine>École Centrale de Lille - Cité Scientifique - CS 20048 59651 Villeneuve d'Ascq Cedex</addrLine>
              <country key="FR"/>
            </address>
            <ref type="url">https://centralelille.fr/</ref>
          </desc>
        </org>
        <org type="regroupinstitution" xml:id="struct-374570" status="VALID">
          <idno type="IdRef">223446556</idno>
          <idno type="ISNI">0000 0001 2242 6780</idno>
          <idno type="ROR">https://ror.org/02kzqn938</idno>
          <idno type="Wikidata">Q3551621</idno>
          <orgName>Université de Lille</orgName>
          <desc>
            <address>
              <addrLine>EPE Université de Lille. -- 42 rue Paul Duez, 59000 Lille</addrLine>
              <country key="FR"/>
            </address>
            <ref type="url">https://www.univ-lille.fr/</ref>
          </desc>
        </org>
        <org type="regroupinstitution" xml:id="struct-441569" status="VALID">
          <idno type="IdRef">02636817X</idno>
          <idno type="ISNI">0000000122597504</idno>
          <idno type="ROR">https://ror.org/02feahw73</idno>
          <orgName>Centre National de la Recherche Scientifique</orgName>
          <orgName type="acronym">CNRS</orgName>
          <date type="start">1939-10-19</date>
          <desc>
            <address>
              <country key="FR"/>
            </address>
            <ref type="url">https://www.cnrs.fr/</ref>
          </desc>
        </org>
      </listOrg>
      <listOrg type="projects">
        <org type="anrProject" xml:id="projanr-57788" status="VALID">
          <idno type="anr">ANR-21-CE25-0022</idno>
          <orgName>DISTILLER</orgName>
          <desc>Service de recommandation pour des logiciels en ligne plus durables</desc>
          <date type="start">2021</date>
        </org>
        <org type="anrProject" xml:id="projanr-109998" status="VALID">
          <idno type="anr">ANR-23-PECL-0003</idno>
          <orgName>CARECloud</orgName>
          <desc>Comprendre, Améliorer, Réduire les impacts Environnementaux du Cloud computing</desc>
          <date type="start">2023</date>
        </org>
      </listOrg>
    </back>
  </text>
</TEI>