Learning Optimal Contracts: How to Exploit Small Action Spaces

Francesco Bacchiocchi, Matteo Castiglioni, Alberto Marchesi, Nicola Gatti

Introduction

In a classic principal-agent problem, a "principal" (e.g., an employer) wants an "agent" (e.g., a freelancer) to take a specific action that leads to favorable outcomes. However, this action is "hidden"—the principal only sees the final outcome, which is stochastically related to the action taken. To incentivize the agent, the principal offers a contract: a payment scheme based strictly on the observed outcome.

Traditionally, researchers assumed the principal had full knowledge of the agent's costs and the probability of every outcome for every action. In reality, the principal often has to learn these dynamics through repeated interaction. Previous work demonstrated that learning these contracts is incredibly difficult; performance bounds (regret) grew exponentially worse as the number of possible outcomes ($m$) increased.

This paper tackles the specific case where the agent has a small, constant number of actions ($n$). It asks a pivotal question: Can we exploit a small action space to make learning efficient, even when the outcome space is huge? By introducing the Discover-and-Cover algorithm, the authors achieve a polynomial sample complexity and a significantly improved regret bound, successfully resolving a major open problem in algorithmic game theory.

The Discover-and-Cover Framework

The authors propose the Discover-and-Cover algorithm to partition the space of possible contracts into "best-response regions"—geometric areas where a specific agent action is the most profitable for the agent to take.

Key components of the framework include:

  • Meta-Actions: Because the principal cannot observe the agent's actual action, the algorithm groups actions that produce "similar" outcome distributions into observable "meta-actions."
  • Action-Oracle: This procedure estimates the outcome distribution for a given contract over several rounds. It operates in two phases: estimating the distribution and comparing it to known meta-actions to determine if a new behavior has been "discovered."
Algorithm 2: Action-Oracle
  • Try-Cover: This is the core geometric engine of the algorithm. It iteratively builds polytopes (complex multi-dimensional shapes) that approximate the best-response regions. It uses a binary search-like procedure (Find-HS) to find the hyperplanes (boundaries) that separate these regions.
  • Trial-and-Error Restart: If the Action-Oracle discovers a new meta-action during the covering process, the algorithm restarts the covering procedure to account for this newly revealed information.
  • Find-Contract: Once the space is fully covered, the algorithm solves a linear program over the discovered regions to identify an approximately optimal contract.

Theoretical Insights and Results

As a theoretical paper focused on algorithmic complexity, the authors provide rigorous mathematical proofs and construct specific "hard" problem instances rather than relying on empirical datasets.

Key Insights

  • Exploiting Geometry: The paper treats contract learning as a geometric problem. By identifying the boundaries of best-response regions, the principal can "map" the agent's behavior without ever knowing their internal costs.
  • The "Meta-Action" Workaround: The biggest hurdle in hidden-action models is the unobservability of the agent's choices. By focusing on the distribution of outcomes rather than the action itself, the authors bypass the need for direct observation.
  • Polynomial vs. Exponential Scaling: The breakthrough is proving that while the problem is hard in general, the complexity scales polynomially with the number of outcomes ($m$) as long as the number of actions ($n$) remains small. This makes the algorithm practical for digital economies (like crowdsourcing or smart contracts) where outcomes are numerous but agent choices are relatively limited.

Key Results

  • Sample Complexity: The algorithm learns an approximately optimal contract in a number of rounds that is polynomial in the size of the outcome space ($m$), provided the number of actions ($n$) is constant.
  • Regret Bounds: In an online setting where the principal wants to maximize total utility over $T$ rounds, the algorithm achieves a regret of $\tilde{O}(T^{4/5})$.
  • State-of-the-Art Comparison: This is a massive improvement over the previous state-of-the-art, which had a regret bound of $O(T^{1-1/(2m+1)})$. For large $m$, the old bound was nearly linear (meaning the principal learned almost nothing), while $T^{4/5}$ remains strictly sublinear regardless of $m$.

Limitations and Future Directions

While a significant step forward, the framework has limitations that present opportunities for future work:

  • Dependence on $n$: Although the algorithm is polynomial in $m$, the exponent still depends on $n$. If the agent has a very large number of actions, the algorithm's performance will degrade.
  • Bounded Payments: The results assume a bound ($B$) on the maximum payment in a contract. The authors prove that without some form of bound or relaxation, learning is impossible in a finite number of rounds.
  • Tie-Breaking: The model assumes the agent breaks ties in favor of the principal. While standard in contract theory, exploring more adversarial or random tie-breaking rules could be a valuable extension.
  • Risk Neutrality: The current model assumes a risk-neutral agent. Extending these efficient learning bounds to risk-averse agents remains an open challenge.

Summary updated

BibTeX
@inproceedings{bacchiocchi2024learning,
  author = {Francesco Bacchiocchi and Matteo Castiglioni and Alberto Marchesi and Nicola Gatti},
  title = {{Learning Optimal Contracts: How to Exploit Small Action Spaces}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=WKuimaBj4I},
}
Figure