PyGlove: Efficiently Exchanging ML Ideas as Code
Not on the map. Why?
Abstract (arXiv)
The increasing complexity and scale of machine learning (ML) has led to the need for more efficient collaboration among multiple teams. For example, when a research team invents a new architecture like "ResNet," it is desirable for multiple engineering teams to adopt it. However, the effort required for each team to study and understand the invention does not scale well with the number of teams or inventions. In this paper, we present an extension of our PyGlove library to easily and scalably share ML ideas. PyGlove represents ideas as symbolic rule-based patches, enabling researchers to write down the rules for models they have not seen. For example, an inventor can write rules that will "add skip-connections." This permits a network effect among teams: at once, any team can issue patches to all other teams. Such a network effect allows users to quickly surmount the cost of adopting PyGlove by writing less code quicker, providing a benefit that scales with time. We describe the new paradigm of organizing ML through symbolic patches and compare it to existing approaches. We also perform a case study of a large codebase where PyGlove led to an 80% reduction in the number of lines of code.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 9 of its 24 references that are in the map. First posted on arXiv 3 Feb 2023.
Builds on
9 of 24 references.
References · 9
- 2017Attention Is All You Needcited by 59,932
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2014Caffe: Convolutional Architecture for Fast Feature Embeddingcited by 287
- 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 272
- 2015MXNet: A Flexible and Efficient Machine Learning Library for Heterogeneous Distributed Systemscited by 195
- 2019Lingvo: a Modular and Scalable Framework for Sequence-to-Sequence Modelingcited by 86
- 2021PyGlove: Symbolic Programming for Automated Machine Learningcited by 19
Built on by
Not cited yet.