AI systems increasingly rely on multi-step agentic workflows that orchestrate heterogeneous computational agents, including Large and Small Language Models (LLMs and SLMs), each configurable at runtime with different inference methods and parameters. While this flexibility enables specialization and resource efficiency, it introduces complex trade-offs between accuracy, latency, and energy consumption, particularly under strict operational budgets. The sequential nature of these workflows further amplifies such challenges: errors propagate across steps, and resource decisions made early in the pipeline constrain downstream options. To address these challenges, this paper presents a formal optimization framework for configuring multi-step agentic pipelines under global time and energy constraints. Given a task decomposition and a heterogeneous pool of agent configurations, the framework selects exactly one agent-inference method-parameter triple per task to maximize end-to-end workflow quality. We formalize this as a Mixed-Integer Linear Programming problem and introduce two complementary objective formulations: a max-min accuracy objective that prioritizes robustness by improving the least accurate step, and a multiplicative accuracy objective that captures cumulative performance across the workflow. We further propose an iterative solution strategy that re-optimizes at each step, adapting to deviations between predicted and realized resource consumption. Experimental results demonstrate distinct accuracy-resource trade-offs between the two formulations and show that the approach scales effectively to workflows with up to a thousand steps.

Sedghani, H., Filippini, F., Seyedi, Z., Spahiu, B., Ciavotta, M., Ardagna, D. (2026). Optimizing Agentic AI Applications under Budget Constraints. In ICPE Companion '26: Companion of the 17th ACM/SPEC International Conference on Performance Engineering (pp.255-263). Association for Computing Machinery, Inc [10.1145/3777911.3800631].

Optimizing Agentic AI Applications under Budget Constraints

Filippini F.;Spahiu B.;Ciavotta M.;
2026

Abstract

AI systems increasingly rely on multi-step agentic workflows that orchestrate heterogeneous computational agents, including Large and Small Language Models (LLMs and SLMs), each configurable at runtime with different inference methods and parameters. While this flexibility enables specialization and resource efficiency, it introduces complex trade-offs between accuracy, latency, and energy consumption, particularly under strict operational budgets. The sequential nature of these workflows further amplifies such challenges: errors propagate across steps, and resource decisions made early in the pipeline constrain downstream options. To address these challenges, this paper presents a formal optimization framework for configuring multi-step agentic pipelines under global time and energy constraints. Given a task decomposition and a heterogeneous pool of agent configurations, the framework selects exactly one agent-inference method-parameter triple per task to maximize end-to-end workflow quality. We formalize this as a Mixed-Integer Linear Programming problem and introduce two complementary objective formulations: a max-min accuracy objective that prioritizes robustness by improving the least accurate step, and a multiplicative accuracy objective that captures cumulative performance across the workflow. We further propose an iterative solution strategy that re-optimizes at each step, adapting to deviations between predicted and realized resource consumption. Experimental results demonstrate distinct accuracy-resource trade-offs between the two formulations and show that the approach scales effectively to workflows with up to a thousand steps.
paper
agentic ai; energy-aware ai; large language models (llms); latency-constrained inference; resource-constrained optimization;
English
17th ACM/SPEC International Conference on Performance Engineering, ICPE 2026 - 4 May 2026 - 8 May 2026
2026
ICPE Companion '26: Companion of the 17th ACM/SPEC International Conference on Performance Engineering
9798400723261
2026
255
263
open
Sedghani, H., Filippini, F., Seyedi, Z., Spahiu, B., Ciavotta, M., Ardagna, D. (2026). Optimizing Agentic AI Applications under Budget Constraints. In ICPE Companion '26: Companion of the 17th ACM/SPEC International Conference on Performance Engineering (pp.255-263). Association for Computing Machinery, Inc [10.1145/3777911.3800631].
File in questo prodotto:
File Dimensione Formato  
Sedghani et al-2026-ICPE Companion-VoR.pdf

accesso aperto

Descrizione: Optimizing Agentic AI Applications under Budget Constraints
Tipologia di allegato: Publisher’s Version (Version of Record, VoR)
Licenza: Creative Commons
Dimensione 10 MB
Formato Adobe PDF
10 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10281/626322
Citazioni
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
Social impact