Faultless: A Program Equivalence Technique for Validating and Evaluating Neural Decompilers
Luke Dramko, Claire Le Goues, Edward Schwartz
Abstract
Neural decompilers are machine learning models which perform the process of decompilation, lifting code from a lower-level language to a higher one. Neural decompilers offer substantial utility relative to traditional deterministic decompilers because they can probabilistically recover information discarded during lowering, like variable names, types, and control flow structuring. However, they can also make mistakes, producing code that is not equivalent to the original, making it difficult to trust their output. In this work, we introduce Faultless, a program equivalence technique for performing translation validation on neural decompilers. Faultless compares code produced by a deterministic decompiler, which has stronger correctness properties, with that of a neural decompiler. Faultless is also useful for model evaluation, a highly related task, in which the neural decompilers' prediction is compared with a reference solution. Neural decompilation introduces significant challenges to the task of program equivalence which existing techniques are not equipped to handle, including limited extrafunctional context and systematic semantic inconsistencies in decompiled code. Faultless takes a static symbolic execution-based approach with an execution model and memory model designed to handle these challenges.
Create a lesson
Related papers
Structure-Aware Equivalence for Evaluating Autoformalized Statements
Shared title terminology · Yi Yu, Yu-Hsuan Wu, Guang Lin et al.
Decompiling Quantum Assembly into Structured Programs
Shared title terminology · Pingchuan Ma, Zhantong Xue, Zongjie Li et al.
Irene: Equivalence Checking of Hybrid Quantum Programs via Structure-Preserving Symbolic Reduction
Shared title terminology · Jingyu Ke, Jingyang Li, Guoqiang Li
The Output-Space Hypothesis: Enumerative Equivalence Checking for Tensor Programs
Shared title terminology · Paul Biberstein, Joseph Devietti, Mayur Naik
SimP: Unifying Syntax- and Semantic-Guided Techniques for Efficient Program Reduction
Shared title terminology · Ye Xiong, Xiangyu Gao, Qiaochu Chen et al.
Tenon: A Unified Programming Framework for Retargetable PIM Compilation
Shared title terminology · Niansong Zhang, Shiran Guo, Zhiru Zhang