On Functional Test Generation for Deep Neural Network IPs

Bo Luoa, Yu Lib, Lingxiao Weic and Qiang Xud
The Chinese University of Hong Kong, Shatin, N.T., Hong Kong
aboluo@cse.cuhk.edu.hk
byuli@cse.cuhk.edu.hk
clxwei@cse.cuhk.edu.hk
dqxu@cse.cuhk.edu.hk

ABSTRACT


Machine learning systems based on deep neural networks (DNNs) produce state-of-the-art results in many applications. Considering the large amount of training data and know-how required to generate the network, it is more practical to use third-party DNN intellectual property (IP) cores for many designs. No doubt to say, it is essential for DNN IP vendors to provide test cases for functional validation without leaking their parameters to IP users. To satisfy this requirement, we propose to effectively generate test cases that activate parameters as many as possible and propagate their perturbations to outputs. Then the functionality of DNN IPs can be validated by only checking their outputs. However, it is difficult considering large numbers of parameters and highly non-linearity of DNNs. In this paper, we tackle this problem by judiciously selecting samples from the DNN training set and applying a gradient-based method to generate new test cases. Experimental results demonstrate the efficacy of our proposed solution.



Full Text (PDF)