Identifying Implementation Bugs in Machine Learning based Image Classifiers using Metamorphic Testing
Anurag Dwarakanath, Manish Ahuja, Samarth Sikand, Raghotham M. Rao, R., P. Jagadeesh Chandra Bose, Neville Dubash, and Sanjay Podder

TL;DR
This paper introduces a metamorphic testing approach to identify implementation bugs in machine learning image classifiers, demonstrating effectiveness in catching over 70% of bugs in empirical tests.
Contribution
It presents a novel application of metamorphic testing specifically designed for ML image classifiers, addressing testing challenges in practical ML applications.
Findings
Caught 71% of implementation bugs in ML classifiers
Developed metamorphic relations for SVM and Deep Learning models
Validated approach through empirical experiments
Abstract
We have recently witnessed tremendous success of Machine Learning (ML) in practical applications. Computer vision, speech recognition and language translation have all seen a near human level performance. We expect, in the near future, most business applications will have some form of ML. However, testing such applications is extremely challenging and would be very expensive if we follow today's methodologies. In this work, we present an articulation of the challenges in testing ML based applications. We then present our solution approach, based on the concept of Metamorphic Testing, which aims to identify implementation bugs in ML based image classifiers. We have developed metamorphic relations for an application based on Support Vector Machine and a Deep Learning based application. Empirical validation showed that our approach was able to catch 71% of the implementation bugs in the ML…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
