Edward Z. Yang
· 3 previous affiliations
- Meta (United States)Since 2017
- Research Engineer · Since 2017
- Current
- Stanford University2012–2017
- PhD student · 2012–2017
- Undergrad student · 2008–2012
Research Overview
Edward Z. Yang focuses on the intersection of programming language design, functional programming, and machine learning systems. His work addresses the challenges of building robust, high-performance infrastructure for large-scale computation, with a particular emphasis on the PyTorch ecosystem and the Haskell programming language. Currently a Research Engineer at Meta (formerly Facebook AI Research), his research trajectory has evolved from formal methods and security in functional languages to the development of next-generation machine learning compilers and distributed training frameworks.
Research Trajectory
The early phase of Yang’s research was grounded in functional programming and systems security. During his doctoral studies at Stanford University and his undergraduate work at MIT, he focused on enhancing the modularity and safety of the Haskell ecosystem. A primary contribution of this period was the development of Backpack, a mix-in module system for Haskell that enables separate compilation and improves code reuse by allowing packages to be parameterized by signatures. This work addressed long-standing limitations in the Haskell module system, particularly the difficulty of linking different implementations of the same interface without incurring significant overhead or complexity.
Simultaneously, Yang explored systems security through the lens of Information Flow Control (IFC). He contributed to the development of COWL (Confinement with Origin Web Labels), a security model designed to protect user privacy in modern web browsers by confining JavaScript execution based on data provenance. His work in this area also extended to the Haskell runtime, where he investigated dynamic space limits to prevent memory exhaustion in untrusted code execution. These early projects established a recurring theme in his work: the application of rigorous programming language principles to solve practical systems-level problems.
Following the completion of his PhD in 2017, Yang transitioned to Facebook AI Research, where his focus shifted toward the infrastructure supporting deep learning. This period coincided with the rapid ascent of PyTorch as a dominant framework for machine learning research. Yang became a core contributor to the PyTorch project, moving from high-level library development to deep architectural interventions in the framework's core. His work began to bridge the gap between the "eager" execution model favored by researchers for its flexibility and the "graph-based" execution required for industrial-scale performance and deployment.
In recent years, Yang’s work has centered on the evolution of machine learning compilers and the challenges of Cross-Framework Discrepancies in Deep Learning. As deep learning models have grown in complexity, the overhead of Python-based execution has become a significant bottleneck. Yang’s contributions to the PyTorch 2.0 stack represent a major effort to resolve this by using dynamic bytecode transformation to capture computation graphs without requiring users to abandon standard Pythonic idioms. This trajectory reflects a broader shift in the field toward treating machine learning models not just as mathematical abstractions, but as complex programs that require sophisticated compiler support.
Current Directions
Yang’s current research is focused on three primary areas: compiler-driven optimization for machine learning, the formalization of control flow in tensor programs, and the establishment of rigorous benchmarking standards for training algorithms.
A central component of his current work is the refinement of the PyTorch compiler stack. This involves developing intermediate representations (IRs) that can effectively capture the semantics of tensor operations while remaining amenable to hardware-specific optimizations. A significant challenge in this domain is the representation of dynamic behavior. While early machine learning compilers often relied on static tracing—which unrolls loops and specializes conditional branches—Yang has advocated for more robust Control Flow Operators in PyTorch that allow the compiler to reason about data-dependent execution paths directly. This approach aims to reduce compilation times and improve performance for models with complex logic, such as those found in reinforcement learning or sequence modeling.
Furthermore, Yang is involved in efforts to improve the transparency and efficiency of neural network training. This includes participation in large-scale benchmarking initiatives like AlgoPerf, which seeks to evaluate training algorithms based on wall-clock time rather than just epoch-based convergence. This work intersects with the broader need for Efficient Benchmarking for Large Language Models, where the computational cost of validation can be prohibitive. By analyzing the performance of various optimizers, including those utilizing Efficient Curvature Approximation for Neural Network Training, Yang contributes to a more empirical understanding of which architectural and algorithmic choices lead to genuine improvements in training efficiency.
Representative Work
Backpack: towards practical mix-in linking in Haskell As the lead author of this work, Yang introduced a new module system for Haskell that supports mix-in linking. Backpack allows developers to write "agnostic" packages that depend on interfaces (signatures) rather than concrete implementations. This enables a form of modularity previously difficult to achieve in Haskell, allowing for the substitution of different backends or implementations at link-time without recompiling the entire dependency tree. The system was eventually integrated into the Glasgow Haskell Compiler (GHC) and the Cabal package manager.
PyTorch 2: Faster Machine Learning Through Dynamic Python Bytecode Transformation and Graph Compilation In this significant collaborative effort, Yang served as a primary author in the development of PyTorch 2.0. The paper details the architecture of TorchDynamo, a Python-level compiler that intercepts execution at the bytecode level to generate optimized kernels. This work represents a fundamental shift in PyTorch’s design, moving toward a "compiler-first" approach that maintains the framework's signature ease of use while achieving performance gains comparable to static graph frameworks.
Control Flow Operators in PyTorch This work addresses the limitations of tracing-based machine learning compilers. Yang and his collaborators present a library of control flow operators designed to handle dynamic branching and loops within the PyTorch compiler stack. By providing a structured way to represent these operations in the intermediate representation, the work avoids the performance penalties and long compilation times associated with loop unrolling and predicate specialization, particularly in models where control flow depends on dynamic tensor shapes or data.
Accelerating neural network training: An analysis of the AlgoPerf competition Yang participated in this comprehensive analysis of the inaugural AlgoPerf competition. The study evaluates various deep learning training algorithms based on the wall-clock time required to reach specific performance targets across diverse workloads. The findings highlight the efficacy of non-diagonal preconditioning and the increasing competitiveness of hyperparameter-free algorithms, contributing to the development of more automated and efficient training pipelines.
PyTorch RPC: Distributed Deep Learning Built on Tensor-Optimized Remote Procedure Calls In this collaborative project, Yang contributed to the design and implementation of the PyTorch RPC framework. The system provides a foundation for distributed training by allowing for remote function execution and distributed reference counting of tensors. This infrastructure is critical for scaling large-scale models that exceed the memory capacity of a single node, supporting complex distributed patterns beyond simple data parallelism.
Torchaudio: Building Blocks for Audio and Speech Processing Yang was part of the team that developed Torchaudio, a domain-specific library within the PyTorch ecosystem. The library provides standardized tools for audio signal processing, including data loading, common transformations, and model architectures tailored for speech and sound. His participation in this project reflects his broader engagement with the PyTorch community to provide high-performance, specialized primitives for diverse machine learning domains.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake