Measuring AI Performance and Selecting Models Under Quality and Cost Constraints
A task-conditioned framework for selecting the least-cost AI configuration only after quality, evidence, budget, and resource requirements are satisfied.
Pacharapol Pimpa · Oct 11, 2026
Overview
This independent research manuscript proposes a unified, task-conditioned framework for AI configuration selection. It connects task-specific quality measurement, complete operational cost estimation, uncertainty-aware admissibility, and least-cost optimization in one decision process. The paper also preserves a completed Azure study on Dry Bean classification and sequential Bike Sharing forecasting. Those experiments provide evidence about reproducibility and selection trade-offs, but they do not validate the proposed optimizer or establish financial savings.
Challenge
AI comparisons often rank candidates by one benchmark score or a partial inference price. A deployment decision also needs an explicit acceptable-quality floor, evidence about degradation from a reference, complete policy costs, and hard operational limits. Missing or incompatible evidence must remain visible instead of being filled with optimistic assumptions.
Approach
Proposed framework — not yet empirically validated: represent every model, inference mode, prompt, retry, verification, routing, and execution rule as one immutable configuration. Admit a configuration only when its evidence supports an absolute quality floor, a reference-relative non-inferiority margin, a budget bound, and every declared resource limit. Among the admitted configurations, select the one with the lowest projected total cost; if none qualify, return no supported selection.
Process
Completed experiments: the supporting Azure study evaluated a different, hard-gated weighted selector across Dry Bean classification and one-hour-ahead Bike Sharing forecasting. It used grouped or chronological held-out partitions, bounded model families, isolated resource profiling, 20,000-draw primary bootstrap analyses, a separate 40,000-draw endpoint check, and a fresh cloud refit with consistency auditing. These experiments test weighted pipeline selection and reproducibility, not the proposed confidence-bound optimizer.
Outcome
Completed findings: the weighted rule selected linear models for both Bean profiles and histogram boosting for both Bike profiles. In the Bike quality profile, boosting produced 7.5731 more simulated weighted-count loss units per hour than linear, with an adjusted conditional interval of [3.0698, 12.1578]. Other primary comparisons were identical, inconclusive, or missed a declared precision target. Framework status: the paper does not claim that the proposed optimizer preserves quality while reducing cost. That question remains open and is assigned to a prospective Python code-generation study with independent development, selection, and held-out sets, supported model-effort configurations, paired quality assessment, and complete cost accounting.