DFEPT: Enhancing Vulnerability Detection in Pre-trained Models with Data Flow EmbeddingDFEPT: Data Flow Embedding for Enhancing Pre-Trained Model Based Vulnerability Detection
AI summary
The researchers propose a data flow embedding technique, DFEPT, which parses data flow graphs from function-level source code, uses variable data types as node features, and supplements relative position information with sinusoidal positional encoding, providing vulnerability data flow information to pre-trained code models to enhance vulnerability detection. The method achieves 64.97% accuracy on the Devign dataset and an F1 score of 47.9% on the Reveal dataset.