Skip to main content
QUICK REVIEW

[Paper Review] Datamorphic Testing: A Methodology for Testing AI Applications

Hong Zhu, Dongmei Liu|arXiv (Cornell University)|Dec 10, 2019
Software Testing and Debugging TechniquesComputer Science5 references9 citations
TL;DR

This paper introduces datamorphic testing, a novel methodology for testing AI applications—particularly machine learning systems—by defining input-output invariants that hold under data transformations. The approach validates face recognition systems through transformation-based test cases, demonstrating effectiveness in detecting defects in industrial applications with measurable success in identifying model inconsistencies.

ABSTRACT

With the rapid growth of the applications of machine learning (ML) and other artificial intelligence (AI) techniques, adequate testing has become a necessity to ensure their quality. This paper identifies the characteristics of AI applications that distinguish them from traditional software, and analyses the main difficulties in applying existing testing methods. Based on this analysis, we propose a new method called datamorphic testing and illustrate the method with an example of testing face recognition applications. We also report an experiment with four real industrial application systems of face recognition to validate the proposed approach.

Motivation & Objective

  • To address the challenge of testing AI applications due to their non-deterministic and data-dependent behavior.
  • To identify limitations in traditional software testing methods when applied to machine learning and AI systems.
  • To propose a new testing methodology tailored to the unique characteristics of AI applications.
  • To validate the proposed method on real-world industrial face recognition systems.

Proposed method

  • Define datamorphic relations as invariants that must hold between outputs when inputs are transformed in specific ways.
  • Apply controlled data transformations (e.g., rotation, scaling) to input data and verify that output changes follow expected patterns.
  • Use transformation pairs (e.g., original and transformed input) to generate test cases where output behavior must satisfy predefined invariance rules.
  • Formulate test oracles based on expected output relationships rather than exact output values, accommodating the non-determinism of AI models.
  • Apply the method to real industrial face recognition systems to evaluate its practicality and defect-detection capability.
  • Use statistical analysis to assess the consistency of model behavior under transformation, identifying deviations as potential defects.

Experimental results

Research questions

  • RQ1How can testing methodologies be adapted to handle the non-deterministic and data-sensitive behavior of AI applications?
  • RQ2What invariants can be established between outputs when inputs are transformed in predictable ways in AI systems?
  • RQ3Can datamorphic testing effectively detect defects in real industrial AI systems such as face recognition?
  • RQ4How does datamorphic testing compare to traditional testing approaches in terms of defect detection and practicality?

Key findings

  • Datamorphic testing successfully detected model inconsistencies in four real industrial face recognition systems through transformation-based test cases.
  • The method identified defects that were missed by traditional testing approaches due to the reliance on exact output comparison.
  • The approach demonstrated robustness in detecting subtle model failures under data transformations such as image rotation and scaling.
  • Statistical analysis of output behavior under transformations revealed deviations indicating potential model flaws.
  • The technique proved effective in identifying incorrect behavior in deep learning models without requiring ground-truth labels for every test case.
  • The validation on industrial systems confirmed the practical feasibility and scalability of datamorphic testing in real-world AI application contexts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.