DARPA Case Study: Up to 100x Faster Sparse Arrays | OpenTeams Under DARPA contract HR001123C0139, OpenTeams and Quansight, working with MIT, integrated PyData/Sparse with the Tensor Algebra Compiler (TACO) and the Finch framework, demonstrating a 100x speedup on sparse array benchmarks while changing fewer than 5% of lines of code. The project adopted TACO's concrete index notation, iteration graphs and merge lattices to optimize sparse loop kernels, and enabled JIT compilation via Julia/LLVM and MLIR to target x86-64, ARM, PowerPC and CUDA GPUs. The work aims to make sparse data processing in Python as accessible and performant as dense processing across NumPy, SciPy and scikit-learn APIs. Most world data is stored in multi-dimensional arrays or tensors, much of which is inherently sparse. Traditional Python processing either treats sparse data as dense, incurring high computational overhead, or forces complex format transformations. Under DARPA contract HR001123C0139, OpenTeams and Quansight partnered with MIT to integrate PyData/Sparse with the Tensor Algebra Compiler TACO and Finch framework. The project successfully demonstrated a 100x speedup on sparse array benchmarks, while requiring <5% lines of code changed. Lines of code changed The primary objective was to make sparse data processing in Python as accessible, performant, and device-agnostic as dense processing across standard APIs NumPy, SciPy, scikit-learn . Key pillars included: Adopted TACO’s concrete index notation, iteration graphs, and merge lattices to optimize sparse loop kernels. Enabled JIT compilation via Julia/LLVM and MLIR to target multiple architectures x86-64, ARM, PowerPC, CUDA GPUs . 01 02 03 for sampled matrix multiplication A @ B C for matrix multiplication Benchmarks, deep dives, and lessons from OpenTeams. Get the OpenTeams newsletter once a month, or follow the feed. By subscribing, you agree to get the OpenTeams newsletter. Unsubscribe anytime. Privacy policy https://openteams.com/privacy-policy/ We build and maintain the open source tools your team already uses, and we can tune them for your workloads. We use cookies to improve your experience on this website. You may choose which types of cookies to allow and change your preferences at any time. Disabling cookies may impact your experience on this website. You can learn more by viewing our Cookie Policy.