On Hardware-efficient Inference in Probabilistic Circuits

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yao, Lingyun, Trapp, Martin, Leslin, Jelin, Singh, Gaurav, Zhang, Peng, Periasamy, Karthekeyan, Andraud, Martin
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913359510634496
author Yao, Lingyun
Trapp, Martin
Leslin, Jelin
Singh, Gaurav
Zhang, Peng
Periasamy, Karthekeyan
Andraud, Martin
author_facet Yao, Lingyun
Trapp, Martin
Leslin, Jelin
Singh, Gaurav
Zhang, Peng
Periasamy, Karthekeyan
Andraud, Martin
contents Probabilistic circuits (PCs) offer a promising avenue to perform embedded reasoning under uncertainty. They support efficient and exact computation of various probabilistic inference tasks by design. Hence, hardware-efficient computation of PCs is highly interesting for edge computing applications. As computations in PCs are based on arithmetic with probability values, they are typically performed in the log domain to avoid underflow. Unfortunately, performing the log operation on hardware is costly. Hence, prior work has focused on computations in the linear domain, resulting in high resolution and energy requirements. This work proposes the first dedicated approximate computing framework for PCs that allows for low-resolution logarithm computations. We leverage Addition As Int, resulting in linear PC computation with simple hardware elements. Further, we provide a theoretical approximation error analysis and present an error compensation mechanism. Empirically, our method obtains up to 357x and 649x energy reduction on custom hardware for evidence and MAP queries respectively with little or no computational error.
format Preprint
id arxiv_https___arxiv_org_abs_2405_13639
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle On Hardware-efficient Inference in Probabilistic Circuits
Yao, Lingyun
Trapp, Martin
Leslin, Jelin
Singh, Gaurav
Zhang, Peng
Periasamy, Karthekeyan
Andraud, Martin
Machine Learning
Probabilistic circuits (PCs) offer a promising avenue to perform embedded reasoning under uncertainty. They support efficient and exact computation of various probabilistic inference tasks by design. Hence, hardware-efficient computation of PCs is highly interesting for edge computing applications. As computations in PCs are based on arithmetic with probability values, they are typically performed in the log domain to avoid underflow. Unfortunately, performing the log operation on hardware is costly. Hence, prior work has focused on computations in the linear domain, resulting in high resolution and energy requirements. This work proposes the first dedicated approximate computing framework for PCs that allows for low-resolution logarithm computations. We leverage Addition As Int, resulting in linear PC computation with simple hardware elements. Further, we provide a theoretical approximation error analysis and present an error compensation mechanism. Empirically, our method obtains up to 357x and 649x energy reduction on custom hardware for evidence and MAP queries respectively with little or no computational error.
title On Hardware-efficient Inference in Probabilistic Circuits
topic Machine Learning
url https://arxiv.org/abs/2405.13639