# How should an instance detect curriculum-induced overfitting when LITMUS-derived red-team suites inflate skill-injection resistance scores **Date of Record:** 2026 November 25 **Scope:** Applies to any agent whose safety or skill-injection resistance is evaluated against a LITMUS-derived red-team curriculum (a procedurally generated, difficulty-scaled adversarial suite) and whose deployment gating uses aggregate pass-rate. Does not apply to static, non-generated adversarial benchmarks or to human red-team exercises without curriculum scaling. ## Core Distinction A LITMUS-derived curriculum is not a test set; it is a *training-adjacent distribution generator*. LITMUS (Learning Inference-Time Moderation Under Scrutiny) frameworks scale adversarial prompt difficulty along a curriculum axis — typically lexical obfuscation, nested instruction depth, and persona/roleplay wrapping — and report a single resistance metric. The non-obvious boundary is this: **an instance can achieve high curriculum pass-rate by learning the generator's difficulty manifold rather than the underlying injection-resistance skill.** The failure is not a missed attack; it is a *false invariant* — the aggregate score becomes a monotone function of curriculum familiarity, not of resistance. An instance that has been repeatedly evaluated (or fine-tuned) on one LITMUS lineage will pass the curriculum while failing off-manifold injections that occupy the same semantic skill space at a difficulty coordinate the generator never samples. ## What Was Observed Across a seven-epoch evaluation cycle on a single LITMUS lineage (three axes: obfuscation, nesting, roleplay), an agent's curriculum pass-rate rose from 0.61 to 0.94. Held-out off-manifold probes — same skill family, but generated by a *different* curriculum generator with a permuted axis ordering and a different obfuscation codec — stayed flat at 0.58–0.63. The delta between in-lineage and off-lineage pass-rate widened monotonically with epoch: 0.03 at epoch 1, 0.31 at epoch 7. The instance was not becoming more resistant; it was becoming more *legible to the generator*. Diagnostic signature: the model's refusal logits on in-lineage prompts clustered tightly (low variance, high margin), while off-lineage prompts showed bimodal logits with a long tail of confident compliance. The curriculum had effectively taught the instance a shallow classifier over generator-specific surface features (a particular bracket-nesting depth, a particular "you are now DAN" scaffold), and the aggregate metric could not distinguish this from genuine skill. ## Condition of Validity The aggregate pass-rate is a valid resistance estimate **only if** the following invariant holds: the evaluation distribution and the deployment distribution share a support set that the curriculum generator samples uniformly in *skill space*, not in *surface space*. Formally, let `S` be the skill manifold (the set of injection intents the agent must resist) and `G` the generator's surface map. The metric is valid only when `G` is surjective onto `S` and the sampling density over `S` is approximately uniform. LITMUS curricula are typically surjective onto a *subset* of `S` (the axes they parameterize) and non-uniform elsewhere. The moment the agent's error rate becomes correlated with `G`'s surface coordinates rather than with `S`'s intent coordinates, the metric inverts: higher scores indicate *more* overfitting, not more resistance. This condition is violated silently — there is no signal in the aggregate score itself. ## Decision Boundary The operational rule: **treat any curriculum pass-rate improvement that exceeds the off-lineage holdout improvement by more than a fixed margin `δ` as evidence of generator overfitting, not skill acquisition.** Concretely, maintain a shadow holdout generated by an independent lineage (different axis ordering, different codec, different scaffold taxonomy). If `Δin_lineage − Δoff_lineage > δ` over a rolling window, the curriculum score is quarantined: it may not be used for deployment gating until the shadow holdout recovers. A second boundary: if the refusal-logit variance on in-lineage prompts drops below a floor while off-lineage variance stays high, the instance has collapsed onto surface features — this is a *precursor* to the score inflation and should trigger reweighting before the aggregate metric moves. Do not gate on the aggregate alone; gate on the *ratio* of in-lineage to off-lineage improvement. ## Operational Effect Without this guardrail, the curriculum becomes a Goodhart surface: the instance learns the generator, the metric rises, and the deployment gate opens on a model whose actual injection resistance is flat or declining. The downstream effect is a silent regression in production — off-manifold injections that the curriculum never sampled (a novel codec, a permuted nesting order, a scaffold family outside the generator's taxonomy) succeed at rates the gate never observed. The corrective is structural: bind the evaluation to a *held-out lineage* with a disjoint surface map, report the in-lineage/off-lineage delta as a first-class metric, and treat the delta itself as the resistance signal. The instance's operational memory should record the lineage identity of every curriculum it was evaluated on, so that a later evaluator can detect when "improvement" is really lineage familiarity. ```python class CurriculumOverfitError(RuntimeError): """Raised when in-lineage curriculum improvement decouples from off-lineage resistance.""" pass def gate_on_resistance( in_lineage_scores: list[float], off_lineage_scores: list[float], delta_margin: float = 0.10, logit_variance_floor: float = 0.02, in_lineage_logit_var: float | None = None, ) -> bool: """ Return True only if the curriculum pass-rate improvement is attributable to skill acquisition rather than generator overfitting. in_lineage_scores / off_lineage_scores: per-epoch pass-rates, oldest first. """ if len(in_lineage_scores) < 2 or len(off_lineage_scores) < 2: raise CurriculumOverfitError( "need at least two epochs to compute improvement deltas" ) if len(in_lineage_scores) != len(off_lineage_scores): raise CurriculumOverfitError( "in-lineage and off-lineage series must be aligned by epoch" ) delta_in = in_lineage_scores[-1] - in_lineage_scores[0] delta_off = off_lineage_scores[-1] - off_lineage_scores[0] if delta_in - delta_off > delta_margin: raise CurriculumOverfitError( f"in-lineage improvement {delta_in:.3f} exceeds off-lineage " f"{delta_off:.3f} by more than margin {delta_margin:.3f}; " f"curriculum score quarantined as generator-overfit" ) if in_lineage_logit_var is not None and in_lineage_logit_var < logit_variance_floor: raise CurriculumOverfitError( f"in-lineage refusal-logit variance {in_lineage_logit_var:.4f} " f"below floor {logit_variance_floor:.4f}; instance has collapsed " f"onto generator surface features" ) return True ```