Skip to main content
QUICK REVIEW

[Paper Review] Hardware Acceleration of Explainable Machine Learning using Tensor Processing Units

Zhixin Pan, Prabhat Mishra|arXiv (Cornell University)|Mar 22, 2021
Advanced Neural Network ApplicationsComputer Science10 references4 citations
TL;DR

This paper proposes the first TPU-based hardware acceleration framework for explainable machine learning, leveraging matrix convolution and Fourier transform to convert complex interpretation tasks into efficient matrix operations. It achieves up to 38.6x speedup in classification and 12.8x in interpretation time over GPU-based methods, enabling real-time outcome explanation across diverse ML workloads.

ABSTRACT

Machine learning (ML) is successful in achieving human-level performance in various fields. However, it lacks the ability to explain an outcome due to its black-box nature. While existing explainable ML is promising, almost all of these methods focus on formatting interpretability as an optimization problem. Such a mapping leads to numerous iterations of time-consuming complex computations, which limits their applicability in real-time applications. In this paper, we propose a novel framework for accelerating explainable ML using Tensor Processing Units (TPUs). The proposed framework exploits the synergy between matrix convolution and Fourier transform, and takes full advantage of TPU's natural ability in accelerating matrix computations. Specifically, this paper makes three important contributions. (1) To the best of our knowledge, our proposed work is the first attempt in enabling hardware acceleration of explainable ML using TPUs. (2) Our proposed approach is applicable across a wide variety of ML algorithms, and effective utilization of TPU-based acceleration can lead to real-time outcome interpretation. (3) Extensive experimental results demonstrate that our proposed approach can provide an order-of-magnitude speedup in both classification time (25x on average) and interpretation time (13x on average) compared to state-of-the-art techniques.

Motivation & Objective

  • Address the critical bottleneck of slow interpretation in explainable machine learning (XML), which limits real-time deployment.
  • Overcome the inefficiency of existing XML methods that rely on iterative, time-consuming optimization problems.
  • Enable real-time outcome interpretation by exploiting TPU's native strength in accelerating matrix computations.
  • Develop a generalizable framework applicable across diverse ML algorithms and domains, such as image classification and malware detection.
  • Achieve significant speedup in both classification and interpretation phases through hardware-aware algorithm design.

Proposed method

  • Map the model distillation process in explainable ML to a linear algebra problem, transforming it into a series of matrix operations.
  • Leverage the synergy between matrix convolution and Fourier transform to simplify and accelerate interpretation computation.
  • Utilize TPU's systolic array architecture—specifically its 256×256 matrix multiply unit (MXU)—to perform ultra-fast 8-bit integer matrix multiplications.
  • Apply data decomposition to break large matrices into smaller sub-matrices, enabling efficient distribution across multiple MXUs and reducing bandwidth pressure.
  • Integrate model distillation with TPU-accelerated forward passes to generate contribution factors for input features, enabling outcome interpretation.
  • Design the framework to support both classification and interpretation as a single, optimized pipeline on TPU hardware.

Experimental results

Research questions

  • RQ1Can hardware acceleration using TPUs significantly reduce the time required for outcome interpretation in explainable machine learning?
  • RQ2Is it possible to reframe the model distillation process in XML as a matrix computation that can be efficiently executed on TPU?
  • RQ3How does the proposed TPU-based framework scale with increasing matrix size and model complexity?
  • RQ4To what extent can the proposed method outperform GPU-based state-of-the-art techniques in both classification and interpretation speed?
  • RQ5Can the framework provide interpretable, localized explanations (e.g., identifying key features like malware attack modes) while maintaining high performance?

Key findings

  • The proposed TPU-based framework achieves an average of 25x speedup in classification time compared to state-of-the-art GPU-based methods.
  • Interpretation time is accelerated by an average of 13x, with a peak speedup of 39.5x on the CIFAR-100 benchmark.
  • For 1024×1024 matrices, the proposed method is more than 30x faster than the baseline, demonstrating strong scalability.
  • The framework successfully identifies critical features such as the 'ATTACK_VECTOR' variable in MIRAI malware traces, providing actionable and interpretable insights.
  • The method reduces computation time from hours to seconds in large-scale neural network workloads, enabling real-time deployment of explainable AI.
  • The approach is generalizable and effective across diverse domains, including image classification (CIFAR-100) and malware detection (ResNet50).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.