Grounding Deep Learning Framework Testing in Data Flow
summary
The gist
The gist The FlowMuT method introduces a mutation-based testing technique grounded in data flow, utilizing a Tensor Flow Graph (TFG) to capture runtime tensor states and operator input requirements
In short
FlowMuT is a mutation-based testing technique for deep learning frameworks that uses a Tensor Flow Graph (TFG) to track data flow and operator requirements during execution. It systematically generates and selects mutations based on this flow information, successfully detecting 79 bugs compared to 28 in the strongest baseline. This method significantly improves bug detection, diversity, and coverage.
Key concepts
- Tensor Flow Graph (TFG)
- The TFG is a map of a model's execution. Nodes represent operators, and edges show the tensors flowing between them. It records not just the order of operations but also the runtime values and properties of these tensors, which is essential for understanding how data moves through the network during testing.
- Data Flow Representation
- This concept focuses on tracking how data moves between different parts of a deep learning model. By capturing tensor states and operator inputs, it allows the method to understand the dependencies within the framework execution, making it possible to construct meaningful mutations that test specific data pathways.
- Mutation Operator Pool
- This pool is a collection of operators used for testing. It combines standard operators with new ones derived directly from the TFG structure. This pool is validated and fixed, ensuring that every mutation candidate has been checked against constraints related to the model's inputs, internal state, and outputs.
- LinUCB Selection
- LinUCB is an algorithm used to guide which mutation to select next. It uses features like coverage and impact scores derived from the TFG to intelligently choose the most informative mutation candidate. This guided selection leads to higher test case diversity and better framework coverage.
Terminology used across episodes
This episode discusses
- Grounding Deep Learning Framework Testing in Data Flow · Paper Radio
- Intel nGraph: An Intermediate Representation, Compiler, and Executor for Deep Learning
- RTMPose: Real-Time Multi-Person Pose Estimation based on MMPose
- RT-DETRv2: Improved Baseline with Bag-of-Freebies for Real-Time Detection Transformer
- Qwen2.5 Technical Report
- Glow: Graph Lowering Compiler Techniques for Neural Networks
The paper
Grounding Deep Learning Framework Testing in Data Flow · Read on arXiv
CHUNRONG FANG, YANZHOU MU, YINGLONG ZOU, YIBO HU, ZHENYU CHEN
State Key Laboratory for Novel Software Technology, Nanjing University
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: Today's paper: "Grounding Deep Learning Framework Testing in Data Flow".
Jane: The gist The FlowMuT method introduces a mutation-based testing technique grounded in data flow,
Tom: First, who's behind it and why it matters.
Paper summary: Tom: So, to recap, the core thesis of "Grounding Deep Learning Framework Testing in Data Flow" is that we need to look at more than just the model structure when testing deep learning frameworks. They point out that existing methods only capture the operator topology, which misses vital information like runtime tensor values and properties >
Jane: And they propose using a Tensor Flow Graph, or TFG, to record this data flow information. This graph captures the operator topology and also details what is carried on each edge, which includes those tensor values and their properties >
Lu: They then use this TFG to guide the testing process. They build mutation candidates by pairing operators with specific sites in the TFG using a new algorithm, and they filter out illegal mutations based on input, internal, and output constraints >
Meng: I’m wondering how they actually manage building that TFG for a seed model efficiently enough to do this iteratively across many test cases >
Tom: They claim their method combines CG-derived operators with TFG-derived ones into a fixed pool of one hundred forty-seven validated mutation operators after deduplication and validation >
Jane: And they use this pool along with LinUCB selection to guide the process, using coverage and impact features to pick the best mutations >
Lu: They found that this approach helps address challenges like achieving data flow diversity, which is something existing methods struggle with because they only consider structural information about the model >
Tom: The results are pretty strong. FlowMuT detected seventy-nine bugs compared to twenty-eight for the strongest baseline, and it achieved a legal mutant rate of ninety-six point seven percent with those data flow constraints >
Conclusion: Jane: So, wrapping up this discussion on "Grounding Deep Learning Framework Testing in Data Flow," we're looking at how this method changes how we test deep learning frameworks by focusing on the actual data movement during execution rather than just the structure of the model >
Tom: Yeah, it’s about moving from a static view to a dynamic view of computation. The authors are showing that incorporating data flow information into testing significantly improves bug detection and diversity metrics compared to older methods >
Lu: What this means for the field is that we can start building testing methods that are truly grounded in how deep learning frameworks actually run, not just how they look on paper >
Meng: From a deployment standpoint, if you can test based on runtime data flow constraints, it might mean fewer surprises when models move from training to actual inference at scale >
Tom: It’s about making the testing process more robust by using those data flow signatures to select relevant mutations and ensure we’re exercising new behavior in the model >
Jane: So, this paper suggests that for deep learning framework testing, the key is grounding it in data flow information to find bugs that structural methods simply overlook >
More episodes
- 2610.15284-FragFlex: Fragment-Based Flexible Molecular Generation for Exploring Vast Chemical Space
- 2610.15225-Zeroth-Order Fine-Tuning of LLMs in Learnable Low-Rank Subspaces
- 2610.15241-Explicit Bounds on Hoffman Constants for Sparse Polyhedral Regularizers
- 2610.15250-Correlation-Aware Reconstruction for Multivariate Time Series Anomaly Detection
- 2610.15368-ANTE: Anticipate, Then Execute -- Learning Internal World Models for Coding Agents from Verified Beliefs
- 2610.15391-DC-Flow: Target-Conditioned Cyclic Peptide Design via Delayed-Coupling Flow Matching
- 2610.15379-LiveAnon: Improving Privacy and Utility in Streaming Speaker Anonymization with Codec Language Models
- 2610.15097-Anchors Enhance Controllability and Reasoning of Diffusion Language Models
- 2610.15398-GA-SVD: Generation-aware Singular Value Decomposition for LLM Compression
- 2610.15106-RELAGRAM: Recursive Latent Graph Model for the Capacitated Vehicle Routing Problem