Skip to main navigation Skip to search Skip to main content

Question-Type-Aware Methodology for Prompt Selection to Optimise Energy Usage

  • University of Limerick

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

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 languageEnglish
Title of host publicationArtificial Intelligence Applications and Innovations - 22nd IFIP WG 12.5 International Conference, AIAI 2026, Proceedings
EditorsIlias Maglogiannis, Lazaros Iliadis, Antonios Papaleonidas, Michalis Zervakis
PublisherSpringer Science and Business Media Deutschland GmbH
Pages92-107
Number of pages16
ISBN (Print)9783032308085
DOIs
Publication statusPublished - 2027
Event22nd IFIP WG 12.5 International Conference on Artificial Intelligence Applications and Innovations, AIAI 2026 - Chania, Greece
Duration: 16 Jul 202619 Jul 2026

Publication series

NameIFIP Advances in Information and Communication Technology
Volume795 IFIPAICT
ISSN (Print)1868-4238
ISSN (Electronic)1868-422X

Conference

Conference22nd IFIP WG 12.5 International Conference on Artificial Intelligence Applications and Innovations, AIAI 2026
Country/TerritoryGreece
CityChania
Period16/07/2619/07/26

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 7 - Affordable and Clean Energy
    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