Training binary classifiers as data structure invariants
Training binary classifiers as data structure invariants
Archivos
Fecha
2019-05
Autores
Molina, Facundo
Degiovanni, Renzo
Ponzio, Pablo
Regis, Germán
Aguirre, Nazareno
Frías, Marcelo
Título de la revista
ISSN de la revista
Título del volumen
Editor
Resumen
"We present a technique to distinguish valid from invalid data structure objects. The technique is based on building an artificial neural network, more precisely a binary classifier, and training it to identify valid and invalid instances of a data structure. The obtained classifier can then be used in place of the data structure’s invariant, in order to attempt to identify (in)correct behaviors in programs manipulating the structure. In order to produce the valid objects to train the network, an assumed-correct set of object building routines is randomly executed. Invalid instances are produced by generating values for object fields that “break” the collected valid values, i.e., that assign values to object fields that have not been observed as feasible in the assumed-correct executions that led to the collected valid instances. We experimentally assess this approach, over a benchmark of data structures.We show that this learning technique produces classifiers that achieve significantly better accuracy in classifying valid/invalid objects compared to a technique for dynamic invariant detection, and leads to improved bug finding."