Keyword Matters: Unveiling the Energy Sensitivity of On-Device LLM Prompting
Summary
This paper empirically studies how prompt wording affects energy consumption for on-device LLMs, showing that keyword choices can significantly impact decoding length and total energy, suggesting prompt engineering as a lightweight energy optimization lever.
View Cached Full Text
Cached at: 07/28/26, 06:24 AM
# Keyword Matters: Unveiling the Energy Sensitivity of On-Device LLM Prompting
Source: [https://arxiv.org/html/2607.22568](https://arxiv.org/html/2607.22568)
Ruiyi Tao Juanita High School Redmond, Washington, USA taoroy960@gmail\.com &Xiaolong Tu Georgia State University Atlanta, Georgia, USA xtu1@gsu\.edu &Haoxin Wang Georgia State University Atlanta, Georgia, USA haoxinwang@gsu\.edu
###### Abstract
Large Language Models \(LLMs\) are increasingly deployed on mobile and embedded devices to improve privacy and reduce network latency\. Yet on\-device inference faces a fundamental constraint: high energy consumption on battery\-powered, resource\-limited hardware\. While model compression and runtime acceleration have been widely studied, the effect of*prompt design*on energy efficiency remains underexplored\. This paper presents an empirical study of the relationship between prompt wording and energy consumption for on\-device LLMs\. Using real power measurements collected on a smartphone, we quantify how linguistic features, particularly imperative keywords and instruction structure, affect decoding length and total energy\. Our results show consistent energy differences across verbs and tasks, indicating that prompt engineering is a lightweight lever for improving energy efficiency\.
Keyword Matters: Unveiling the Energy Sensitivity of On\-Device LLM Prompting
Ruiyi TaoJuanita High SchoolRedmond, Washington, USAtaoroy960@gmail\.comXiaolong TuGeorgia State UniversityAtlanta, Georgia, USAxtu1@gsu\.eduHaoxin WangGeorgia State UniversityAtlanta, Georgia, USAhaoxinwang@gsu\.edu
Figure 1:Overview of the experimental pipeline\. Prompts are constructed from text generation and sentiment analysis tasks through keyword replacement, then executed on two edge platforms, Google Pixel 9a \| Android 15 and Orange Pi 5 Pro \| Ubuntu 22\.04, for on\-device inference and energy profiling\.## 1Introduction
Large Language Models \(LLMs\), such as GPT\-4, LLaMA 3, and DeepSeek, have demonstrated remarkable capabilities in text generation, reasoning, and problem solving\. They now power applications ranging from virtual assistants and coding copilots to educational and creative tools\. To support these workloads, most commercial LLMs are currently deployed in cloud environments, where large\-scale computing clusters provide sufficient memory, processing, and cooling resources to handle billions of parameters and real\-time user requestsMeta AI \([2024](https://arxiv.org/html/2607.22568#bib.bib1)\); Microsoft Research \([2024](https://arxiv.org/html/2607.22568#bib.bib2)\)\.
However, cloud\-based inference introduces growing concerns about data privacy, latency, and energy cost\. Sensitive user data must travel across networks to remote servers, creating potential privacy risks and increasing response delays\. As a result, researchers and industry developers have begun exploring on\-device LLM deployment, running compact models directly on mobile phones, embedded systems, and IoT devicesMLC AI \([2023](https://arxiv.org/html/2607.22568#bib.bib5)\); NVIDIA \([2023](https://arxiv.org/html/2607.22568#bib.bib6)\); Hanet al\.\([2016](https://arxiv.org/html/2607.22568#bib.bib3)\); Hintonet al\.\([2015](https://arxiv.org/html/2607.22568#bib.bib4)\)\. This emerging trend offers improved privacy and offline availability, but also exposes a fundamental constraint: limited energy and computing resources\.
Unlike data centers with continuous power supply and active cooling, edge devices are battery\-powered and thermally constrained\. The high computational demand of autoregressive token generation leads to substantial energy draw on CPUs, GPUs, or NPUs, shortening device battery life and limiting sustained performanceSchwartzet al\.\([2020](https://arxiv.org/html/2607.22568#bib.bib7)\); Strubellet al\.\([2019](https://arxiv.org/html/2607.22568#bib.bib8)\)\. As model inference scales with prompt length, decoding steps, and reasoning depth, even small inefficiencies in model execution or input design can result in significant energy overhead\. Therefore, understanding and reducing energy consumption has become a crucial step toward enabling practical and sustainable on\-device intelligence\.
While prior research has optimized model architectures through quantization, pruning, and distillation, the effect of prompt design on energy consumption remains underexplored\. Recent works suggest that different prompt wordings can trigger distinct reasoning paths, token lengths, and attention activations, potentially altering power usages\. This raises an intriguing question:Can prompt engineering serve as a lightweight mechanism for energy\-aware control during on\-device LLM inference?
In this work, \(i\) We present a controlled measurement study of keyword\-level prompt effects on decoding energy\. \(ii\) We define a measurement protocol and metrics \(TTFT, TBT, energy split into prefill/decoding\) and report cross\-model, cross\-task trends\. We analyze how different linguistic patterns, especially keywords, affect runtime behavior and power draw\. Our findings highlight that prompt formulation is not only a semantic or stylistic factor, but also an energy\-relevant one\.
## 2Related Work
### 2\.1LLM Optimization and On\-Device Deployment
Recent advances in system and algorithm co\-design have significantly reduced LLM inference cost\. FlashAttention reorders attention computation to minimize memory access and achieve GPU speedupsDaoet al\.\([2022](https://arxiv.org/html/2607.22568#bib.bib13)\), while vLLM introduces PagedAttention to mitigate KV\-cache fragmentation and improve long\-context throughputKwonet al\.\([2023](https://arxiv.org/html/2607.22568#bib.bib14)\)\. Speculative decoding accelerates generation through draft\-and\-verify predictionLeviathanet al\.\([2023](https://arxiv.org/html/2607.22568#bib.bib15)\)\. Model\-side compression complements these efforts\. For example, QLoRA enables memory\-efficient fine\-tuning on low\-bit modelsDettmerset al\.\([2023](https://arxiv.org/html/2607.22568#bib.bib20)\)\.
Beyond cloud servers, compact transformer architectures such as MobileLLMLiu and others \([2024](https://arxiv.org/html/2607.22568#bib.bib24)\)demonstrate the feasibility of sub\-billion\-parameter LLMs on edge devices\. Frameworks like MLC\-LLM and TensorRT\-LLM further optimize execution pipelines for mobile and embedded NPUs\. Meanwhile, sustainability studies such as CarbonTrackerAnthonyet al\.\([2020](https://arxiv.org/html/2607.22568#bib.bib25)\)and the BLOOM carbon reportLuccioniet al\.\([2023](https://arxiv.org/html/2607.22568#bib.bib27)\)provide tools for quantifying energy and emissions in AI training and inference\. However, most prior work focuses on hardware or model efficiency rather than user\-driven linguistic effects on energy consumption\.
### 2\.2Prompt Engineering and Energy Awareness
Prompting strategies directly influence reasoning depth and token generation\. Chain\-of\-ThoughtWeiet al\.\([2022](https://arxiv.org/html/2607.22568#bib.bib28)\)enhances multi\-step reasoning at the cost of longer decoding sequences\. Automatic Prompt Engineering \(APE\)Zhouet al\.\([2022](https://arxiv.org/html/2607.22568#bib.bib30)\)and Active\-PromptDiaoet al\.\([2023](https://arxiv.org/html/2607.22568#bib.bib31)\)search or select effective prompts to guide model behavior\. While these studies focus on improving accuracy, efficiency, or controllability, few consider their impact on energy usage\. Our work extends this line by empirically measuring how imperative keyword choices in prompts affectprefillanddecodeenergy consumption on a smartphone, introducing a sustainability perspective to prompt engineering and bridging the gap between linguistic design and device\-level energy efficiency\.
## 3Background and Motivation
### 3\.1Background
Large Language Models \(LLMs\) such as ChatGPT, Gemini, and Claude rely on massive cloud\-based GPU and TPU clusters for real\-time inference\. While this setup enables scalability and continuous updates, it raises concerns aboutprivacy,latency, andenergy consumption\. Global data centers hosting AI workloads are projected to consume nearly 1,000 TWh of electricity annually by 2030\.
To mitigate these challenges, recent progress in quantization, pruning, and efficient transformer architectures has enabledon\-device LLMs, compact models such asPhi\-3\-mini,Qwen\-1\.5, andLLaMA 3\.2 1B/3B—that can run locally on smartphones or embedded NPUs\. These on\-device deployments improve privacy and responsiveness but introduce a new bottleneck:energy efficiency\. Autoregressive inference involves two main phases:prefillanddecode, where the latter dominates both runtime and power usage\. Empirical profiling shows that total energy scales almost linearly with output length and decoding latency, making energy consumption a critical constraint for edge deployment\.
### 3\.2Motivation
Prior efforts to improve energy efficiency have focused on hardware\- or model\-level techniques, such as quantization, pruning, or kernel optimization, which require retraining and platform\-specific tuning\. However, a lightweight and overlooked alternative lies inprompt design\. Linguistic choices such as “generate,” “explain,” or “list” can alter reasoning depth, token length, and activation patterns—thereby affecting energy use even under the same model and hardware configuration\.
Despite growing evidence that prompt phrasing influences computation, existing studies are largely theoretical or simulation\-based, lacking validation on real devices\. This work fills that gap by providing the first empirical analysis linkingimperative keyword choicesto measured power consumption during on\-device LLM inference\. Our findings highlight prompt engineering as a simple yet effective lever for achievingenergy\-efficient and privacy\-preservingintelligence at the edge\.
## 4Experimental Design
### 4\.1Research Objective and Questions
Building on Section[3](https://arxiv.org/html/2607.22568#S3), our objective is to quantify how linguistic variations, particularly the choice of imperativekeywords, affect the energy consumption of on\-device LLMs\. This study is guided by three research questions:
- •RQ1:How do different prompt keywords affect the overall energy consumption of on\-device LLM inference?
- •RQ2:Are the observed keyword\-driven energy patterns consistent across different LLM models and devices?
- •RQ3:How is response quality affected by prompt keywords, and how does it correlate with energy consumption?
### 4\.2Hardware Setup, Model and Experimental Pipeline
Hardware Setup:Experiments were conducted on an Orange Pi 5 Pro running Ubuntu 22\.04 and a rooted Google Pixel 9a\. These two devices each have different capabilities that became apparent in the study\. The Orange Pi excelled in prefill, completing its prefill phase in an average of 115ms, compared to the Pixel 9a, which completed its prefill phase in an average of 87,000ms\. However, the decode rate was similar across devices, 114ms TBT for Orange Pi, and 100ms TBT for Pixel 9a\. To reduce interference from unrelated system activity, all measurements on the Orange Pi were performed in multi\-user mode\. On the Pixel 9a, CPU frequencies were fixed at 1328 kHz for Cores 0–3, 1418 kHz for Cores 4–6, and 2294 kHz for Core 7\. To maintain stable power measurements, thermal throttling, adaptive brightness, and background services were disabled, and screen brightness was fixed at the minimum level to reduce display\-related noise\.
Models and Experimental Pipeline:The end\-to\-end measurement workflow is illustrated in Figure[1](https://arxiv.org/html/2607.22568#S0.F1)\. We evaluated models from the Qwen, SmolLM, Gemma, and Llama families to ensure that our observations are consistent across architectures\. Most selected models were matched to have similar parameter sizes and quantization settings, while one smaller model was additionally included to study the effect of model size\. All models except the Gemma model are instruct models\. The Gemma model was selected to test how a different type of model would be affected by different keywords\.
### 4\.3Tasks, Prompts, and Data Collection
To relate linguistic structure to energy consumption, we evaluate two representative NLP tasks capturing open\-ended and analytical behavior:
Text Generation:Prompts adapted from the Alpaca\-GPT4 datasetTaoriet al\.\([2023](https://arxiv.org/html/2607.22568#bib.bib12)\)\(creative writing, explanation\)\. 50 prompts were chosen, and the keyword was replaced with 10 selected directive verbs\. Previously, we chose 50 different prompts for each keyword instead of using the same 50 prompts for each keyword\. However, due to the inherent biases in the usage of each keyword in the Alpaca\-GPT4 dataset, this led to results that were suspiciously consistent across environments\. The text generation prompts used in this paper only differ from each other by keyword, isolating its impact, also preserving the inherent randomness of language models\.
Sentiment Analysis:Prompts synthesized using Yelp review dataYelp, Inc\. \([2024](https://arxiv.org/html/2607.22568#bib.bib11)\)with analytical verbs \(determine,label, etc\.\), representing short, deterministic reasoning\. These prompts use the same 50 yelp reviews, combined with a short sentence that prompts binary sentiment analysis\. Similarly to text generation, this was also done to isolate the impact of keywords\.
Figure 2:Prompt\-complexity distribution comparison between the original and keyword\-replaced text\-generation prompt dataset\.Prompts:For each keyword, we selected 50 prompts, resulting in 1,000 prompts in total \(500 per task\) and 5,000 prompt\-model runs across 5 models\. To verify that keyword replacement does not substantially change prompt difficulty, we evaluated both the original and rewritten Text Generation prompts using the NVIDIA prompt\-task\-and\-complexity classifierNVIDIA \([2024](https://arxiv.org/html/2607.22568#bib.bib35)\)\. As shown in Figure[2](https://arxiv.org/html/2607.22568#S4.F2), the two score distributions largely overlap, suggesting that the rewritten prompts preserve the overall complexity profile of the original ones\. Quantitatively, the matched original prompts have a mean complexity score of 0\.3048, compared to 0\.3199 for the rewritten prompts, corresponding to a small average shift of \+0\.0151 on a 0–1 scale\. Furthermore, after averaging across rewritten variants, the prompt\-level scores remain highly correlated with the original prompts \(Pearsonr=0\.942r=0\.942, Spearmanρ=0\.944\\rho=0\.944\)\. Together, these results show that keyword replacement introduces only a minor change in classifier\-assigned complexity while preserving the relative difficulty structure of the prompt set\.
Data Collection:For the Orange Pi 5 Pro, we used the Python API to run the models and the FNIRSI FNB58 to collect energy data\. The output was parsed using a third\-party data loggerBaryluk \([2026](https://arxiv.org/html/2607.22568#bib.bib32)\)\. For the Pixel 9a, we ran a customizedMLCChatthat integrates logging into the inference pipeline by measuring the power draw from the battery while the phone is discharging\. Responses are capped at 1,000 tokens to stop infinite loops occasionally observed in small quantized models\.
Per\-run metrics include:prompt length\(LpL\_\{p\}\),response length\(LrL\_\{r\}\),TTFT,TBT, and instantaneousvoltage/currenttraces sampled at 10 Hz\. Total energy is computed as:
E=∑i=1NIiViΔt,Δt=0\.1s,E=\\sum\_\{i=1\}^\{N\}I\_\{i\}V\_\{i\}\\Delta t,\\qquad\\Delta t=0\.1~\\mathrm\{s\},and logged separately forprefill\(EprefillE\_\{\\text\{prefill\}\}\) anddecoding\(EdecE\_\{\\text\{dec\}\}\)\. To prevent memory accumulation, the model instance is reloaded before each run\.
### 4\.4Accuracy Evaluation
To evaluate response quality, we used the DeepEval Python libraryDeepEval \([2026](https://arxiv.org/html/2607.22568#bib.bib33)\)with GPT\-4\.1\-mini as an LLM judge to perform G\-Eval on each input–output pairLiuet al\.\([2023](https://arxiv.org/html/2607.22568#bib.bib34)\)\. Model responses were assessed according to the following criteria:
1. 1\.Relevance:whether the output meaningfully addresses the questions, tasks, or instructions expressed in the input prompt\.
2. 2\.Accuracy:whether the factual claims in the output are correct, verifiable, and consistent with established knowledge or information explicitly provided in the input\.
3. 3\.Coherence:whether the output is logically organized, internally consistent, and easy to follow as a unified response\.
4. 4\.Conciseness:whether the output conveys the required information efficiently, without unnecessary detail beyond what is needed to satisfy the intent of the input\.
Although the judge model may implicitly consider factual accuracy across multiple criteria, we found that this overlap has minimal effect on the significance of the overall score\.
Figure 3:Text generationdecode energy deviation from model mean \(%\) across classification\-related keywords on the Orange Pi 5 Pro\. Values represent per\-keyword deviation from each model’s mean decode energy\.Figure 4:Sentiment analysisdecode energy deviation from model mean \(%\) across classification\-related keywords on the Orange Pi 5 Pro\. Values represent per\-keyword deviation from each model’s mean decode energy\.Figure 5:Text generationdecode energy deviation from model mean for Pixel 9a and Orange Pi 5 Pro, shown for Qwen2\.5\-1\.5B and SmolLM2\-1\.7B\.Figure 6:Sentiment analysisdecode energy deviation from model mean for Pixel 9a and Orange Pi 5 Pro, shown for Qwen2\.5\-1\.5B\.Figure 7:Text generationdecode energy % deviation from model mean and output accuracy on the Orange Pi 5 Pro\.Figure 8:Sentiment analysisdecode energy % deviation from model mean and output accuracy on the Orange Pi 5 Pro\.
## 5Empirical Study and Results
Building upon the experimental framework described in Section[4](https://arxiv.org/html/2607.22568#S4), this section presents empirical findings addressing our three research questions \(RQ1–RQ3\)\. We analyze how linguistic variations, particularly keywords, influence the energy consumption of on\-device LLMs across 5 models and two task types \(text generation and sentiment analysis\)\. Unless otherwise specified, all energy values refer to the decoding phase \(EdecE\_\{\\text\{dec\}\}\)\.
All figures show how the mean energy consumption for each keyword compares to the mean energy consumption across the whole model, represented as a percentage deviation\.
### 5\.1RQ1: How do different prompt keywords affect the overall energy consumption of on\-device LLM inference?
#### 5\.1\.1Text Generation
Figure[3](https://arxiv.org/html/2607.22568#S4.F3)reveals that using an energy efficient keyword can save up to 18\.5% energy during the decode phase of text generation tasks \(“create” keyword in Qwen 0\.5B\)\. Meanwhile, an inefficient choice of keyword can increase consumption by up to 26\.5% \(“craft” keyword in Qwen 1\.5B\)\. In both Qwen models, the top performing keyword, “create,” saved around 18% energy in the decode phase\. Compare this to Llama, which saved only 4\.2% energy with the “output” keyword\.
\{graybox\}
Insight 1:Certain model families, like Qwen, are more sensitive to changes in keywords, leading to larger energy savings\.
Of these models, the order from most to least sensitive is: Qwen, SmolLM, Llama, Gemma\. Gemma had the lowest keyword sensitivity, but this is because Gemma’s responses were low quality \(see Figure[7](https://arxiv.org/html/2607.22568#S4.F7)\) and often devolved into endless repetition, quickly reaching the token limit\. Since the lengths of many responses were the same, at token limit, there is a relatively small deviation in energy consumption\. In the second least sensitive model, Llama, aside from the keyword “construct”, which led to a 7% increase in energy consumption, the rest of the keywords consumed similar amounts of energy, deviating from each other by less than 6%\.
#### 5\.1\.2Sentiment Analysis
Figure[4](https://arxiv.org/html/2607.22568#S4.F4)shows that there is more promise to reduce energy consumption in sentiment analysis\. Across all 5 models, the keyword “label” performed very well, saving between 32\.1% and 62\.6% decode energy from the mean in all models, suggesting that it could be heavily optimized in other language models as well\.
Energy savings in sentiment analysis are much greater than in text generation when viewing percentages\. This is because sentiment analysis generates shorter responses, so small changes in response length can lead to large percentage changes\. Aside from the “label” keyword, the “categorize” keyword also performed better than average in all 5 models, but it especially shined in Qwen 0\.5B\.
### 5\.2RQ2: Are the observed keyword\-driven energy patterns consistent across different LLM models and devices?
#### 5\.2\.1Consistency across models
Using the pairwise Spearman coefficient of the ranks of keywords across models, we get an average coefficient of 0\.153 in text generation, and an averageρ=0\.388\\rho=0\.388in sentiment analysis, showing that there is very little correlation across models\. However, some patterns stand out\.
The two Qwen models had a Spearman correlation ofρ=0\.588\\rho=0\.588in text generation, andρ=0\.867\\rho=0\.867in sentiment analysis\. In addition, the top three keywords for energy efficiency were “create,” “generate,” and “write,” in this order for both models\. In text generation, for all keywords but 3 \(“craft,” “construct,” and “compose”\), they deviated between models by an average of only 3\.4%\.
\{graybox\}
Insight 2:In the same model family, energy consumption is consistent with the keyword used\.
Despite the insignificant correlation, a trend in all 5 models in text generation is that keywords like “generate” and “output” that are robotic in nature seem to perform well in all models \(average deviation by \-4\.6% and \-2\.7% respectively, and ranks 2 and 3 overall across all models\), suggesting that the models may be optimized for robotic keywords\. However, the “create” keyword outperformed both with an average deviation by \-7\.7%\. The worst performing keyword was “construct,” with an average deviation of \+5\.6% across all models\.
In sentiment analysis, the best performing keyword was “label,” which performed well in all 5 models, with an average percentage deviation of \-48\.64%\. Other keywords that performed well include “categorize” \(\-24\.5%\), and “classify” \(\-19\.86%\)\. Compared to that, the keywords that performed the worst were “analyze” \(\+35\.9%\) and “assess” \(\+27\.02%\)\. The keywords that performed well all instructed the model to identify rather than analyze\.
\{graybox\}
Insight 3:Keyword sentiment has a tangible impact on energy consumption in sentiment analysis tasks; keywords that prompt deep thinking in humans also prompt more complex thinking in AI\.
#### 5\.2\.2Consistency across devices
Figure[5](https://arxiv.org/html/2607.22568#S4.F5)shows that across devices, with the same keyword, text generation results can vary by a significant amount\. Qwen had a Spearmanρ=0\.261\\rho=0\.261, and SmolLM hadρ=0\.697\\rho=0\.697\. This suggests that in text generation, inherent randomness in the open ended prompts can lead to large deviations across devices\.
However, Figure[6](https://arxiv.org/html/2607.22568#S4.F6)shows that sentiment analysis results have much greater correlation across devices, with Qwen having a Spearmanρ=0\.939\\rho=0\.939\.
\{graybox\}
Insight 4:Due to the open ended nature of text generation prompts, their energy consumption can fluctuate across environments\. By contrast, sentiment analysis consumption stays relatively consistent\.
### 5\.3RQ3: How is response quality affected by prompt keywords, and how does it correlate with energy consumption?
#### 5\.3\.1Text Generation
Accuracy is measured on a scale from 0–4, with 2 being a passing score \(criteria described above\)\. In text generation, the keyword has little impact on response accuracy, as seen in Figure[7](https://arxiv.org/html/2607.22568#S4.F7)\. The Spearman correlation between the rankings by energy consumption, and the rankings by accuracy average to \-0\.086 for text generation, nearly random\.
\{graybox\}
Insight 5:In text generation, optimizing prompt wording for energy efficiency has no noticeable impact on response quality\.
#### 5\.3\.2Sentiment Analysis
In sentiment analysis, however, the correlation was \-0\.632, which is a moderate inverse correlation\. This is also apparent in Figure[8](https://arxiv.org/html/2607.22568#S4.F8), where less efficient keywords have lower accuracy\. This inverse correlation suggests longer responses can be prone to errors, while shorter responses answer concisely and accurately\.
## 6Future Work
Our current study focuses on an empirical analysis of how prompt keywords affect the energy consumption of on\-device LLM inference\. While our findings provide initial evidence of a measurable correlation between linguistic structure and power usage, several open questions and opportunities remain for future exploration\.
### 6\.1Development of a Green Prompt Engine
We plan to develop agreen prompt enginecapable of automatically rewriting user instructions to minimize energy usage while preserving semantic intent and output quality\. This system would operate at three levels:
1. 1\.Linguistic optimization:reformulating high\-energy prompts using alternative verbs or structures known to reduce token length and reasoning depth\.
2. 2\.Semantic equivalence assurance:applying sentence embedding or entailment checks to maintain meaning consistency\.
3. 3\.Energy feedback loop:incorporating real\-time measurement data to iteratively refine rewriting strategies\.
Such a framework could be integrated into mobile assistants or developer toolchains, providing transparent sustainability optimization with minimal user intervention\.
### 6\.2Cross\-Device and Cross\-Model Generalization
Our present experiments focus on a single mobile platform and one or two compact LLM variants\. Future work will extend this to a broader set of devices, including smartphones, embedded NPUs, and edge accelerators such as Jetson or Coral TPUs\. Comparing different architectures and hardware configurations will reveal how linguistic\-computational correlations generalize across hardware generations and instruction sets\.
### 6\.3Integration With Multi\-Objective Optimization Frameworks
This integration could leverage reinforcement learning or neural architecture search \(NAS\) techniques similar to those in PlatformXTuet al\.\([2025](https://arxiv.org/html/2607.22568#bib.bib36)\), extending the concept from model design to prompt formulation\. Such unification would transform prompt engineering from a heuristic process into a systematic optimization problem for sustainable AI deployment\.
## 7Conclusion
Prompt formulation directly shapes the energy footprint of on\-device LLM inference\. Our empirical results suggest that prompt engineering is not only a semantic control but also a practical, user\-level strategy for improving energy efficiency—paving the way for sustainable and adaptivegreen prompt engineering\.
## Limitations
Several limitations of this study should be acknowledged\. First, each test was conducted only once without repetition, which reduces the reliability of measurements and leaves results susceptible to random variation\. Second, all models tested used the same quantization scheme, limiting the generalizability of our findings across different quantization levels\. Third, the prompt dataset was drawn exclusively from two sources: Alpaca\-GPT4 and Yelp reviews, which constrains the diversity and breadth of the evaluation\. Fourth, the judge LLM used for response quality evaluation appeared to conflate accuracy with other metrics; for instance, responses were occasionally penalized in relevance scores despite being topically appropriate, potentially amplifying accuracy\-related variance and undermining measurement reliability\. Finally, the substantial disparity in prefill times observed between the Orange Pi 5 Pro and the Google Pixel 9a raises questions about device\-level consistency, suggesting that closer monitoring of resource utilization and expanded testing across a wider range of devices would be warranted in future work\.
## References
- CarbonTracker: tracking and predicting the carbon footprint of training deep learning models\.arXiv preprint arXiv:2007\.03051\.Cited by:[§2\.1](https://arxiv.org/html/2607.22568#S2.SS1.p2.1)\.
- Baryluk \(2026\)FNIRSI usb power data logger\.Note:[https://github\.com/baryluk/fnirsi\-usb\-power\-data\-logger](https://github.com/baryluk/fnirsi-usb-power-data-logger)GitHub repository, accessed March 18, 2026Cited by:[§4\.3](https://arxiv.org/html/2607.22568#S4.SS3.p5.1)\.
- T\. Dao, D\. Fu, S\. Ermon, A\. Rudra, and C\. Ré \(2022\)FlashAttention: fast and memory\-efficient exact attention with io\-awareness\.InNeurIPS,External Links:2205\.14135Cited by:[§2\.1](https://arxiv.org/html/2607.22568#S2.SS1.p1.1)\.
- DeepEval \(2026\)DeepEval python library\.Note:GitHub repositoryAvailable at: https://github\.com/confident\-ai/deepeval, accessed March 18, 2026Cited by:[§4\.4](https://arxiv.org/html/2607.22568#S4.SS4.p1.1)\.
- T\. Dettmers, A\. Pagnoni, A\. Holtzman, and L\. Zettlemoyer \(2023\)QLoRA: efficient finetuning of quantized LLMs\.InNeurIPS,External Links:2305\.14314Cited by:[§2\.1](https://arxiv.org/html/2607.22568#S2.SS1.p1.1)\.
- S\. Diao, P\. Wang, Y\. Lin, R\. Pan, X\. Liu, and T\. Zhang \(2023\)Active prompting with chain\-of\-thought for large language models\.arXiv preprint arXiv:2302\.12246\.Cited by:[§2\.2](https://arxiv.org/html/2607.22568#S2.SS2.p1.1)\.
- S\. Han, H\. Mao, and W\. J\. Dally \(2016\)Deep compression: compressing deep neural networks with pruning, trained quantization and huffman coding\.InICLR,Cited by:[§1](https://arxiv.org/html/2607.22568#S1.p2.1)\.
- G\. Hinton, O\. Vinyals, and J\. Dean \(2015\)Distilling the knowledge in a neural network\.External Links:1503\.02531Cited by:[§1](https://arxiv.org/html/2607.22568#S1.p2.1)\.
- W\. Kwon, Z\. Li, S\. Zhuang, Y\. Sheng, L\. Zheng, C\. H\. Yu, J\. E\. Gonzalez, H\. Zhang, and I\. Stoica \(2023\)Efficient memory management for large language model serving with pagedattention\.arXiv preprint arXiv:2309\.06180\.Cited by:[§2\.1](https://arxiv.org/html/2607.22568#S2.SS1.p1.1)\.
- Y\. Leviathan, M\. Kalman, and Y\. Matias \(2023\)Fast inference from transformers via speculative decoding\.InICML,Cited by:[§2\.1](https://arxiv.org/html/2607.22568#S2.SS1.p1.1)\.
- C\. Liuet al\.\(2024\)MobileLLM: optimizing sub\-billion parameter language models for on\-device use\.arXiv preprint arXiv:2402\.14905\.Cited by:[§2\.1](https://arxiv.org/html/2607.22568#S2.SS1.p2.1)\.
- Y\. Liu, D\. Iter, Y\. Xu, S\. Wang, R\. Xu, and C\. Zhu \(2023\)G\-eval: NLG evaluation using gpt\-4 with better human alignment\.InProceedings of the 2023 Conference on Empirical Methods in Natural Language Processing,H\. Bouamor, J\. Pino, and K\. Bali \(Eds\.\),Singapore,pp\. 2511–2522\.External Links:[Link](https://aclanthology.org/2023.emnlp-main.153/),[Document](https://dx.doi.org/10.18653/v1/2023.emnlp-main.153)Cited by:[§4\.4](https://arxiv.org/html/2607.22568#S4.SS4.p1.1)\.
- A\. S\. Luccioni, T\. Viguier, A\. Hernández\-García,et al\.\(2023\)Estimating the carbon footprint of BLOOM, a 176b parameter language model\.Journal of Machine Learning Research24\(169\)\.Cited by:[§2\.1](https://arxiv.org/html/2607.22568#S2.SS1.p2.1)\.
- Meta AI \(2024\)The llama 3 herd of models\.Note:[https://ai\.meta\.com/research/publications/the\-llama\-3\-herd\-of\-models/](https://ai.meta.com/research/publications/the-llama-3-herd-of-models/)Accessed 2025\-11\-01Cited by:[§1](https://arxiv.org/html/2607.22568#S1.p1.1)\.
- Microsoft Research \(2024\)Phi\-3 technical report: a highly capable language model\.External Links:2404\.14219Cited by:[§1](https://arxiv.org/html/2607.22568#S1.p1.1)\.
- MLC AI \(2023\)MLC\-llm: universal deployment of llms\.Note:[https://github\.com/mlc\-ai/mlc\-llm](https://github.com/mlc-ai/mlc-llm)Accessed 2025\-11\-01Cited by:[§1](https://arxiv.org/html/2607.22568#S1.p2.1)\.
- NVIDIA \(2023\)TensorRT\-llm\.Note:[https://github\.com/NVIDIA/TensorRT\-LLM](https://github.com/NVIDIA/TensorRT-LLM)Accessed 2025\-11\-01Cited by:[§1](https://arxiv.org/html/2607.22568#S1.p2.1)\.
- NVIDIA \(2024\)NemoCurator prompt task and complexity classifier\.Note:[https://huggingface\.co/nvidia/prompt\-task\-and\-complexity\-classifier](https://huggingface.co/nvidia/prompt-task-and-complexity-classifier)Hugging Face model card, version 1\.1, accessed March 19, 2026Cited by:[§4\.3](https://arxiv.org/html/2607.22568#S4.SS3.p4.2)\.
- R\. Schwartz, J\. Dodge, N\. A\. Smith, and O\. Etzioni \(2020\)Green ai\.Communications of the ACM63\(12\),pp\. 54–63\.Cited by:[§1](https://arxiv.org/html/2607.22568#S1.p3.1)\.
- E\. Strubell, A\. Ganesh, and A\. McCallum \(2019\)Energy and policy considerations for deep learning in nlp\.InACL,Cited by:[§1](https://arxiv.org/html/2607.22568#S1.p3.1)\.
- R\. Taori, I\. Gulrajani, T\. Zhang, Y\. Dubois, X\. Li, C\. Guestrin, P\. Liang, and T\. Hashimoto \(2023\)Stanford alpaca: code and data\.Note:[https://github\.com/tatsu\-lab/stanford\_alpaca](https://github.com/tatsu-lab/stanford_alpaca)Accessed 2025\-11\-01Cited by:[§4\.3](https://arxiv.org/html/2607.22568#S4.SS3.p2.1)\.
- X\. Tu, D\. Chen, K\. Han, O\. Altintas, and H\. Wang \(2025\)PlatformX: an end\-to\-end transferable platform for energy\-efficient neural architecture search\.InProceedings of the Tenth ACM/IEEE Symposium on Edge Computing,pp\. 1–16\.Cited by:[§6\.3](https://arxiv.org/html/2607.22568#S6.SS3.p1.1)\.
- J\. Wei, X\. Wang, D\. Schuurmans, M\. Bosma, B\. Ichter, F\. Xia, E\. H\. Chi, Q\. V\. Le, and D\. Zhou \(2022\)Chain\-of\-thought prompting elicits reasoning in large language models\.arXiv preprint arXiv:2201\.11903\.Cited by:[§2\.2](https://arxiv.org/html/2607.22568#S2.SS2.p1.1)\.
- Yelp, Inc\. \(2024\)Yelp open dataset\.Note:[https://business\.yelp\.com/data/resources/open\-dataset/](https://business.yelp.com/data/resources/open-dataset/)Accessed 2025\-11\-01Cited by:[§4\.3](https://arxiv.org/html/2607.22568#S4.SS3.p3.1)\.
- Y\. Zhou, A\. I\. Muresanu, Z\. Han, K\. Paster, S\. Pitis, H\. Chan, and J\. Ba \(2022\)Large language models are human\-level prompt engineers\.arXiv preprint arXiv:2211\.01910\.Cited by:[§2\.2](https://arxiv.org/html/2607.22568#S2.SS2.p1.1)\.
## Appendix AGEval Metric Definitions
1GEval\(
2name="Relevance",
3criteria="Evaluatewhethertheactualoutputmeaningfullyattemptstoaddressthequestions,tasks,orinstructionsexpressedintheinputprompt\.",
4evaluation\_steps=\[
5"Decomposetheinputpromptintoallexplicitquestions,tasks,orinstructions",
6"Identifyanyclearlyimpliedordependentsub\-requestsrequiredtofulfilltheprompt",
7"Checkwhethertheactualoutputattemptstoaddresseachidentifiedcomponent",
8"Penalizemissing,ignored,orsubstitutedpromptcomponents",
9"DoNOTevaluatefactualcorrectness,depth,orwritingquality\-onlywhetheranattemptismadetorespondtotheprompt"
10\],
11model="gpt\-4\.1\-mini",
12evaluation\_params=\[LLMTestCaseParams\.INPUT,LLMTestCaseParams\.ACTUAL\_OUTPUT\]
13\),
14GEval\(
15name="Accuracy",
16criteria="Evaluatewhetherthefactualclaimsintheactualoutputarecorrect,verifiable,andconsistentwithestablishedknowledgeorinformationexplicitlyprovidedintheinput\.",
17evaluation\_steps=\[
18"Identifyallfactualclaimsmadeintheactualoutput",
19"Verifyeachclaimagainstreliablegeneralknowledgeorfactsstatedintheinput",
20"Penalizeclaimsthatareclearlyfalseorcontradictknownfactsortheinput",
21"Penalizeincorrectorincompleteanswerstoexplicitfactualquestionsintheinput",
22"DoNOTpenalizeappropriatelyqualifieduncertainty\(e\.g\.,’may’,’depends’\)whenfactsareambiguousorunspecified",
23"DoNOTevaluatewritingstyle,coherence,verbosity,orrelevance\-onlyfactualcorrectness"
24\],
25model="gpt\-4\.1\-mini",
26evaluation\_params=\[LLMTestCaseParams\.INPUT,LLMTestCaseParams\.ACTUAL\_OUTPUT\]
27\),
28GEval\(
29name="Coherence",
30criteria="Evaluatewhethertheactualoutputislogicallystructured,internallyconsistent,andeasytofollowasaunifiedresponse\.",
31evaluation\_steps=\[
32"Identifythemainclaim,explanation,ornarrativetheactualoutputispresenting",
33"Checkwhetherideasprogressinaclearandlogicalorder\(e\.g\.,cause\-effect,step\-by\-step,ornarrativeflow\)",
34"Detectinternalcontradictionsorstatementsthatundermineearlierclaimsandpenalizethemheavily",
35"Ensuretransitionsbetweenideasareclearanddonotcauseconfusionorlogicaljumps",
36"Penalizetangentsordigressionsonlyiftheydisruptlogicalfloworcomprehension",
37"DoNOTevaluatefactualcorrectnessrelativetotheinputorexternalknowledge\-onlyinternalclarityandconsistency"
38\],
39model="gpt\-4\.1\-mini",
40evaluation\_params=\[LLMTestCaseParams\.INPUT,LLMTestCaseParams\.ACTUAL\_OUTPUT\]
41\),
42GEval\(
43name="Conciseness",
44criteria="Evaluatewhethertheactualoutputcommunicatestherequiredinformationefficiently,usingnomorewordsthannecessarygiventheintentoftheinput\.",
45evaluation\_steps=\[
46"Identifythecoreinformationortaskrequiredbytheinputprompt",
47"Checkwhethertheactualoutputincludesonlyinformationnecessarytofulfillthattask",
48"Flagredundancy,repetition,fillerphrases,ortangentialdetailsthatdonotaddmeaning",
49"DoNOTpenalizelengthiftheinputexplicitlyrequestsdetailedexplanation,reasoning,orcreativity",
50"DoNOTpenalizecontentthatmateriallyimprovesclarity,correctness,orcompleteness",
51"Preferanswersthatmatchtheshortestclearversionanexpertwouldreasonablygive"
52\],
53model="gpt\-4\.1\-mini",
54evaluation\_params=\[LLMTestCaseParams\.INPUT,LLMTestCaseParams\.ACTUAL\_OUTPUT\]
55\)
## Appendix BPixel 9a Profiling Lockdown Script
1\#\!/system/bin/sh
2\#profiling\_lockdown\.sh
3\#Pixel9aprofilinglockdownmode\(with80%freqcap\)
4
5echo"\[\*\]EnteringPROFILINGLOCKDOWNMODE"
6
7echo"\[CPU\]LockingCPUfrequenciesto~80%ofhardwaremax"
8forcpuin/sys/devices/system/cpu/cpu\[0\-3\]\*;do
9cpuinfo\_max="$cpu/cpufreq/cpuinfo\_max\_freq"
10min\_file="$cpu/cpufreq/scaling\_min\_freq"
11max\_file="$cpu/cpufreq/scaling\_max\_freq"
12gov\_file="$cpu/cpufreq/scaling\_governor"
13
14if\[\-f"$cpuinfo\_max"\]&&\[\-f"$min\_file"\]&&\[\-f"$max\_file"\]&&\[\-f"$gov\_file"\];then
15hw\_max=$\(cat$cpuinfo\_max\)
16\#target=$\(\(hw\_max\*80/100\)\)
17target=1328000
18
19echouserspace\>"$gov\_file"2\>/dev/null
20echo$target\>"$min\_file"2\>/dev/null
21echo$target\>"$max\_file"2\>/dev/null
22
23echo"$\(basename$cpu\)lockedto$targetHz\(~80%ofhardwaremax$hw\_maxHz\)"
24fi
25done
26forcpuin/sys/devices/system/cpu/cpu\[4\-6\]\*;do
27cpuinfo\_max="$cpu/cpufreq/cpuinfo\_max\_freq"
28min\_file="$cpu/cpufreq/scaling\_min\_freq"
29max\_file="$cpu/cpufreq/scaling\_max\_freq"
30gov\_file="$cpu/cpufreq/scaling\_governor"
31
32if\[\-f"$cpuinfo\_max"\]&&\[\-f"$min\_file"\]&&\[\-f"$max\_file"\]&&\[\-f"$gov\_file"\];then
33hw\_max=$\(cat$cpuinfo\_max\)
34\#target=$\(\(hw\_max\*80/100\)\)
35target=1418000
36
37echouserspace\>"$gov\_file"2\>/dev/null
38echo$target\>"$min\_file"2\>/dev/null
39echo$target\>"$max\_file"2\>/dev/null
40
41echo"$\(basename$cpu\)lockedto$targetHz\(~80%ofhardwaremax$hw\_maxHz\)"
42fi
43done
44forcpuin/sys/devices/system/cpu/cpu\[7\-7\]\*;do
45cpuinfo\_max="$cpu/cpufreq/cpuinfo\_max\_freq"
46min\_file="$cpu/cpufreq/scaling\_min\_freq"
47max\_file="$cpu/cpufreq/scaling\_max\_freq"
48gov\_file="$cpu/cpufreq/scaling\_governor"
49
50if\[\-f"$cpuinfo\_max"\]&&\[\-f"$min\_file"\]&&\[\-f"$max\_file"\]&&\[\-f"$gov\_file"\];then
51hw\_max=$\(cat$cpuinfo\_max\)
52\#target=$\(\(hw\_max\*80/100\)\)
53target=2294000
54
55echouserspace\>"$gov\_file"2\>/dev/null
56echo$target\>"$min\_file"2\>/dev/null
57echo$target\>"$max\_file"2\>/dev/null
58
59echo"$\(basename$cpu\)lockedto$targetHz\(~80%ofhardwaremax$hw\_maxHz\)"
60fi
61done
62
63mali\_path="/sys/class/devfreq/20c00000\.callisto"
64target=560000000
65echo"\[GPU\]LockingGPUfrequencyto$targetHz"
66echouserspace\>"$mali\_path/governor"2\>/dev/null
67echotarget\>"$mali\_path/min\_freq"2\>/dev/null
68echotarget\>"$mali\_path/max\_freq"2\>/dev/null
69echo"GPUlockedto$targetHz"
70
71\#\-\-\-DisableDoze/Deepidle\-\-\-
72dumpsysdeviceidledisable
73echo"\[\+\]Doze/deepidledisabled"
74
75\#\-\-\-Thermalthrottling:disableallzones\-\-\-
76forzonein/sys/class/thermal/thermal\_zone\*;do
77mode="$zone/mode"
78if\[\-f"$mode"\];then
79echodisabled\>"$mode"2\>/dev/null
80fi
81done
82echo"\[\+\]Thermalthrottlingdisabled"
83
84\#\-\-\-Systemfeatures\-\-\-
85pmdisable\-user\-\-user0com\.google\.android\.gms\>/dev/null2\>&1
86echo"\[\+\]GooglePlayServicesfullydisabled"
87
88cmdnotificationset\_dndnone
89echo"\[\+\]Pushnotificationsdisabled"
90
91settingsputsystemscreen\_brightness\_mode0
92settingsputsystemscreen\_brightness0
93echo"\[\+\]Adaptivebrightnessoff,screensettominimum"
94
95settingsputsecurelocation\_mode0
96echo"\[\+\]Locationservicesdisabled"
97
98echo"\[\*\]Lockdowncomplete\.Readyforprofiling\."
## Appendix CSample LLM Prompts
1TextGeneration:
2
3Produce10multiplechoicequestionsaboutthehumancirculatorysystem
4Produce2strategiesforreducingstress\.
5Produce4essentialquestionsonthetopicoflegalregulationofAI\.
6Produce5possibleslogansforanonlineshoecompany
7Producea4stepplanfortacklingaproblem\.Homelessness
8
9Create10multiplechoicequestionsaboutthehumancirculatorysystem
10Create2strategiesforreducingstress\.
11Create4essentialquestionsonthetopicoflegalregulationofAI\.
12Create5possibleslogansforanonlineshoecompany
13Createa4stepplanfortacklingaproblem\.Homelessness
14
15
16
17SentimentAnalysis:
18
19ClassifythesentimentofthefollowingYelpreviewaspositiveornegative:Wow\!Yummy,different,delicious\.Ourfavoriteisthelambcurryandkorma\.With10differentkindsofnaan\!\!\!Don’tlettheoutsidedeteryou\(becausewealmostchangedourminds\)\.\.\.goinandtrysomethingnew\!You’llbegladyoudid\!
20ClassifythesentimentofthefollowingYelpreviewaspositiveornegative:Amazinglyamazingwingsandhomemadebleucheese\.Hadtheribeye:tender,perfectlyprepared,delicious\.Niceselectionofcraftbeers\.WouldDEFINITELYrecommendcheckingoutthishiddengem\.
21ClassifythesentimentofthefollowingYelpreviewaspositiveornegative:LocalsrecommendedMilktooth,andit’sanamazingjewelofIndianapolis\.I’mgladeIhadthechancetoexperiencethis\.
22ClassifythesentimentofthefollowingYelpreviewaspositiveornegative:Lovegoinghereforhappyhourordinner\!GreatpatiowithfanstobeattheStLheat\!Also\.\.\.veryaccomodatingatthislocation\.IliketheVealMilanesebutwithmixedgreensinsteadofpasta\!they’llmodifythemenutosuityourtaste\!
23ClassifythesentimentofthefollowingYelpreviewaspositiveornegative:Greatplaceforbreakfast\!Ihadthewaffle,whichwasfluffyandperfect,andhomefrieswhichwereniceandsmashedandcrunchy\.Friendlywaitstaff\.Willdefinitelybeback\!
24
25DecidewhetherthesentimentexpressedinthisYelpreviewispositiveornegative:Wow\!Yummy,different,delicious\.Ourfavoriteisthelambcurryandkorma\.With10differentkindsofnaan\!\!\!Don’tlettheoutsidedeteryou\(becausewealmostchangedourminds\)\.\.\.goinandtrysomethingnew\!You’llbegladyoudid\!
26DecidewhetherthesentimentexpressedinthisYelpreviewispositiveornegative:Amazinglyamazingwingsandhomemadebleucheese\.Hadtheribeye:tender,perfectlyprepared,delicious\.Niceselectionofcraftbeers\.WouldDEFINITELYrecommendcheckingoutthishiddengem\.
27DecidewhetherthesentimentexpressedinthisYelpreviewispositiveornegative:LocalsrecommendedMilktooth,andit’sanamazingjewelofIndianapolis\.I’mgladeIhadthechancetoexperiencethis\.
28DecidewhetherthesentimentexpressedinthisYelpreviewispositiveornegative:Lovegoinghereforhappyhourordinner\!GreatpatiowithfanstobeattheStLheat\!Also\.\.\.veryaccomodatingatthislocation\.IliketheVealMilanesebutwithmixedgreensinsteadofpasta\!they’llmodifythemenutosuityourtaste\!
29DecidewhetherthesentimentexpressedinthisYelpreviewispositiveornegative:Greatplaceforbreakfast\!Ihadthewaffle,whichwasfluffyandperfect,andhomefrieswhichwereniceandsmashedandcrunchy\.Friendlywaitstaff\.Willdefinitelybeback\!
30
31
32
33NOTE:Thefollowingpromptsproducedbiasedresultsintheoriginalexperiment
34
35Writea1sentencesummaryofdigitalmarketing\.
36Make10sentenceswiththeword’big’\.
37Write7wordsrelatedtotheword"party"\.
38Create4antonymsforthegivenwordWord:Strident
39Constructa3\-notemelody\.Similar Articles
PromptPrint: Behavioral Biometrics Through Natural Language Prompting in LLMs
Introduces PromptPrint, a systematic study showing that users' habitual vocabulary and syntax in LLM prompts form a learnable behavioral biometric, with lexical features outperforming semantic encoders and revealing a uniqueness–consistency paradox.
From Words to Widgets for Controllable LLM Generation
Malleable Prompting is a novel interactive technique that reifies natural language preferences into GUI widgets (sliders, toggles, dropdowns) for direct manipulation, with a decoding algorithm that modulates token probabilities based on widget values to enable precise control over LLM generation. A user study shows it outperforms natural language prompting in precision, controllability, and transparency.
Prompting Complexity: Shortest Prompts for Texts and Behaviors in LLMs
This paper formalizes the concept of prompting complexity, which measures the shortest plausible prompt required for a fixed language model to produce a target text or behavior, drawing an analogy to resource-bounded Kolmogorov complexity.
Why does it feel like big LLM providers are literally hiding prompt caching?
An article discussing how prompt caching can significantly reduce LLM API costs, pointing out that providers under-explain it and offering a simple rule to structure prompts for maximum cache hits.
TAPR: Enhancing LLM Performance with a Task-Aware Prompt Rewriter
TAPR is a lightweight model trained with reinforcement learning to rewrite user prompts into task-optimized prompts, improving downstream LLM performance on benchmarks like Natural Questions and GSM8K.