Online Experiments and Production Evaluation › Shadow traffic
Language AI HandbookAll chapters 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 and on the same request,
For independent pairs, the standard error of their mean difference is the sample standard deviation of 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!