Opti-Q Optimizes Multi-LLM Question Answering Under Constraints

Aamir Hamid, Bharg Barot, Satvik Racharla, Tim Finin, Primal Pappachan, Roberto Yus· July 28, 2026 View original

Summary

OPTI-Q is a database-inspired optimization framework that plans multi-LLM question answering by creating execution DAGs to balance answer quality, cost, latency, and energy. It uses a statistics catalog to estimate performance and performs Pareto-frontier search to select optimal plans under user-specified resource constraints.

Deploying Large Language Models (LLMs) for question answering, especially when using multiple models, faces challenges due to their varying costs, latencies, and energy consumption, alongside their inherent non-determinism. This research introduces OPTI-Q, a novel optimization framework inspired by database query optimizers, which adopts a "plan-before-execute" approach for orchestrating multiple LLMs. OPTI-Q models LLM invocations as operators within an execution directed acyclic graph (DAG). For each question, it searches for plans that maximize answer quality while adhering to user-defined constraints on financial cost, latency, and energy. The framework leverages PERFDB, a catalog of statistics from benchmarks and execution traces, to estimate the performance and resource costs of individual and combined operations. By performing a Pareto-frontier search, OPTI-Q identifies and selects the most efficient plan based on user preferences. Experiments on MMLU-Pro and SimpleQA show OPTI-Q significantly improves average answer quality by 41-58% over baselines at comparable costs.

Why it matters

Optimizing the trade-offs between LLM answer quality, cost, and latency is crucial for economically viable and performant AI applications, especially when integrating multiple models.

How to implement this in your domain

  1. 1Analyze current multi-LLM question answering workflows for inefficiencies in cost, latency, and quality.
  2. 2Explore implementing a "plan-before-execute" paradigm for LLM orchestration, similar to database query optimizers.
  3. 3Develop a statistics catalog (like PERFDB) to track and estimate the performance and resource costs of different LLM invocations.
  4. 4Utilize constraint-based optimization techniques to find optimal LLM execution plans that balance quality with resource budgets.
  5. 5Experiment with parallel and sequential LLM operator combinations to improve answer quality and efficiency.

Who benefits

AI DevelopmentCloud ComputingEnterprise SoftwareFinancial ServicesCustomer Service

Key takeaways

  • Orchestrating multiple LLMs for QA is complex due to varying costs, latencies, and quality.
  • OPTI-Q is a database-inspired framework that optimizes multi-LLM plans based on user-defined constraints.
  • It uses a statistics catalog to estimate performance and a Pareto-frontier search for optimal plan selection.
  • The framework significantly improves answer quality while managing resource trade-offs effectively.

Original post by Aamir Hamid, Bharg Barot, Satvik Racharla, Tim Finin, Primal Pappachan, Roberto Yus

"arXiv:2607.22621v1 Announce Type: new Abstract: While large language models (LLMs) enable strong question answering (QA), budgeted deployment is complicated by nondeterminism and heterogeneous resource profiles (cost, latency, and energy). We present OPTI-Q, a database-inspired,…"

View on X

Originally posted by Aamir Hamid, Bharg Barot, Satvik Racharla, Tim Finin, Primal Pappachan, Roberto Yus on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses