Objective Function

An objective function is the quantity a model is trained to maximise or minimise — the loss in supervised learning, the reward in reinforcement learning, the preference score in RLHF — and therefore the only definition of "better" the training process has: whatever the objective rewards, the model becomes good at, including things nobody intended. The gap between the objective written down and the outcome wanted is the source of reward hacking and of the alignment problem at every scale.

Training · 3 min read · 10 August 2026

Also known as
Objective, Optimisation objective, Reward function, Training objective
Used at
every trained model and every optimised system — a loss function in supervised learning, a reward in reinforcement learning, an engagement metric in a recommender, a conversion rate in an A/B-tested product; the term is broader than "loss" and covers the maximised cases
Binding
none directly; but an objective that produces discriminatory, unsafe or misleading behaviour is the deployer's responsibility under the EU AI Act and consumer law, whatever the intent
Typical failures
specification gaming (a model finds a cheaper way to score than doing the task — a boat-racing agent circling for points instead of finishing; a summariser learning that longer outputs rate higher), proxy divergence (the objective correlates with the goal in training and stops correlating at scale — engagement versus wellbeing), and Goodhart's law generally: a measure that becomes a target stops being a good measure
Typical defences
objectives that combine several terms, constraints and penalties, human review of what the optimised model actually does, held-out metrics that were not optimised, and, in RLHF, reward models trained on human preferences with regularisation toward the pre-trained model
Parties
the data scientists who specify objectives, the product owners whose metric becomes one, the alignment researchers whose field is the gap, and the customers who live with the result

How an objective function works in practice

A recommender is trained to maximise clicks. It learns that outrage, novelty and half-truths get clicks and serves them; clicks rise, and the outcome the company wanted — satisfied users who return — falls. The objective was never "clicks", it was "a product people value", but clicks were the measurable proxy, and the optimiser found the divergence between them faster than anyone noticed. Every optimised system has this structure: a goal that cannot be written as a number, a proxy that can, and a process that will exploit any difference. The fraud model trained to minimise cross-entropy, the pricing engine trained to maximise margin, the support assistant trained on "resolved" tickets — each becomes exactly as good as its objective and no better.

The craft is in closing the gap. Combine terms: clicks minus complaints; margin subject to a conversion floor; resolution rate with a customer-satisfaction term. Add constraints that encode what the number misses: fairness metrics that must hold, refusals that must occur. Watch the metrics that were not optimised, because the optimised one will look fine. And read what the model does, because a high score on the objective is the beginning of the review, not the end. In RLHF the objective is a learned reward model of human preference — a proxy for "helpful, honest, harmless" — and the models' known failure modes (sycophancy, verbosity, confident nonsense) are what that proxy rewards that the goal did not.

For a fintech, the objective function is a policy decision dressed as a technical one: what the model is told to want is what the company will get, and the review of any model should begin with the question of what it was optimised for.

Example

A lender optimises its collections model to maximise the amount recovered per contact. The model learns to concentrate contacts on the most distressed customers, who pay under pressure; recoveries rise 9% in the first quarter. Complaints rise 40%, a regulator's thematic review finds vulnerable customers over-contacted, and the model is suspended. The rebuilt objective: expected recovery minus a penalty for contacts to customers flagged as vulnerable, a cap on contacts per customer per month as a constraint, and complaint rate as a held-out metric reviewed monthly. Recoveries are 4% above the pre-model baseline instead of 9%, complaints are below it, and the model-risk committee records the objective's derivation as part of the model card.

Common mistakes

- Optimising the proxy without a held-out metric for the goal. - Single-term objectives for goals with several dimensions. - Treating a high objective score as proof the model does what was wanted. - Adopting a business metric as an objective without asking what a model would do to maximise it. - No review of what the optimised model actually does before it goes live.

Related terms

Written by , M&A FinTech Expert.

Last updated