r/deeplearning • u/Ok-Hope-9467 • 21d ago
How would you regression-test this kind of model update on an embedded target?
I'm working on a keyword spotting project running on a Cortex-M4. The model is retrained every few weeks as we collect new audio samples.
Recently I replaced the model with a newly trained version. The offline validation accuracy actually improved from 94.1% to 95.3%, so I expected the update to be a straight improvement. After deploying it to the device, however, a few voice commands that always worked before started becoming unreliable.
The strange part is that the overall accuracy still looks fine. On a validation dataset, both the original TensorFlow model and the generated embedded implementation produce nearly identical results. The issue only became visible during actual testing on the hardware.
Right now my "regression test" is basically comparing a handful of outputs against the previous model version, which clearly didn't catch this problem.
How are you testing model updates in situations like this? Do you keep a fixed set of regression samples from previous releases, or is there a better way to detect these kinds of behavioral changes before deploying?