A utility function is a mathematical model that assigns a numerical value, or utility, to each possible outcome or state of the world, formally representing an agent's preferences to guide its goal of maximizing expected utility. In multi-agent systems and negotiation protocols, an agent uses this internal function to evaluate proposals, make trade-offs, and select actions that yield the highest subjective payoff, transforming qualitative desires into a computable optimization objective. Its formulation is central to game theory and mechanism design.
Glossary
Utility Function

What is a Utility Function?
A utility function is the mathematical core of rational agent decision-making, quantifying preferences to enable automated negotiation and optimization.
The function's structure defines an agent's risk tolerance and trade-off preferences between different negotiated issues. During multi-issue negotiation, agents with known utility functions can seek Pareto-optimal agreements. In auction-based protocols like a Vickrey auction, a bidder's utility function determines its dominant strategy. For orchestration engines, modeling agent utilities enables predictive coordination and conflict resolution by algorithmically balancing competing objectives across the system.
Key Characteristics of a Utility Function
A utility function is the mathematical core of an agent's decision-making logic. These characteristics define how preferences are modeled and optimized during negotiation.
Mathematical Representation of Preferences
A utility function is a mathematical mapping from a set of possible outcomes or states of the world to real numbers. It formally encodes an agent's ordinal preferences (ranking of outcomes) into cardinal utility values (strength of preference). This allows for quantitative comparison and optimization, which is essential for algorithmic negotiation. For example, an agent might assign a utility of 10 to winning a contract at a low price and a utility of 2 to losing it.
Maximization Objective
The fundamental axiom of rational choice is that an agent seeks to maximize its expected utility. During negotiation, the agent evaluates potential agreements (e.g., price, delivery time, service level) by calculating their utility and selects the action that yields the highest value. This objective drives all strategic behavior, from bidding in an auction to making concessions in bargaining.
- Expected Utility Theory: Agents choose between uncertain outcomes by calculating the probability-weighted sum of utilities.
- Revealed Preference: An agent's chosen action reveals its utility function, a principle used in inverse reinforcement learning.
Risk Attitude Encoding
The curvature of a utility function encodes an agent's attitude toward risk. This is critical in negotiations involving uncertainty or lotteries.
- Risk-Averse: Concave utility function (e.g.,
U(x) = log(x)). The agent prefers a sure outcome over a gamble with the same expected value. - Risk-Seeking: Convex utility function. The agent prefers the gamble.
- Risk-Neutral: Linear utility function (e.g.,
U(x) = x). The agent cares only about expected value.
In financial negotiations, a risk-averse buyer may accept a higher sure price to avoid the uncertainty of an auction.
Multi-Attribute and Multi-Issue Utility
Real-world negotiations involve multiple issues (price, quality, deadline). A multi-attribute utility function aggregates preferences across these dimensions into a single score. Common forms include:
- Additive:
U(bundle) = w1 * U1(price) + w2 * U2(quality) + ...where weights (w1, w2) reflect issue importance. - Multiplicative: Used when attributes have interactions.
This allows for trade-offs. An agent may concede on price (small utility loss) for a major improvement in delivery time (large utility gain), seeking Pareto-optimal outcomes.
Private Information and Incentives
An agent's utility function is typically private information (its type). This creates a strategic environment studied in mechanism design. The goal is to design protocols (like specific auctions) where truthfully revealing one's utility is the optimal strategy (strategy-proofness or incentive compatibility).
- Example: In a Vickrey auction, bidding one's true valuation is a dominant strategy because the winner pays the second-highest bid.
- The revelation principle states that any outcome achievable by a mechanism can be replicated by a direct mechanism where agents truthfully report their types.
Dynamic and Context-Dependent Nature
Utility is not always static. It can evolve based on:
- Time Discounting: Future gains are worth less than immediate ones, modeled by a discount factor (δ). This is central to the Rubinstein bargaining model.
- Changing Context: An agent's utility for a resource may depend on what other resources it has already acquired (complementarity/substitutability).
- Learning and Adaptation: Agents may update their understanding of their own preferences or the value of goods based on new information.
This dynamism necessitates protocols that handle iterated bargaining and state-dependent offers.
How a Utility Function Works in Multi-Agent Negotiation
A utility function is the mathematical core of an autonomous agent's decision-making logic during negotiation, quantifying its preferences over all possible outcomes.
A utility function is a mathematical model that assigns a numerical value, or utility, to every possible outcome or bundle of goods in a negotiation, formally representing an agent's preferences. The agent's sole objective is to select actions that maximize this expected utility value. In multi-agent negotiation, each participant operates with its own private utility function, creating a complex landscape of competing and potentially alignable preferences that the protocol must navigate.
The function transforms multi-dimensional negotiation issues—such as price, delivery time, and quality—into a single, comparable metric, enabling rational trade-off analysis. During a protocol like the Contract Net Protocol or auction-based negotiation, agents use their utility functions to evaluate incoming offers, formulate counteroffers, and determine their reservation price (walk-away point). The collective interaction of agents maximizing their individual utilities drives the system toward outcomes on the Pareto optimal frontier, where no agent can gain without another losing.
Frequently Asked Questions
A utility function is a mathematical representation of an agent's preferences, assigning a numerical value to each possible outcome or bundle of goods, which the agent seeks to maximize during negotiation or decision-making.
A utility function is a mathematical model that quantifies an autonomous agent's preferences by assigning a scalar value, or utility, to every possible outcome, state, or bundle of goods within a decision-making scenario. It serves as the internal objective that the agent's algorithms are designed to maximize through its actions, such as making offers in a negotiation. Formally, if O is the set of all possible outcomes, a utility function U is a mapping U: O → ℝ, where a higher real number indicates a more preferred outcome. In multi-agent negotiation protocols, each agent possesses its own private utility function, and the interaction is fundamentally about each agent seeking an agreement that yields the highest possible utility from its own perspective, often in the face of conflicting preferences with other agents.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
A utility function is a core component within a broader ecosystem of formal models and protocols for agent decision-making and negotiation. These related concepts define the rules, strategies, and mathematical frameworks that govern how agents with utility functions interact.
Mechanism Design
The inverse engineering of game theory, where a protocol (or 'game') is designed so that the strategic, self-interested actions of rational agents lead to a socially desirable outcome. The designer specifies the rules, and agents—equipped with their private utility functions—choose strategies. Key goals include:
- Efficiency: Maximizing total social welfare (sum of utilities).
- Incentive Compatibility: Ensuring truth-telling is a dominant strategy.
- Revenue Maximization (for auctions). The Revelation Principle is a central theorem, stating any equilibrium outcome of any mechanism can be replicated by a direct mechanism where agents truthfully report their private types.
Pareto Optimality
A state of resource allocation or agreement where it is impossible to make any one agent better off (increase their utility) without making at least one other agent worse off. It represents an efficiency frontier, not a single point. In negotiation:
- An outcome is Pareto superior to another if it makes at least one agent better off and no agent worse off.
- Rational agents should not agree to a deal that is not Pareto optimal, as a Pareto improvement would exist. The Nash Bargaining Solution selects a unique, 'fair' point from the set of Pareto optimal outcomes based on axiomatic principles.
Reservation Price
The private walk-away point for an agent in a negotiation, representing the minimum price a seller will accept or the maximum price a buyer will pay. It is a critical parameter derived from an agent's utility function and outside options (their Best Alternative To a Negotiated Agreement - BATNA).
- In a purchase negotiation, a buyer's reservation price is the point where
Utility(deal) = Utility(no deal). - In auction theory, it is often equivalent to an agent's true private valuation. The negotiation zone or Zone of Possible Agreement (ZOPA) exists when the buyer's reservation price is higher than the seller's.
Strategy-Proof Mechanism
A protocol (e.g., an auction or matching algorithm) designed so that an agent's dominant strategy is to report its private information—such as its true valuation or preferences encoded in its utility function—honestly, regardless of what other agents do. This property is also called dominant-strategy incentive compatibility.
- The Vickrey Auction (second-price sealed-bid) is a classic example: bidders are incentivized to bid their true value.
- Strategy-proofness is a strong and desirable property that simplifies agent reasoning, as they need not model others' behavior. It is a key objective in mechanism design.
Distributed Constraint Optimization (DCOP)
A framework for modeling multi-agent coordination problems where a global objective (utility) must be optimized subject to constraints, but decision variables and constraints are distributed among autonomous agents. Each agent controls its own variables and has a local utility function.
- The goal is for agents to collaboratively assign values to their variables to maximize the sum of all local utilities (the global utility).
- Agents communicate to find this optimal solution without centralizing all information.
- It formally models problems like distributed scheduling, sensor network coordination, and multi-agent task allocation.
Nash Bargaining Solution
A seminal solution concept in cooperative game theory for two-agent bargaining. Given a bargaining problem—defined by a set of feasible utility outcomes and a disagreement point (utilities if no deal is made)—the Nash solution selects a unique agreement based on four axioms: Pareto optimality, symmetry, scale invariance, and independence of irrelevant alternatives.
- Mathematically, it maximizes the product of the agents' utility gains:
(U1 - d1) * (U2 - d2), wheredis the disagreement point. - It provides a normative prediction of a 'fair' outcome when agents have equal bargaining power and can make binding agreements, serving as a benchmark for evaluating negotiation protocols.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us