‹ Field Guide

Letter 33 · The fox and the unopened door

Michi came home with one receipt. It said Archive had successfully found yesterday’s parade. The lantern fox asked how Scout had done. Koko covered the empty socket with a paper moon. Nobody had sent Scout on that errand. Enter Lucky Lantern Arcade

Choose a tool and keep its receipt

A contextual bandit makes one choice after seeing a request, then observes a reward for that choice. In the first tower room, fifteen of twenty slips point to Scout and five to Archive. Drawing slip sixteen sends a guest to Archive with probability 1/4. Record the context available before dispatch, available tools, chosen action, probability, policy version, request ID and eventual outcome. A verified failure earns zero. An unopened tool has an unobserved outcome. Recomputing yesterday’s probability from today’s router would change the meaning of the record. Vowpal Wabbit contextual-bandit tutorial · Robert Schapire’s Microsoft Research talk · Watch the Microsoft Research recording on YouTube

The Echo Mailroom has another empty socket. B actually ran Archive at tick three, but its verifier returned a failure at tick twelve. At tick ten B was pending. At tick thirteen it is a verified zero. C remains pending at both cutoffs. Define your observation window before comparing routes. A report restricted to quick confirmations can favor the fastest verifier. Longer journeys in which the chosen tool changes the next available actions require a sequential model. This arcade studies one tool choice per independent guest. Decision Service architecture

How heavy is a matching ticket?

The standard target sends Fresh requests to Scout and Archive requests to Archive. On the first six tickets the target matches rows 1, 3, 4 and 6. Their verified rewards are 1, 0, 1 and 1. Every match had action-time probability 3/4, so each has importance weight 4/3. A nonmatching action has weight zero under this deterministic target.

Ordinary inverse propensity scoring (IPS) divides the sum of weighted rewards by the number of logged tickets. Here that is 4/6 = 2/3. Self-normalized IPS (SNIPS) divides by the sum of weights, giving 4 ÷ (16/3) = 3/4. Effective sample size computed from these weights is four. The raw matched average also happens to be 3/4 here because matching propensities are equal. With a different behavior policy, a raw matched average can distort the context mix. A matching action taken with probability 1/20 gets weight twenty, so a single ticket can swing a small-sample estimate substantially. Li and colleagues on randomized replay · Counterfactual risk minimization

Forge the mirror shield

Begin every row with a reward prediction for the target tool. On a match, add the importance-weighted difference between the observed reward and the prediction for the logged tool. On a nonmatch, keep the direct target prediction. In the arcade the predictions are fixed independently of the six evaluation outcomes.

Row three has prediction 3/5 for Scout, a verified reward of zero and a matching weight of 4/3. Its correction is −4/5, so this piece contributes −1/5. Row one contributes 17/15. Averaging the six pieces gives 67/90. Clipping the individual pieces would change the estimator. Under overlap and the relevant estimation assumptions, the doubly robust method can retain consistency with a correctly specified reward model or logging propensity model. The six toy observations give little precision. Dudík, Langford and Li · Vowpal Wabbit estimator guide

The fox’s sealed door

Rows seven and eight are Sealed requests. The standard logger always sends them to Scout. The target wants Archive. Scout’s one failure and one success cannot establish how Archive would have performed. The full-policy shrine therefore takes the “?” crate. You may restrict the claim to the supported six, change the target so Sealed requests go to Scout, or gather prospective data with positive exploration probability. Those choices answer different questions. A model prediction behind a door that never opened is extrapolation. Limits of off-policy evaluation

If the original six-row target pays one coin for Scout and three for Archive, its mean posted price is two coins. Commit a conversion rate of 1/10 reward unit per coin before opening the results, and the IPS-based utility is 2/3 − 2/10 = 7/15. The game uses fixed posted prices. An agent whose token costs or retries vary would also need observed cost receipts and an appropriate evaluation design.

The bridge also opens a prospective experiment. Choose an Archive share and send eight new, dated requests. A seeded pseudorandom drawer makes each group reproducible. Scout reads today’s board. Archive looks up the requested date. The harness runs only the selected lookup, records its original probability, and verifies the returned day and count. A nonzero Archive share gives the target support even if a tiny sample happens to draw zero Archive visits. Keep the new experiment separate from the old eight receipts. Run the same local tools with node examples/lantern-tool-router.cjs 1 5 for seed one and five Archive slips out of twenty. Runnable tool router

What the town earned

Five festival keepsakes unlock along the climb. In the duel, push the crates onto their claim shrines and strike the gong. All 27 flags use original teaching fixtures. Changing the logger changes weights, changing the target can restore full support, and changing the maze changes physical routes. A successful duel earns the Foxfire Bell. Download the scroll and run node examples/replay-lantern.cjs scroll.json in the source checkout to reproduce each move and its three claims. Challenge the lantern fox