Online Experiments and Production Evaluation › Shadow traffic

Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters
Part 57 of 67Dynamic, Interactive, and Agentic Evaluation
Chapter 439Online Experiments and Production Evaluation › Shadow traffic
Reading section 4 of 15 · Shadow traffic · 2 minSection 4 of 15 · 2 min

Section 4 of 15 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

In a shadow run the baseline still responds to the user. The candidate receives an eligible copy of the input and writes its output to a separate log. The shared request ID lets you join scores for the two responses and compute each response pair's score difference.

For candidate and baseline scores CC and BB on the same request,

Var⁡(C−B)=Var⁡(C)+Var⁡(B)−2Cov⁡(C,B).\operatorname{Var}(C-B)=\operatorname{Var}(C)+\operatorname{Var}(B)-2\operatorname{Cov}(C,B).

For independent pairs, the standard error of their mean difference is the sample standard deviation of C−BC-B divided by the square root of the pair count. Positive within-request covariance lowers that variance relative to an independent comparison with the same number of scores per model. Correlation across requests from the same user can require a user-level analysis.

Log how many eligible requests enter the shadow path, how many return before the deadline, and how many join. If candidate timeouts concentrate on hard requests, the complete-pair score describes a selected subset. Set candidate-specific concurrency and compute limits, block side effects and writes, and protect any copied input under the same permissions as the serving path.

You can annotate a candidate response with the actual baseline interaction's later outcome. A baseline escalation can help you pick cases for review. The join records the outcome that actually occurred under the baseline. Candidate exposure can change a user's next message, so the replay follows the baseline trajectory.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy