Abstract
The computational demands of Large Language Models (LLMs) during inference are primarily determined by response length. A substantial portion of the computational cost of LLM inference arises from unnecessary autoregressive decoding, where models generate verbose explanations from simple prompts even when simple, structured answers are sufficient. We introduce a question-type-aware inference framework for prompt routing to produce compact, token-optimised responses. Our approach employs a lightweight BERT classifier to assign incoming queries to predefined question types (e.g., yes/no/maybe, multiple-choice, or descriptive). Each query is then routed to a specialised prompt template designed for concise response generation. We tested our framework on factual tasks (yes/no/maybe and multiple-choice) to ensure rigorous accuracy verification. The methodology is validated across three medical benchmark using four LLMs with 8–70 billion parameters. Results demonstrate a substantial decrease in both average token counts and floating-point operations (FLOPs), achieving peak savings of 99.4%, while maintaining baseline accuracy. This approach offers a scalable solution to lower the operational costs of deploying LLMs in specialized, knowledge-intensive domains.
| Original language | English |
|---|---|
| Title of host publication | Artificial Intelligence Applications and Innovations - 22nd IFIP WG 12.5 International Conference, AIAI 2026, Proceedings |
| Editors | Ilias Maglogiannis, Lazaros Iliadis, Antonios Papaleonidas, Michalis Zervakis |
| Publisher | Springer Science and Business Media Deutschland GmbH |
| Pages | 92-107 |
| Number of pages | 16 |
| ISBN (Print) | 9783032308085 |
| DOIs | |
| Publication status | Published - 2027 |
| Event | 22nd IFIP WG 12.5 International Conference on Artificial Intelligence Applications and Innovations, AIAI 2026 - Chania, Greece Duration: 16 Jul 2026 → 19 Jul 2026 |
Publication series
| Name | IFIP Advances in Information and Communication Technology |
|---|---|
| Volume | 795 IFIPAICT |
| ISSN (Print) | 1868-4238 |
| ISSN (Electronic) | 1868-422X |
Conference
| Conference | 22nd IFIP WG 12.5 International Conference on Artificial Intelligence Applications and Innovations, AIAI 2026 |
|---|---|
| Country/Territory | Greece |
| City | Chania |
| Period | 16/07/26 → 19/07/26 |
UN SDGs
This output contributes to the following UN Sustainable Development Goals (SDGs)
-
SDG 7 Affordable and Clean Energy
Keywords
- Artificial Intelligence
- Energy Efficiency
- Large Language Models
- Natural Language Processing
- Small Language Models
- Token Optimisation
Fingerprint
Dive into the research topics of 'Question-Type-Aware Methodology for Prompt Selection to Optimise Energy Usage'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver