What are utility-based agents?

Hostinger Tutorials by 13 min read 504x views
What are utility-based agents?

Share Post

Aug 26, 2026

/

By Alma F.

/

8 min Read

What are utility-based agents?

Utility-based agents are AI agents that usage a scoring look called a utility function to comparison imaginable outcomes and take the action expected to nutrient the champion result.

They’re useful erstwhile respective actions tin scope the aforesaid extremity but lead to different trade-offs, aliases erstwhile the result of an action isn’t certain. The supplier observes the existent situation, predicts what could hap next, scores those outcomes, and acts connected the highest-scoring valid option.

Knowing really that process useful makes it easier to spot erstwhile a utility-based supplier is useful, what kinds of decisions it handles well, and wherever the other complexity becomes a drawback.

What are utility-based agents?

Utility-based agents are a type of AI agent built astir a scoring strategy that ranks outcomes and selects the strongest option.

Here, inferior simply intends really desirable an result is. A inferior usability tin people recreation time, power use, safety, customer satisfaction, aliases respective factors astatine once, past harvester them into 1 number the supplier tin compare.

For example, a route-planning supplier has 3 ways to scope the aforesaid destination. One way is fastest, 1 has cheaper tolls, and 1 has the astir predictable recreation time.

 route-planning agent

All 3 work, but the inferior usability allows the supplier to take the operation of trade-offs that champion fits its priorities.

Utility scoring doesn’t switch the goal. It gives the supplier a measurement to rank different outcomes aliases paths that tin execute it.

When the result isn’t certain, the supplier besides considers probability. Say the fastest way has a 40% chance of dense traffic. Expected inferior combines really desirable an result is pinch really apt it is to happen, truthful the supplier whitethorn take a somewhat slower way that’s overmuch much reliable.

That intends utility-based agents don’t simply take the action pinch the champion imaginable outcome – they besides see really apt that result is.

Key components of a utility-based agent

You tin break a utility-based agent’s determination process into 5 main parts: a inferior function, sensors, an soul model, an action action mechanism, and actuators.

 a inferior function, sensors, an soul model, an action action mechanism, and actuators

Utility function

The inferior usability assigns a people to each imaginable result truthful the supplier tin comparison its options.

A way planner, for example, mightiness people recreation time, toll cost, substance use, and reliability. Give reliability much weight, and predictable routes go much attractive. Give velocity much weight, and faster routes commencement winning instead.

What you time off retired matters too. If substance costs isn’t portion of the function, the supplier won’t see it. If velocity carries excessively overmuch weight, it whitethorn support choosing the fastest way moreover erstwhile a somewhat slower 1 is overmuch cheaper and much reliable.

Sensors

Sensors cod the accusation the supplier needs astir its existent environment.

A self-driving car gets that accusation from hardware specified arsenic cameras and lidar, a laser-based strategy that measures distances to adjacent objects. A package supplier gets its inputs from sources specified arsenic APIs, databases, clicks, watch time, aliases ratings.

Bad input leads to bad decisions. A way planner utilizing yesterday’s postulation information will people its options based connected conditions that nary longer exist, moreover if its inferior usability is different good designed.

Internal model

The soul exemplary tracks what the supplier knows astir its situation and predicts what could hap aft each action.

New sensor information updates that picture. The supplier tin past comparison possibilities specified as: if I return action A, this consequence is likely; if I return action B, location are 2 imaginable outcomes pinch different probabilities.

A way planner’s exemplary mightiness see unrecorded traffic, roadworthy closures, and existent travel-time estimates. That lets it judge what each way looks for illustration now alternatively than relying connected older conditions.

The exemplary doesn’t amended connected its own. Unless the strategy includes a abstracted learning mechanism, it tin update based connected caller observations but won’t automatically amended the assumptions aliases rules underlying its predictions.

Action action mechanism

The action action system compares the disposable actions and chooses the champion valid option.

It takes the outcomes predicted by the soul model, scores them pinch the inferior function, and accounts for uncertainty. If the strategy besides has difficult constraints, it removes immoderate action that breaks those rules earlier comparing the remaining options.

Suppose a transportation supplier finds a way pinch the highest inferior score, but that way passes done a restricted area. If avoiding that area is simply a difficult constraint, the supplier removes the way from information and chooses the next-best valid option.

The much options the supplier has to evaluate, the much activity this takes. Comparing 5 routes is overmuch easier than comparing thousands of imaginable actions, particularly erstwhile each action tin lead to respective different outcomes.

Actuators

Actuators transportation retired immoderate action the supplier chooses.

In a self-driving car, they power steering aliases braking. A package supplier mightiness nonstop an API request, update a database, aliases show a recommendation. A smart thermostat changes the somesthesia setting.

The consequence past feeds into the adjacent decision. Sensors cod caller data, the supplier checks what changed, and the rhythm starts again.

Actions don’t ever activity arsenic expected, truthful higher-risk systems besides request safeguards. Permission checks tin artifact unauthorized actions, nonaccomplishment discovery tin drawback actions that didn’t complete properly, and quality support tin beryllium required earlier an irreversible action proceeds.

How utility-based agents make decisions

Utility-based agents make decisions by repeating 4 steps: comprehend the situation, make options, people the outcomes, and enactment connected the champion one.

  1. Perceive. Sensors cod caller information and update the soul model.
  2. Generate options. The supplier identifies the actions it tin return and predicts what each 1 could produce.
  3. Score the outcomes. The inferior usability rates each predicted consequence and accounts for probability erstwhile the result isn’t certain.
  4. Pick and act. The supplier chooses the valid action pinch the highest expected inferior and executes it.

New sensor information restarts the cycle.

For example, a smart location power supplier checks occupancy, room temperature, energy prices, and the upwind forecast. It past compares options specified arsenic lowering the thermostat by 2 degrees, switching to a timed schedule, aliases leaving the existent mounting alone.

Each action gets scored connected comfort, cost, and power use. If energy prices emergence aliases everyone leaves the house, the adjacent scoring rhythm whitethorn nutrient a different choice.

How utility-based agents make decisions

Real-world examples of utility-based agents

Utility-based reasoning tin beryllium utilized successful way planning, smart location power management, proposal systems, and autonomous vehicles.

  • Route planning. A utility-based way planner scores routes based connected recreation time, tolls, substance consumption, and reliability alternatively than accepting immoderate way that reaches the destination. Changing 1 preference, specified arsenic avoiding tolls, tin alteration which way wins.
  • Smart location power management. A utility-based power head balances comfort, energy cost, occupancy, and power usage erstwhile adjusting heating, cooling, aliases appliances. A alteration successful prices aliases occupancy tin trigger a different decision.
  • Recommendation systems. A utility-based proposal strategy ranks products, videos, aliases articles by factors specified arsenic predicted satisfaction, relevance, and timing. Instead of showing thing that passes a minimum threshold, it tin rank the strongest matches first.
  • Autonomous vehicles. Utility-based reasoning tin thief an autonomous conveyance comparison maneuvers utilizing factors specified arsenic collision risk, ineligible rules, recreation progress, and rider comfort. When different driver’s behaviour is uncertain, the scoring process helps measurement advancement against safety.

These AI supplier examples show the aforesaid determination pattern: a strategy uses utility-based reasoning by predicting the imaginable outcomes of its actions, scoring really desirable those outcomes are, and utilizing those scores to take what to do.

Utility-based agents vs. goal-based agents

A goal-based agent focuses connected whether an action will execute the desired goal: “Will this action get maine there?” A utility-based supplier goes 1 measurement further by comparing the actions that tin execute that extremity and choosing the 1 pinch the champion wide outcome: “Of the actions that get maine there, which is best?”

Utility-based agents vs. goal-based agents

Imagine a navigation supplier that needs to scope an airport. Several routes whitethorn scope the destination, but they disagree successful recreation time, cost, and reliability. A utility-based supplier uses those differences to people the routes and take the 1 that champion matches its priorities.

Dimension

Goal-based agent

Utility-based agent

Decision basis

Checks whether an action helps execute the goal

Scores really desirable each predicted result is

Several ways to scope the goal

Can comparison different paths done planning, but the extremity itself doesn’t rank successful outcomes

Uses inferior scores to rank successful outcomes

Competing priorities

Needs abstracted rules aliases readying logic to equilibrium factors specified arsenic cost, speed, and safety

Combines those factors successful the inferior usability and compares them successful 1 score

Uncertain outcomes

Can scheme toward the goal, but doesn’t inherently comparison options by some likelihood and desirability

Uses expected inferior to measurement really bully an result is against really apt it is

Design complexity

Simpler erstwhile occurrence is chiefly astir reaching a clear extremity state

More analyzable because the supplier has to predict, score, and comparison imaginable outcomes

Use a goal-based agent erstwhile reaching the extremity is the superior requirement, and the differences betwixt successful outcomes don’t matter much.

Use a utility-based supplier when respective outcomes tin execute the goal, but factors specified arsenic cost, risk, speed, aliases reliability find which 1 is preferable.

Benefits of utility-based agents

