AlphaTensor, developed by Google DeepMind, is the research codebase accompanying the 2022 Nature publication “Discovering faster matrix multiplication algorithms with reinforcement learning.” The project demonstrates how reinforcement learning can be used to automatically discover efficient algorithms for matrix multiplication — a fundamental operation in computer science and numerical computation. The repository is organized into four main components: algorithms, benchmarking, nonequivalence, and recombination. These contain implementations of the discovered matrix multiplication algorithms, tools to benchmark their real-world performance, proofs of nonequivalence among thousands of solutions, and methods for decomposing larger problems into smaller factorizations. Users can explore AlphaTensor’s discovered algorithms interactively using Colab notebooks or Python scripts.

Features

  • Implements algorithms for matrix multiplication discovered via reinforcement learning
  • Includes 14,000+ nonequivalent algorithms for 4×4 matrix multiplication problems
  • Provides Colab notebooks for interactive exploration and verification
  • Benchmarking scripts for performance evaluation on NVIDIA GPUs
  • Python tools for tensor recombination and algorithm decomposition
  • Reproducible experiments corresponding to the Nature 2022 publication

Project Activity

See All Activity >

Categories

Algorithms

License

Apache License V2.0

Follow AlphaTensor

AlphaTensor Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of AlphaTensor!

Additional Project Details

Operating Systems

Linux, Mac

Programming Language

Python

Related Categories

Python Algorithms

Registered

4 days ago