Static reading edition: compare the fixed counterfactual rows below.
Canonical default: B is sampled, xB is visited, and the mean is 0.221025 nats.
Inspect the machine-readable trace
{
"draw": {
"intervalRule": "half-open",
"uniform": 0.8
},
"epistemicStatus": "toy-derived counterfactual overlay; not model output or training evidence",
"events": [
{
"eventId": "OPD-HD-TRACE-PB-025-E001",
"payload": {
"distribution": [
0.75,
0.25
],
"policyVersion": "student-v0",
"prefix": "x",
"vocabulary": [
"A",
"B"
]
},
"seq": 1,
"summary": "At x, student-v0 assigns A=0.75 and B=0.25.",
"type": "student.behavior_distribution_evaluated"
},
{
"eventId": "OPD-HD-TRACE-PB-025-E002",
"payload": {
"distributionEventRef": "OPD-HD-TRACE-PB-025-E001",
"gradientThroughDraw": false,
"intervalRule": "half-open",
"sampledToken": "B",
"uniform": 0.8
},
"seq": 2,
"summary": "The fixed draw u=0.8 selects B.",
"type": "student.token_sampled"
},
{
"eventId": "OPD-HD-TRACE-PB-025-E003",
"payload": {
"appendedToken": "B",
"behaviorPolicyVersion": "student-v0",
"includedInOverlayReduction": true,
"prefix": "xB",
"source": "student_current_policy_in_counterfactual_overlay"
},
"seq": 3,
"summary": "xB is visited because the current student overlay sampled B.",
"type": "rollout.prefix_visited"
},
{
"eventId": "OPD-HD-TRACE-PB-025-E004",
"payload": {
"distribution": [
0.75,
0.25
],
"policyVersion": "student-v0",
"prefix": "x",
"vocabulary": [
"A",
"B"
]
},
"seq": 4,
"summary": "The local student distribution is evaluated at x.",
"type": "student.loss_distribution_evaluated"
},
{
"eventId": "OPD-HD-TRACE-PB-025-E005",
"payload": {
"distribution": [
0.5,
0.5
],
"policyVersion": "teacher-v0",
"prefix": "x",
"vocabulary": [
"A",
"B"
]
},
"seq": 5,
"summary": "The teacher is queried at the identical prefix x.",
"type": "teacher.distribution_evaluated"
},
{
"eventId": "OPD-HD-TRACE-PB-025-E006",
"payload": {
"display": "0.130812",
"logarithm": "natural",
"orientation": [
"student",
"teacher"
],
"prefix": "x",
"studentEventRef": "OPD-HD-TRACE-PB-025-E004",
"teacherEventRef": "OPD-HD-TRACE-PB-025-E005",
"units": "nats",
"value": 0.13081203594113697
},
"seq": 6,
"summary": "Reverse KL at x is 0.130812 nats.",
"type": "loss.local_computed"
},
{
"eventId": "OPD-HD-TRACE-PB-025-E007",
"payload": {
"distribution": [
0.6,
0.4
],
"policyVersion": "student-v0",
"prefix": "xB",
"vocabulary": [
"A",
"B"
]
},
"seq": 7,
"summary": "The local student distribution is evaluated at xB.",
"type": "student.loss_distribution_evaluated"
},
{
"eventId": "OPD-HD-TRACE-PB-025-E008",
"payload": {
"distribution": [
0.9,
0.1
],
"policyVersion": "teacher-v0",
"prefix": "xB",
"vocabulary": [
"A",
"B"
]
},
"seq": 8,
"summary": "The teacher is queried at the identical student-visited prefix xB.",
"type": "teacher.distribution_evaluated"
},
{
"eventId": "OPD-HD-TRACE-PB-025-E009",
"payload": {
"display": "0.311239",
"logarithm": "natural",
"orientation": [
"student",
"teacher"
],
"prefix": "xB",
"studentEventRef": "OPD-HD-TRACE-PB-025-E007",
"teacherEventRef": "OPD-HD-TRACE-PB-025-E008",
"units": "nats",
"value": 0.31123867958305756
},
"seq": 9,
"summary": "Reverse KL at xB is 0.311239 nats.",
"type": "loss.local_computed"
},
{
"eventId": "OPD-HD-TRACE-PB-025-E010",
"payload": {
"display": "0.221025",
"localLossEventRefs": [
"OPD-HD-TRACE-PB-025-E006",
"OPD-HD-TRACE-PB-025-E009"
],
"positions": [
"x",
"xB"
],
"reduction": "unweighted_mean_of_unrounded_values",
"roundAfterReduction": true,
"units": "nats",
"value": 0.22102535776209725
},
"seq": 10,
"summary": "The unweighted mean of the two unrounded local losses is 0.221025 nats.",
"type": "loss.reduced"
},
{
"eventId": "OPD-HD-TRACE-PB-025-E011",
"payload": {
"learningRate": null,
"optimizer": null,
"parameterization": null,
"reducedLossEventRef": "OPD-HD-TRACE-PB-025-E010",
"status": "not_executed"
},
"seq": 11,
"summary": "The fixture stops at the update boundary; no parameter update is invented.",
"type": "parameter_update.boundary"
}
],
"fixtureRef": {
"canonicalDefault": true,
"canonicalMutated": false,
"contractId": "OPD-CORE-v1",
"fixtureId": "OPD-TOY-001",
"overlayId": "OPD-HD-CF-001"
},
"input": {
"bounds": {
"default": 0.25,
"max": 0.4,
"min": 0.1,
"step": 0.05
},
"complementField": "student.states.x.A",
"complementValue": 0.75,
"field": "student.states.x.B",
"value": 0.25
},
"schemaVersion": "1.0",
"summary": {
"canonicalXAComparisonUnchanged": true,
"gradientThroughDraw": false,
"lossAtVisitedPrefix": {
"display": "0.311239",
"units": "nats",
"value": 0.31123867958305756
},
"lossAtX": {
"display": "0.130812",
"units": "nats",
"value": 0.13081203594113697
},
"meanLoss": {
"display": "0.221025",
"units": "nats",
"value": 0.22102535776209725
},
"objective": "D_KL(student || teacher)",
"prefixSource": "student_current_policy_in_counterfactual_overlay",
"sampledToken": "B",
"teacherQueryPrefix": "xB",
"updateStatus": "not_executed",
"visitedPrefix": "xB"
},
"traceFamily": "OPD-HD-TRACE-001",
"traceId": "OPD-HD-TRACE-PB-025"
}