Data-aware Static Analysis: Improving Detection of Semantic Faults in Machine Learning Code Using Data Characteristics

Willem Meijer, Kristian Sandahl, Dániel Varró
6/8/2026
cs.SEcs.LG

No confident code implementation found for this paper.

Abstract

Semantic faults specific to the use of machine learning models are a common problem for machine learning developers, causing suboptimal predictions, high computational cost, or incorrect outputs. For example, one may erroneously use unscaled data to train a scale-sensitive model.

Show full abstract

Machine learning developers detect these faults after training their models and manually analyzing the results, making it an inefficient process. We propose a novel data-aware static analysis approach to detect semantic faults in machine learning code, allowing developers to reveal these bugs while writing code instead of after training the model. Our approach uses combined data and control flow analysis, and API contracts, enabling data-aware reasoning about machine learning code at a high level of abstraction. We highlight the potential of our solution by analyzing a sample of real-world machine learning notebooks, finding that we can detect faults that require a data-aware approach.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{meijer2026dataaware,
  title  = {Data-aware Static Analysis: Improving Detection of Semantic Faults in Machine Learning Code Using Data Characteristics},
  author = {Willem Meijer and Kristian Sandahl and Dániel Varró},
  year   = {2026},
  eprint = {2606.09957},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.09957v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.09957.svg)](https://codeofpaper.com/paper/2606.09957)

Discussion