Offline Versus Online Evaluation

Offline evaluation replays or splits historical data. Online evaluation measures behavior under actual exposure, usually through experiments. Recommenders need both because recommendations change what users see and therefore change future labels.

Replay and off-policy estimation

For randomized logged bandit data, replay keeps only events where the new policy matches the logged action:

With known propensities , inverse propensity scoring uses

This is different from ordinary evaluation of recommenders on held-out items.

Worked example

Replay evaluation keeps only rows where the candidate policy chose the same action as the logged policy:

EventLogged actionRewardCandidate actionReplay?
1010yes
2100no
3000yes
4212yes
5112no
6202yes

Only four events can be replayed because rewards for unshown actions are missing. Among the matched rows, rewards are , so the replay CTR is . Bandit algorithms require this partial-feedback discipline.

Caveats

Offline ranking metrics are cheap and reproducible but can overfit historical exposure. Online tests measure real behavior but are slower, riskier, and sensitive to interference. Use offline gates to reject bad candidates, then confirm important changes with online experiments.

References