Capturing Semantic Flow of ML-based Systems
Not on the map. Why?
Abstract (arXiv)
ML-based systems are software systems that incorporates machine learning components such as Deep Neural Networks (DNNs) or Large Language Models (LLMs). While such systems enable advanced features such as high performance computer vision, natural language processing, and code generation, their internal behaviour remain largely opaque to traditional dynamic analysis such as testing: existing analysis typically concern only what is observable from the outside, such as input similarity or class label changes. We propose semantic flow, a concept designed to capture the internal behaviour of ML-based system and to provide a platform for traditional dynamic analysis techniques to be adapted to. Semantic flow combines the idea of control flow with internal states taken from executions of ML-based systems, such as activation values of a specific layer in a DNN, or embeddings of LLM responses at a specific inference step of LLM agents. The resulting representation, summarised as semantic flow graphs, can capture internal decisions that are not explicitly represented in the traditional control flow of ML-based systems. We propose the idea of semantic flow, introduce two examples using a DNN and an LLM agent, and finally sketch its properties and how it can be used to adapt existing dynamic analysis techniques for use in ML-based software systems.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 14 of its 27 references that are in the map. First posted on arXiv 13 Mar 2025.
Builds on
14 of 27 references.
References · 14
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,359
- 2015Understanding Neural Networks Through Deep Visualizationcited by 332
- 2017Interpretable Convolutional Neural Networkscited by 161
- 2018Guiding Deep Learning System Testing using Surprise Adequacycited by 123
- 2021Transformer visualization via dictionary learning: contextualized embedding as a linear superposition of transformer factorscited by 106
- 2023A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localizationcited by 50
- 2023LARP: Language-Agent Role Play for Open-World Gamescited by 24
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025Flow to Learn: Flow Matching on Neural Network Parameters
- 2025Feature Engineering for Agents: An Adaptive Cognitive Architecture for Interpretable ML Monitoring
- 2023LMFlow: An Extensible Toolkit for Finetuning and Inference of Large Foundation Models
- 2024Towards Automated Machine Learning Research
- 2025Flow-of-Options: Diversified and Improved LLM Reasoning by Thinking Through Options
- 2025MLE-Dojo: Interactive Environments for Empowering LLM Agents in Machine Learning Engineering
- 2026FlowBot: Inducing LLM Workflows with Bilevel Optimization and Textual Gradients
- 2026Dynamic Routing as a New Dimension for Test-time Versatility of LLMs