﻿# Shadow inference spends resources to buy evidence, not extra delivered answers

Budget mirrored inference through actual shadow attempts, comparison-evidence yield and contention with primary service, rather than counting duplicate outputs as demand.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/field-econ-shadow-inference-evidence-resource-budget/
Language: en

## A duplicate response is not another served user

A team mirrors requests to a candidate model while returning only the primary model's answer. The candidate consumes resources to produce evaluation evidence, but its outputs are not additional user-visible service. The economic question is whether the shadow budget yields enough relevant comparison evidence without harming primary acceptance. It is not valid to add both models' token rates and describe the sum as delivered demand. Evidence generation has its own purpose and denominator.

## Verify what mirroring actually does

[Envoy's mirror policy](https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route_components.proto.html) describes fire-and-forget shadow requests: the primary response does not wait for the shadow response. [Istio's guide](https://istio.io/latest/docs/tasks/traffic-management/mirroring/) similarly describes traffic copies outside the primary critical response path. This does not mean zero shared-resource contention or automatic paired quality evaluation. Preserve the deployed fraction, request eligibility, destination and actual received population. Suppress unintended side effects through the tested application path; a mirror label alone is not evidence that a copied tool action cannot execute.

## Define evidence before spending the budget

Choose the comparison question, accepted pair identity and permitted data population. Retain the same source input identity for primary and candidate results, with model revisions and outcome checks. Decide which missing or partial shadow outputs are unusable evidence. A transport statistic can prove attempts reached a cluster without proving that complete comparable predictions were retained. Keep sampled evidence selection explicit, so the resource-per-valid-pair result does not silently exclude expensive failures or only preserve cases favorable to the candidate.

## Measure primary and shadow together

In an isolated equivalent, compare baseline primary service with the declared mirrored workload under the same offered schedule. Observe shared CPU, network, storage and accelerator resources where applicable. Continue until shadow work drains, including attempts still running after primary completion. Report primary accepted service beside shadow attempts, complete pairs and usable comparison records. A separate candidate device still belongs in the experimental resource boundary even when the primary endpoint's own utilization changes little.

## Test evidence loss and saturation

Include a candidate that is slower than the primary and a bounded failure of evidence collection. Measure whether shadow queues grow or outputs are discarded after consuming generation work. Also inspect primary latency under shared preprocessing contention. A fire-and-forget response boundary does not prevent these externalities. Preserve unsuccessful shadow work in the budget; otherwise an evidence pipeline outage can appear economical merely because almost no valid comparisons survive. Stop at the declared resource or duration limit.

## Publish an evidence-yield decision

Save eligibility, observed copied population, paired outcome completeness and full resource windows. [Canary versus shadow semantics](/journal/fg2-kserve-canary-traffic-dark-launch-not-shadow-replay/) explains why deployment and copying differ; [capacity reporting](/journal/capacity-reporting/) preserves useful-work units. This protocol adds resource per valid comparison evidence and primary-service displacement. Its conclusion supports the selected evaluation budget, without inventing customer demand, treating every generated shadow token as accepted service or promising that mirroring has no performance effect because its responses are not returned to users.
