Printed circuit board (PCB) inspection systems are trained under a closed-world assumption, yet production lines continually introduce new defect categories through design revision and process drift.
Retraining on new data alone causes catastrophic forgetting, and joint retraining is infeasible when historical images cannot be retained for storage or confidentiality reasons.
We therefore propose dual-level knowledge distillation, which supervises every YOLOX prediction branch from a frozen previous-stage teacher and additionally aligns PAFPN features through a direction-decoupled feature distillation loss that aggregates activations along rows and columns independently, concentrating gradient on the sparse, anisotropic responses characteristic of PCB defects and outperforming attention-transfer and channel-wise alternatives.
The framework stores no exemplars and adds no deployed parameters.
Across six incremental scenarios on PKU-PCB and CPS2D-AD, ten baselines, three anchor-free detectors, and a cross-domain PCB-to-ceramic-substrate transfer, it leads throughout, reaching 79.3% [email protected] (2 + 4) and 76.8% under two compounding increments — 3.4% above the strongest competitor — while retaining 90.5% of stage-1 old-class accuracy at 23.4 ms per image, identical to the non-incremental YOLOX-S detector.
Printed circuit board (PCB) inspection systems are trained under a closed-world assumption, yet production lines continually introduce new defect categories through design revision and process drift. Retraining on new data alone causes catastrophic forgetting, and joint retraining is infeasible when historical images cannot be retained for storage or confidentiality reasons. We show that forgetting in single-stage anchor-free detectors that expose an explicit foreground-confidence branch propagates through three functionally distinct pathways — category discrimination, objectness, and localisation — whose isolated contributions are of comparable magnitude and, under a full 2 × 2 × 2 factorial analysis, largely non-redundant; constraining only classification, as prior incremental detectors do, therefore forfeits most of the achievable retention, and omitting objectness distillation alone costs 7.3% mAP. We therefore propose dual-level knowledge distillation, which supervises every YOLOX prediction branch from a frozen previous-stage teacher and additionally aligns PAFPN features through a direction-decoupled feature distillation loss that aggregates activations along rows and columns independently, concentrating gradient on the sparse, anisotropic responses characteristic of PCB defects and outperforming attention-transfer and channel-wise alternatives. The framework stores no exemplars and adds no deployed parameters. Across six incremental scenarios on PKU-PCB and CPS2D-AD, ten baselines, three anchor-free detectors, and a cross-domain PCB-to-ceramic-substrate transfer, it leads throughout, reaching 79.3% [email protected] (2 + 4) and 76.8% under two compounding increments — 3.4% above the strongest competitor — while retaining 90.5% of stage-1 old-class accuracy at 23.4 ms per image, identical to the non-incremental YOLOX-S detector.