Muffin: Testing Deep Learning Libraries via Neural Architecture Fuzzing

Jiazhen Gu, Xuchuan Luo, Yangfan Zhou, Xin Wang
4/19/2022
109 citations
cs.SE

Official code: library-testing/Muffin (34 stars, Python, Apache-2.0, TensorFlow, last commit 2022-06-17).

Abstract

Deep learning (DL) techniques are proven effective in many challenging tasks, and become widely-adopted in practice. However, previous work has shown that DL libraries, the basis of building and executing DL models, contain bugs and can cause severe consequences.

Show full abstract

Unfortunately, existing testing approaches still cannot comprehensively exercise DL libraries. They utilize existing trained models and only detect bugs in model inference phase. In this work we propose Muffin to address these issues. To this end, Muffin applies a specifically-designed model fuzzing approach, which allows it to generate diverse DL models to explore the target library, instead of relying only on existing trained models. Muffin makes differential testing feasible in the model training phase by tailoring a set of metrics to measure the inconsistencies between different DL libraries. In this way, Muffin can best exercise the library code to detect more bugs. To evaluate the effectiveness of Muffin, we conduct experiments on three widely-used DL libraries. The results demonstrate that Muffin can detect 39 new bugs in the latest release versions of popular DL libraries, including Tensorflow, CNTK, and Theano.

View on arXivView PDF

Code Implementations(1)

TensorFlowApache-2.0

This is the implementation repository of our ICSE'22 paper: Muffin: Testing Deep Learning Libraries via Neural Architecture Fuzzing.

343PythonAug 27, 20214 years agoApache-2.0
deep-learning-libraryfuzzingkerastesting

Similar Papers

Cite this paper

@article{gu2022muffin,
  title  = {Muffin: Testing Deep Learning Libraries via Neural Architecture Fuzzing},
  author = {Jiazhen Gu and Xuchuan Luo and Yangfan Zhou and Xin Wang},
  year   = {2022},
  eprint = {2204.08734},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.08734}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.08734.svg)](https://codeofpaper.com/paper/2204.08734)

Discussion