The main use of utility-based agents is that they tin comparison respective acceptable outcomes alternatively of treating each successful action arsenic as good.

  • They equilibrium respective priorities astatine once. The inferior usability combines factors specified arsenic speed, cost, safety, and reliability into 1 score, truthful the supplier doesn’t person to optimize 1 privilege successful isolation. A transportation agent, for example, tin take a somewhat slower way if it saves substance and reduces risk.
  • They rank successful outcomes. Instead of stopping erstwhile an action meets the goal, the supplier tin comparison really good each action performs against its priorities. A proposal strategy mightiness find dozens of applicable items, past rank them by timing, preference, and predicted satisfaction.
  • They grip uncertainty. Expected inferior allows the supplier to see some really desirable an result is and really apt it is to occur. A way that’s fantabulous erstwhile postulation is clear but unreliable astir days whitethorn people little than a somewhat slower way pinch a overmuch much predictable recreation time.

Limitations of utility-based agents

The main limitations of utility-based agents are the further computation required to comparison outcomes, the deficiency of automatic learning, and the trouble of designing a inferior usability that reflects the correct priorities.

  • They require much computation. The supplier doesn’t conscionable cheque whether an action works. It predicts what could hap aft each option, estimates really apt those outcomes are, scores them, and compares the results. The much actions and imaginable outcomes it has to evaluate, the much processing the determination requires.
  • They don’t study from results by default. A utility-based supplier tin usage caller sensor information to make its adjacent decision, but that doesn’t mean it learns from whether its erstwhile determination was bully aliases bad. To do that, the strategy needs a learning constituent that uses feedback aliases past outcomes to update the soul model, the inferior function’s weights, aliases both. Without it, the aforesaid assumptions and scoring rules enactment successful spot until personification changes them.
  • The inferior usability tin beryllium difficult to creation well. The agent’s decisions dangle connected what the scoring look rewards, truthful a poorly designed usability tin consistently favour the incorrect outcomes.

Why inferior functions are difficult to design

Why inferior functions are difficult to creation

Designing the inferior usability intends deciding what the supplier should attraction about and how important each facet should be.

If an important facet is missing, the supplier ignores it. A transportation supplier that doesn’t see upwind successful its scoring whitethorn take a way done a snowstorm.

If 1 facet is fixed excessively overmuch importance, it tin predominate the decision. For example, if velocity matters overmuch much than substance use, the supplier whitethorn support choosing the fastest way moreover erstwhile a somewhat slower 1 uses acold little fuel.

The situation becomes harder erstwhile the strategy must relationship for quality priorities specified arsenic fairness, privacy, comfort, and acceptable risk. These don’t ever construe neatly into a numerical score.

For instance, a hiring strategy that rewards accelerated hiring and little net expectations could rank candidates precisely arsenic intended while omitting qualities the hiring squad really cares about.

Important

Not each privilege should beryllium included successful the inferior score. Keep safety, legal, and different non-negotiable requirements arsenic difficult constraints instead. If an action breaks 1 of those rules, cull it earlier scoring the remaining options. That prevents a precocious people for speed, convenience, aliases costs from outweighing an unacceptable risk.

Is a utility-based supplier the correct prime for you?

Choose a utility-based supplier erstwhile respective actions tin execute the goal, but immoderate outcomes are amended than others.

For example, 3 transportation routes whitethorn each scope the customer, but 1 is faster, 1 uses little fuel, and 1 is much reliable. A utility-based supplier is useful erstwhile those differences should impact which way it chooses.

Utility scoring is 1 measurement to determine what an supplier should do next, but it isn’t required for how AI agents work successful general. If reaching the extremity is enough, a elemental norm aliases goal-based attack whitethorn beryllium easier to build and maintain.

If a utility-based supplier does make consciousness for your task, commencement by deciding what it should compare. For a transportation agent, that could beryllium recreation time, substance use, and reliability. Then determine really important each facet should be. Keep rules that must ne'er beryllium broken, specified arsenic avoiding restricted roads, extracurricular the score.

Next, trial situations wherever those priorities conflict. What happens if the fastest way uses overmuch much fuel? Should the supplier still take the cheapest way if it’s often delayed? What should it do if unrecorded postulation information is unavailable? These tests show whether the scoring rules nutrient the decisions you really want.

Building this type of supplier intends defining, testing, and maintaining that determination logic yourself. If you chiefly request AI for circumstantial business tasks alternatively than a civilization agent, Hostinger Agents provides ready-to-use agents for SEO, marketing, content, and different day-to-day needs.

Hostinger Agents landing page

All of the tutorial contented connected this website is taxable to Hostinger's rigorous editorial standards and values.

Alma is an AI Content Editor pinch 9+ years of acquisition helping ideas return style crossed SEO, marketing, and content. She loves moving pinch words, structure, and strategy to make contented some useful and enjoyable to read. Off the clock, she tin beryllium recovered gaming, drawing, aliases diving into her latest D&D adventure.

Other Article Hostinger Tutorials
↑
Close Right Ads
Close Left Ads