Skip to content

Cookies

We use cookies to enhance your experience. Learn more

ResearchMethod

Scoring affinity to any target

One profile per person misses what matters for a single brand or campaign. Here the brand or campaign is part of the question, so Magnet Decision judges each person with it in mind.

A row of five small paper squares on lilac paper, joined by a strip of red tape to one large purple disc.

The problem

Given a person and a target, predict how the person will behave toward that target. The target can be a brand, a campaign, a product, a category, a merchant or an idea of an audience. The output that matters most is a purchase; adding to a basket and buying again give more signal to learn from.

Why a fixed vector falls short

The usual pattern compresses a person into one vector and trains a small classifier per campaign on top of it. The vector is the same for every target, so the classifier can only use what the vector happened to keep. For a narrow target, the evidence that matters is often the part that was averaged away.

The design

The person’s representation, the target’s description and a dedicated score token are placed in one sequence. The model attends over all three, so the relation between person and target is formed inside the model, with everything it has learned about products, prices, timing and context. A small head reads the final state of the score token and returns three independent values: purchase, basket and repeat purchase.

The input, in outline. The target is invented for this example.
<USER_REP>
  ... the person’s compact representation at the cutoff ...
</USER_REP>
<TARGET>
  type: campaign
  name: Family holiday packages
  description: package holidays for families with children
</TARGET>
<SCORE>

Labels from what happened next

Each training row is built at a cutoff in time. The input holds only what was known by then; the labels are what the person did afterwards. Nobody writes an affinity number by hand.

Rows for one person at the same cutoff. Repeat purchase is left out of the loss where the person could not yet have bought twice.
TargetBasketPurchaseRepeat
A soft drink110
Açaí111
Sushi10left out
Pet food00left out

Negatives are chosen with care. A pair counts as a negative only where the person had a real chance to meet the target and did not act, and never where their own history already shows interest in it or something close to it.

Serving many targets at once

Scoring needs no generated text: one pass through the model, then a read of the score token. When several targets are scored for the same person, the work done on the person’s part of the sequence is kept and reused, and only each target’s short suffix is computed again.

How it is judged

  • Ranking quality: hit rate and recall on future purchases, reported apart for targets seen in training and targets that are new.
  • Speed: median and 95th percentile latency for one target and for a batch of them.
  • Throughput: person and target pairs scored each second.

Author

  • Magnet research

References

  1. MTGR: Industrial-Scale Generative Recommendation Framework in MeituanarXiv, 2025
  2. Unconstrained Monotonic Calibration of Predictions in Deep Ranking SystemsSIGIR 2025

Keep reading

  • Publication

    One model for the whole home page

    A shopping app’s home page is filled by many recommenders, each tuned for its own slot. This model writes one page per person, per meal moment: the title, the subtitle and what to show. In a live test on one slot it brought 137% more orders from that list.

  • Publication

    New robots, old tricks: teaching robots to speak AI

    A post of November 2026 on a year of wiring Darwin, the Prosus humanoid robot. Five parts spoke five protocols, and the post asks what a robot should tell an AI agent about its actions before the agent can use it.

  • Method

    Meet the large commerce model

    Language models learn from text. Magnet Decision learns from what people search for, look at, buy and come back for. Here’s how it’s built.