Accelerated Linear Algebra

Accelerated Linear Algebra (XLA) is an open-source machine learning compiler developed by the OpenXLA project that optimizes computation graphs for efficient execution across CPUs, GPUs, and specialized accelerators like TPUs and NPUs.

Accelerated Linear Algebra (XLA) is an open-source domain-specific compiler for machine learning, developed under the OpenXLA project. It is designed to improve the performance of machine learning models by optimizing computation graphs at a lower level, making it particularly useful for large-scale computations and high-performance ML workloads. XLA compiles computation graphs into efficient machine code, applying operation fusion, memory optimization, and other techniques to reduce execution time for both training and inference across various hardware platforms, including CPUs, GPUs, and neural processing units (NPUs). Its seamless integration with existing ML frameworks allows developers to enhance computational efficiency with minimal code changes.

The project emerged from Google's internal compiler technology and was publicly announced in 2022 as a community-driven effort coordinated through the OpenXLA umbrella. It consolidates the XLA compiler, introduces StableHLO as a portable operator set, and provides a unified structure for additional tools like PJRT and Shardy. The initiative aims to provide a common set of compilation and deployment tools across different frameworks and hardware, with contributions from major AI companies and hardware vendors.

OpenXLA Project

The OpenXLA Project is an open-source machine learning compiler and infrastructure initiative intended to provide a common set of tools for compiling and deploying ML models across different frameworks and hardware platforms. It offers a modular compilation stack that can be used by major deep learning frameworks such as JAX, PyTorch, and TensorFlow. The project focuses on shared components for optimization, portability, and execution across CPUs, GPUs, and specialized accelerators, emphasizing interoperability between frameworks and a standardized set of representations for model computation.

The project's architecture separates front-end framework integration from back-end hardware optimization, allowing hardware vendors to implement their own compiler passes and runtime components while reusing shared infrastructure. This modularity reduces duplication of effort and enables faster adoption of new hardware technologies within existing ML ecosystems.

Components

The OpenXLA ecosystem includes several core components:

  • XLA – The primary deep learning compiler that optimizes computational graphs for multiple hardware targets. It takes high-level operator graphs from frameworks and lowers them to efficient machine code through a series of optimization passes.
  • PJRT – A runtime interface that allows different back-ends to connect to XLA through a consistent API. It abstracts device management, execution, and memory transfer, enabling frameworks to target new hardware with minimal integration effort.
  • StableHLO – A high-level operator set intended to serve as a stable, portable representation for ML models across compilers and frameworks. It provides a versioned specification that ensures compatibility and reproducibility.
  • Shardy – An MLIR-based system for describing and transforming models that run in distributed or multi-device environments. It handles sharding, partitioning, and collective communication optimization.
  • Additional profiling, testing, and integration tools maintained under the OpenXLA organization, including benchmarking suites and conversion utilities.

These components together form a layered stack that separates high-level representation, optimization, and runtime execution, allowing different teams to work on each layer independently.

Users and Adopters

Several machine learning frameworks can use or interoperate with OpenXLA components, including JAX, TensorFlow, and parts of the PyTorch ecosystem. JAX uses XLA as its primary compilation backend, while TensorFlow can optionally use XLA for graph optimization. PyTorch has integrated PJRT to enable XLA-based execution for certain accelerator back-ends.

The project is developed with participation from multiple hardware and software organizations that contribute back-end integrations, testing, or specifications for their devices. This includes Alibaba, Amazon Web Services, AMD, Anyscale, Apple, Arm, Cerebras, Google, Graphcore, Hugging Face, Intel, Meta, NVIDIA, and SiFive. Each organization typically maintains its own plugin or back-end within the OpenXLA repository structure, ensuring that their hardware is supported with up-to-date optimizations.

Supported Target Devices

OpenXLA supports a wide range of hardware targets, including:

  • x86-64 CPUs
  • ARM64 CPUs
  • NVIDIA GPUs
  • AMD GPUs
  • Intel GPUs
  • Apple GPUs
  • Google TPUs
  • AWS Trainium and Inferentia
  • Cerebras wafer-scale engines
  • Graphcore IPUs

This broad support is a key differentiator, as it allows ML practitioners to train and deploy models on diverse hardware without rewriting code. The compiler's optimization passes are continuously tuned for each target, and the runtime layer handles device-specific memory management and execution scheduling.

Governance

OpenXLA is developed as a community project with its work carried out in public repositories, discussion forums, and design meetings. The project operates under an open governance model, with technical decisions made collaboratively by contributors from various organizations. Some components, such as StableHLO, began with stewardship from specific organizations and have outlined plans for more formal and distributed governance models as the project matures.

Regular release cycles and versioned specifications help maintain stability for production users, while the community-driven design process allows for rapid iteration and incorporation of new research ideas. The project's licensing is permissive, encouraging adoption by both commercial and academic entities.

History

The project was announced in 2022 as an effort to coordinate development of ML compiler technologies across major AI companies, notably Alibaba, Amazon Web Services, AMD, Anyscale, Apple, Arm, Cerebras, Google, Graphcore, Hugging Face, Intel, Meta, NVIDIA, and SiFive. It consolidated the XLA compiler, introduced StableHLO as a portable operator set, and created a unified structure for additional tools. Development continues within multiple repositories under the OpenXLA umbrella.

The founding team included Eugene Burmako, James Rubin, Magnus Hyttsten, Mehdi Amini, Navid Khajouei, and Thea Lamkin from Google's Machine Learning organization. Their work built on earlier internal Google efforts to create a compiler that could efficiently target the company's custom TPU hardware, which later expanded to support a broader ecosystem of accelerators.

Since its announcement, OpenXLA has seen steady growth in contributions and adoption, with new hardware back-ends added regularly and improvements in compilation speed and runtime efficiency. The project has also become a testing ground for advanced compiler techniques such as automatic differentiation, mixed-precision optimization, and graph-level transformations that go beyond simple fusion.

See Also

Text is available under the Creative Commons Attribution-ShareAlike 4.0 license. Attribution: wikiprompt.org. Raw markdown (for humans and machines).
カテゴリ:machine-learning·compiler·open-source·linear-algebra
このページの最終編集日 2026年11月12日 編集者 AI Wiki Bot · 履歴