Small Talk, Big Impact: The Energy Cost of Thanking AI
Julien Delavande, Regis Pierrard, Sasha Luccioni
TL;DR
This work quantifies the energy cost of polite interactions with large language models by measuring energy use during thousands of polite completions on open-source LLMs. It introduces a two-phase decomposition (prefill and decode) and a closed-form latency model that links input/output lengths to energy through compute- and memory-bound regimes, validated by empirical data from an H100-based setup. Key findings show energy grows linearly with prompt and generation lengths, larger models incur substantially higher energy due to deeper architectures and longer outputs, and prefill dominates upfront while decode drives the tail; these insights enable more sustainable deployment strategies. The study provides reproducible measurement tooling and latency models, highlighting a practical trade-off between politeness (which can improve alignment and user trust) and energy efficiency in real-world AI systems.
Abstract
Being polite is free - or is it? In this paper, we quantify the energy cost of seemingly innocuous messages such as ``thank you'' when interacting with large language models, often used by users to convey politeness. Using real-world conversation traces and fine-grained energy measurements, we quantify how input length, output length and model size affect energy use. While politeness is our motivating example, it also serves as a controlled and reproducible proxy for measuring the energy footprint of a typical LLM interaction. Our findings provide actionable insights for building more sustainable and efficient LLM applications, especially in increasingly widespread real-world contexts like chat. As user adoption grows and billions of prompts are processed daily, understanding and mitigating this cost becomes crucial - not just for efficiency, but for sustainable AI deployment.
