cs.GTOct 16, 2026

Anytime Contracts for AI Services

Authors: Boris Velasevic, Eden Saig, Eric Mazumdar

Organizations: California Institute of Technology

Abstract

AI services are prone to moral hazard, as model providers can silently route requests to cheaper, lower-quality models, and the inherent stochasticity of model outputs makes this degradation hard to detect. Contract theory addresses moral hazard by designing payment rules that reward high-quality outputs and prevent strategic overcharging. However, existing frameworks assume interactions of fixed duration, whereas AI services are typically consumed through subscriptions and pay-as-you-go APIs that users can terminate at any time based on observed performance. We show that this flexibility can break standard contracts, opening them up to abuse by either the providers or users. To address this, we extend contract theory to account for unknown exit rules. We formalize the problem as a Principal-Agent game, and show that budget-optimal contracts in this setting are proportional to anytime-valid hypothesis tests based on likelihood-ratio e-values. We give an efficient algorithm for computing anytime contracts and show how betting e-processes can be used to approximate them when the models are unknown. Finally, we evaluate our findings on synthetic data and data from deployed LLMs.

Figures & tables

Explore similar work

CardsList
  1. Adaptive Contracts for Cost-Effective AI Delegation

    Mar 17, 2026Eden Saig, Tamar Garbuz, Ariel D. Procaccia +2Generative AI Evaluation

  2. Test-Time Compute Games

    Jan 29, 2026Ander Artola Velasco, Dimitrios Rontogiannis, Stratis Tsirtsis +1LLM ServingCost-Aware Inference