Probing Model Signal-Awareness via Prediction-Preserving Input Minimization
Not on the map. Why?
Abstract (arXiv)
This work explores the signal awareness of AI models for source code understanding. Using a software vulnerability detection use case, we evaluate the models' ability to capture the correct vulnerability signals to produce their predictions. Our prediction-preserving input minimization (P2IM) approach systematically reduces the original source code to a minimal snippet which a model needs to maintain its prediction. The model's reliance on incorrect signals is then uncovered when the vulnerability in the original code is missing in the minimal snippet, both of which the model however predicts as being vulnerable. We measure the signal awareness of models using a new metric we propose- Signal-aware Recall (SAR). We apply P2IM on three different neural network architectures across multiple datasets. The results show a sharp drop in the model's Recall from the high 90s to sub-60s with the new metric, highlighting that the models are presumably picking up a lot of noise or dataset nuances while learning their vulnerability detection logic. Although the drop in model performance may be perceived as an adversarial attack, but this isn't P2IM's objective. The idea is rather to uncover the signal-awareness of a black-box model in a data-driven manner via controlled queries. SAR's purpose is to measure the impact of task-agnostic model training, and not to suggest a shortcoming in the Recall metric. The expectation, in fact, is for SAR to match Recall in the ideal scenario where the model truly captures task-specific signals.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). First posted on arXiv 25 Nov 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 2; 2023: 2; 2024: 1; 2025: 4.
14 papers.
Sort:
By area:
- 2025Reducing Cost of LLM Agents with Trajectory Reductioncited by 48
- 2021Counterfactual Explanations for Models of Codecited by 25
- 2021Understanding Neural Code Intelligence Through Program Simplificationcited by 22
- 2021Memorization and Generalization in Neural Code Intelligence Modelscited by 19
- 2024Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanationcited by 12
- 2025The Hidden Cost of Readability: How Code Formatting Silently Consumes Your LLM Budgetcited by 12
- 2022Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Modelscited by 7
- 2021Code2Snapshot: Using Code Snapshots for Learning Representations of Source Codecited by 4
- 2023Study of Distractors in Neural Models of Codecited by 2
- 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspectioncited by 1
- 2023Redundancy and Concept Analysis for Code-trained Language Modelscited by 1
- 2022Extracting Label-specific Key Input Features for Neural Code Intelligence Modelscited by 0
- 2025From User Interface to Agent Interface: Efficiency Optimization of UI Representations for LLM Agents15 Dec 2025
- 2025Reducing Cost of LLM Agents with Trajectory Reduction28 Sep 2025
- 2025The Hidden Cost of Readability: How Code Formatting Silently Consumes Your LLM Budget19 Aug 2025
- 2025LEANCODE: Understanding Models Better for Code Simplification of Pre-trained Large Language Models20 May 2025
- 2024Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation24 Apr 2024
- 2023Redundancy and Concept Analysis for Code-trained Language Models1 May 2023
- 2023Study of Distractors in Neural Models of Code3 Mar 2023
- 2022Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Models28 May 2022
- 2022Extracting Label-specific Key Input Features for Neural Code Intelligence Models14 Feb 2022
- 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspection10 Nov 2021
- 2021Counterfactual Explanations for Models of Code10 Nov 2021
- 2021Code2Snapshot: Using Code Snapshots for Learning Representations of Source Code1 Nov 2021
2 more
- 2021Counterfactual Explanations for Models of Codecited by 25
- 2021Understanding Neural Code Intelligence Through Program Simplificationcited by 22
- 2021Memorization and Generalization in Neural Code Intelligence Modelscited by 19
- 2024Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanationcited by 12
- 2022Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Modelscited by 7
- 2021Code2Snapshot: Using Code Snapshots for Learning Representations of Source Codecited by 4
- 2023Study of Distractors in Neural Models of Codecited by 2
- 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspectioncited by 1
- 2023Redundancy and Concept Analysis for Code-trained Language Modelscited by 1
- 2022Extracting Label-specific Key Input Features for Neural Code Intelligence Modelscited by 0
- 2025LEANCODE: Understanding Models Better for Code Simplification of Pre-trained Large Language Modelscited by 0
- 2025LEANCODE: Understanding Models Better for Code Simplification of Pre-trained Large Language Models20 May 2025
- 2024Graph Neural Networks for Vulnerability Detection: A Counterfactual Explanation24 Apr 2024
- 2023Redundancy and Concept Analysis for Code-trained Language Models1 May 2023
- 2023Study of Distractors in Neural Models of Code3 Mar 2023
- 2022Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Models28 May 2022
- 2022Extracting Label-specific Key Input Features for Neural Code Intelligence Models14 Feb 2022
- 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspection10 Nov 2021
- 2021Counterfactual Explanations for Models of Code10 Nov 2021
- 2021Code2Snapshot: Using Code Snapshots for Learning Representations of Source Code1 Nov 2021
- 2021Memorization and Generalization in Neural Code Intelligence Models16 Jun 2021
- 2021Understanding Neural Code Intelligence Through Program Simplification7 Jun 2021