Dynamic Control Flow in Large-Scale Machine Learning
Not on the map. Why?
Abstract (arXiv)
Many recent machine learning models rely on fine-grained dynamic control flow for training and inference. In particular, models based on recurrent neural networks and on reinforcement learning depend on recurrence relations, data-dependent conditional execution, and other features that call for dynamic control flow. These applications benefit from the ability to make rapid control-flow decisions across a set of computing devices in a distributed system. For performance, scalability, and expressiveness, a machine learning system must support dynamic control flow in distributed and heterogeneous environments. This paper presents a programming model for distributed machine learning that supports dynamic control flow. We describe the design of the programming model, and its implementation in TensorFlow, a distributed machine learning system. Our approach extends the use of dataflow graphs to represent machine learning models, offering several distinctive features. First, the branches of conditionals and bodies of loops can be partitioned across many machines to run on a set of heterogeneous devices, including CPUs, GPUs, and custom ASICs. Second, programs written in our model support automatic differentiation and distributed gradient computations, which are necessary for training machine learning models that use control flow. Third, our choice of non-strict semantics enables multiple loop iterations to execute in parallel across machines, and to overlap compute and I/O operations. We have done our work in the context of TensorFlow, and it has been used extensively in research and production. We evaluate it using several real-world applications, and demonstrate its performance and scalability.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 May 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 1; 2023: 0; 2024: 2; 2025: 1; 2026: 1.
8 papers.
- 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 890
- 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Managementcited by 242
- 2022Pathways: Asynchronous Distributed Dataflow for MLcited by 81
- 2021Classification of Abnormal Hand Movement for Aiding in Autism Detection: Machine Learning Studycited by 10
- 2021DistIR: An Intermediate Representation and Simulator for Efficient Neural Network Distributioncited by 2
- 2025Tempo: Compiled Dynamic Deep Learning with Symbolic Dependence Graphscited by 1
- 2024Recursive Function Definitions in Static Dataflow Graphs and their Implementation in TensorFlowcited by 0
- 2026Relaxed activation analysis of dataflow networks - A clock calculus for machine learning and real-time schedulingcited by 0
- 2026Relaxed activation analysis of dataflow networks - A clock calculus for machine learning and real-time scheduling23 Jul 2026
- 2025Tempo: Compiled Dynamic Deep Learning with Symbolic Dependence Graphs9 Jan 2025
- 2024Recursive Function Definitions in Static Dataflow Graphs and their Implementation in TensorFlow26 Oct 2024
- 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Management28 Jun 2024
- 2022Pathways: Asynchronous Distributed Dataflow for ML23 Mar 2022
- 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Experts13 Dec 2021
- 2021DistIR: An Intermediate Representation and Simulator for Efficient Neural Network Distribution9 Nov 2021
- 2021Classification of Abnormal Hand Movement for Aiding in Autism Detection: Machine Learning Study18 Aug 2021