Google AI Rewrites AV1 Decoder, Reports 20% Speed Gain

Google reports that its AI system rewrote the libgav1 AV1 decoder in Rust, matching test outputs and running 20% to 30% faster than the original code on sample clips.

Google’s Antigravity /teamwork AI system rewrote the libgav1 AV1 video decoder in Rust, according to an engineering update published Nov. 13, 2026. The rewritten code matched the original decoder’s output in conformance tests and ran 20% to 30% faster on sample video clips.

The Rust version contains about 170,000 lines of code. Google reported 100% bit-exact parity across a broad conformance-test suite, meaning it produced the same outputs as the established implementation in the tested cases.

The first Rust port ran about four times slower than the C++ version. Google then gave the AI system profiling tools and a goal of improving speed on the sample clips. The system used the profiling results to identify sections that took the most time and optimize the rewrite.

Google reported the speed advantage on both x86_64 and ARM systems. The company did not disclose the processor models, compiler settings, build options, video clips, thread counts or timing distributions used in the comparison.

The conformance tests and performance benchmarks measured different results. The tests checked whether the Rust decoder preserved the original implementation’s behavior. The sample-clip benchmarks measured processing speed for selected videos. Google did not report results for every possible input or software environment.

Google described the project as a collaboration between AI systems and human researchers. People set the questions and constraints, while the agents generate alternatives, run tests and investigate performance. For broader code rewrites, Google described a process in which modules are handled after their dependencies compile. Lower-level modules are tested against the original, unchanged test suite.

The decoder work follows a Sept. 30, 2026, report about Google’s Argon system. In that report, Google said Argon optimized an existing Rust version of libgav1 to run 2.7 times faster than that Rust implementation. The September comparison used a different baseline from the November report, which compares the new Rust rewrite with C++ and hand-optimized assembly code.

The libgav1 repository linked by Google still documents a C++17 and CMake build, including architecture-specific optimization options. Google’s Nov. 13 update did not say that the documented implementation had been replaced by the Rust version. It also did not announce production deployment or provide a reproduction package for the benchmark.

Articles by this author