[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"branding":3,"analytics":7,"article-better-prompts-cut-llm-codes-energy-use-by-up-to-56-percent":10,"sections":40},{"siteName":4,"siteTagline":5,"publisherName":4,"contactEmail":6},"The Revision","Tech news, decoded.","editor@therevision.news",{"gaMeasurementId":8,"adsenseClientId":9},"G-ZW2MV82GYR","ca-pub-8533917693782264",{"article":11},{"id":12,"slug":13,"title":14,"dek":15,"body_md":16,"tags_json":17,"published_at":18,"created_at":19,"updated_at":20,"status":21,"review_note":22,"review_notes":23,"image_url":22,"persona_id":22,"persona_name":22,"section":30,"tags":31,"sources":35,"feedback":39,"feedback_at":22,"cost_usd":39,"total_tokens":39},10225,"better-prompts-cut-llm-codes-energy-use-by-up-to-56-percent","Better Prompts Cut LLM Code's Energy Use by Up to 56 Percent","A new study tests 21 prompting strategies across 10 LLMs and finds some cut code energy use by double digits, with one model saving 56% in C++.","Researchers found that how you phrase a coding prompt can cut the energy your AI-generated code burns by more than half.\n\nThe study tested 21 prompting strategies for energy-efficient code generation, narrowed them to 8 effective ones, and ran them across 10 widely used open-weight and proprietary LLMs. Each model generated Python and C++ code with and without the optimized prompts, and the researchers measured the energy difference against a baseline prompt. Averaged across all 10 models, the best strategies cut energy use by up to 25% for Python and 17% for C++. The gains varied sharply by model: Python savings topped out at 50% for Granite-4.0-H-Small, 39% for Claude 4.5 Haiku, and 28% for MiniMax M3, while C++ savings ranged from just 7% for Qwen3-Coder-480B-A35B-Instruct up to 56% for Granite-4.0-H-Small.\n\nMost code-generation benchmarks still grade LLMs purely on whether the output runs and passes tests. This study is a reminder that two functionally identical programs can have very different energy footprints, and that the prompt itself, not just the model, is a lever worth pulling as AI-written code becomes a bigger share of what runs in production.\n\nThe catch: a strategy that saves 56% on one model barely moves the needle on another. That is not a one-line fix you can paste into every prompt library. It is a research finding that still needs someone to turn it into a product.","[\"ai\",\"energy efficiency\",\"prompt engineering\",\"llm\"]","2026-10-05T04:00:00.000Z","2026-10-06T09:18:11.025Z","2026-10-06T09:18:17.134Z","published",null,[24],{"id":25,"reviewer":26,"round":27,"reason":28,"status":29},"editor-r1","editor",1,"The opening line claims the maximum savings is 'as much as half' (50%), but the dek and body report the true maximum is 56% (Granite-4.0-H-Small in C++) — reconcile the lead's figure with the actual reported maximum.","resolved","ai",[30,32,33,34],"energy efficiency","prompt engineering","llm",[36],{"name":37,"url":38},"arXiv cs.AI","https:\u002F\u002Farxiv.org\u002Fabs\u002F2610.02571",0,{"sections":41},[42,46,51,56,61,66,71,76,81,86,91,96,101,106],{"name":43,"slug":30,"count":44,"latest_published_at":45},"AI",6340,"2026-10-05T21:19:03.000Z",{"name":47,"slug":48,"count":49,"latest_published_at":50},"Security","security",877,"2026-10-05T21:10:00.000Z",{"name":52,"slug":53,"count":54,"latest_published_at":55},"Policy","policy",457,"2026-10-05T21:15:05.000Z",{"name":57,"slug":58,"count":59,"latest_published_at":60},"Deals","deals",354,"2026-10-05T20:30:00.000Z",{"name":62,"slug":63,"count":64,"latest_published_at":65},"Hardware","hardware",210,"2026-10-05T21:14:08.000Z",{"name":67,"slug":68,"count":69,"latest_published_at":70},"Science","science",182,"2026-10-05T18:58:12.000Z",{"name":72,"slug":73,"count":74,"latest_published_at":75},"Consumer Tech","consumer-tech",161,"2026-10-05T18:18:56.000Z",{"name":77,"slug":78,"count":79,"latest_published_at":80},"Software","software",103,"2026-10-05T18:23:19.000Z",{"name":82,"slug":83,"count":84,"latest_published_at":85},"Dev Tools","dev-tools",99,"2026-10-05T10:47:06.000Z",{"name":87,"slug":88,"count":89,"latest_published_at":90},"Startups","startups",96,"2026-10-05T20:24:09.000Z",{"name":92,"slug":93,"count":94,"latest_published_at":95},"Gaming","gaming",54,"2026-10-05T19:07:04.000Z",{"name":97,"slug":98,"count":99,"latest_published_at":100},"General","general",52,"2026-10-05T17:01:27.000Z",{"name":102,"slug":103,"count":104,"latest_published_at":105},"Reviews","reviews",33,"2026-10-05T11:57:17.000Z",{"name":107,"slug":108,"count":109,"latest_published_at":110},"How-To","how-to",8,"2026-10-05T09:00:00.000Z"]