When the Measurement Decides the Answer

Difficulty calibration, adaptive sequencing, and label-efficient drift adaptation.

Three strands around a single theme: what happens when the labels a system trains on are cheaper and worse than the labels it assumes. Two strands are in computing education, where the labels are instructor-assigned exercise difficulties, and one is in intrusion detection, where the labels are analyst adjudications of traffic.

Architecture diagram

1. Instructor difficulty labels are badly calibrated, and cheaply fixable

Author-assigned difficulty labels carry a mean absolute error of 0.6555 against empirically calibrated difficulty at 0.1639, a 75% reduction. On the hardest items the authors underrate difficulty by 0.74 SD, which is the curse of knowledge reproduced in a measurable setting. Calibration needs roughly 25 students per item before the picture is unambiguous.

The consequence is sequencing. Adaptive sequencing on calibrated labels reaches mastery in 8.0 exercises, against 9.0 on author labels and 7.0 with true difficulty, so calibration recovers about half the available gap.

2. The benefit of adaptive sequencing is governed by one measurable parameter

Aggregate mastery over five independent cohorts of 400 simulated students:

policy mastery rate mean items
fixed curriculum 0.937 17.1
random 0.923 17.7
adaptive 0.999 7.5

The same data split by incoming ability tells a different story:

policy bottom 25% lower-mid upper-mid top 25%
fixed 0.748 ± 0.029 1.000 1.000 1.000
random 0.692 ± 0.035 1.000 1.000 1.000
adaptive 0.996 ± 0.005 1.000 1.000 1.000

All three intervals in the bottom quartile are disjoint. The aggregate gain is +0.062, the top quartile gains +0.000, and the bottom quartile gains +0.248. Reporting a mean hides the result in both directions: it can conceal harm, and here it conceals the benefit, by a factor of four, in the band a retention-focused programme exists to serve.

This is conditional, and the condition is the finding. The model rests on a frustration penalty, the cost of putting an item far above a student's level. Sweeping that penalty moves the adaptive advantage from +0.016 at zero to +0.804 at 1.0. So the honest claim is not "adaptive sequencing helps" but "the benefit of adaptive sequencing is governed by one parameter that a real deployment can measure", which is a question an instructor can answer about their own students.

Adaptive gain by incoming ability

3. Label-efficient drift adaptation trades aggregate detection for novelty

On KDD Cup 99, uncertainty sampling is worse on aggregate F1 (0.8020 against 0.8558) and better on new-family recall (0.2702 against 0.2118), both with disjoint intervals. It is not a better strategy, it is a different operating point, and which one you want depends on whether you are trying to hold the line or catch what you have not seen before.

At the dataset's true 13,371:1 imbalance across 494,021 rows, aggregate F1 saturates above 0.994 and stops discriminating between strategies at all, which is a statement about the metric rather than about the strategies.

Two data-loading bugs reversed these conclusions twice before the final version. One was .strip("b'.") on dataset labels, which strips a character set rather than a prefix and renamed back. to ack, so a scheduled attack family matched zero rows and 2,203 instances were silently dropped. The other one-hot encoded the numeric columns, because fetch_kddcup99 returns every column as object dtype, producing 6,310 features where there should have been 113. Separately, a hand-set PSI drift threshold that was 19× too high had been manufacturing a false "drift-triggering saves labels" result until it was calibrated against a null distribution.

Scope

students simulated from an IRT model, no human subjects
IDS data KDD Cup 99, both regimes: capped at 6,000/class (286:1) and uncapped at the true 13,371:1 (494,021 rows)
replication 5 seeds for the education arms, 3 to 6 for the IDS arm, 95% CIs
shows author difficulty labels are badly calibrated and cheaply fixable, and adaptive gain is parameter-dependent
does not show anything about real learners, or per-family behaviour beyond the twelve scheduled families

Running it

pip install -r requirements.txt
python experiment.py             # drift adaptation, synthetic
python experiment_education.py   # difficulty calibration
python experiment_equity.py      # where the adaptive gain lands
python experiment_real.py        # KDD Cup 99 arm
script runtime outputs
experiment.py ~50 s results.json, figure_drift.png
experiment_education.py ~40 s results_education.json, figure_education.png
experiment_equity.py ~1 min results_equity.json, figure_equity.png
experiment_real.py ~4 min results_real.json, figure_real_drift.png

CPU only. The real-data arm downloads KDD Cup 99 (~18 MB) once and caches it.

Full write-up

The complete report, with the calibration curves, the per-family recall breakdown and the full account of both loader bugs, is in report.pdf. The architecture diagram is also available as architecture.pdf. The report’s closing section states the limitations of every result in full.