NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Circus of Circuits: Connections Between Decision Diagrams, Circuits, and Automata

Antoine Amarilli, Marcelo Arenas, YooJung Choi, Mikaël Monet, Guy Van den Broeck, Benjie WangarXiv 2024 · DOI

Abstract

In computer science, Boolean functions are represented through various specialized formalisms depending on the research community, including Binary Decision Diagrams (BDDs) in AI, Boolean circuits in complexity theory, and finite automata in formal language theory. This paper provides a "Rosetta stone" by establishing a unified framework that connects these representations. Through standardized terminology and linear-time translations, the authors demonstrate that these tools are different manifestations of the same underlying logical structures.

Introduction

Boolean functions—mappings from binary inputs to a true/false result—are fundamental across computer science. However, researchers in different subfields often work in silos, using distinct "languages" to represent these functions. AI researchers favor BDDs for tractable reasoning; complexity theorists use Boolean circuits to study computational limits; and formal language experts use automata to describe patterns. This fragmentation leads to redundant concepts and terminology. This work addresses this gap by providing a rigorous introduction to how properties like "determinism" in automata translate to "decision" in circuits, offering a cohesive view of the landscape.

A Unified Taxonomy

The core of the proposed framework is a classification of representations along two primary dimensions: Variable Structuredness and Ambiguity Level.

  1. Variable Structuredness: This refers to how strictly the variables are ordered within the representation. For instance, an Ordered BDD (OBDD) requires a fixed variable sequence, whereas a Free BDD (FBDD) allows variables to appear in any order along a path, provided each variable appears at most once.
  2. Ambiguity Level: This dimension distinguishes between nondeterministic, unambiguous, and deterministic representations.
Comparison between (a) a free binary decision diagram and (b) an ordered binary decision diagram.

This taxonomy allows for a direct mapping between BDD properties and circuit properties. For example, the "ordered" property in BDDs is shown to be a specific instance of "structuredness" in circuits, governed by variable trees (v-trees).

Formal Translations and Key Results

The paper proves that BDDs are essentially a restricted class of Boolean circuits. Specifically, any Negation Normal Form (NNF) circuit that adheres to certain "decision" rules is functionally equivalent to a BDD.

The authors provide a general linear-time algorithm to convert BDDs into Boolean circuits while preserving structural properties (Proposition 5.1):

  • Free BDDs map to Decomposable circuits (DNNF).
  • Ordered BDDs map to Structured circuits (SDNNF).
  • Deterministic BDDs map to Decision circuits.

Furthermore, the paper connects automata to circuits through the concept of "provenance." By fixing an input size $n$, an automaton can be "unrolled" into a circuit template. Propositions 6.2 and 6.3 establish that a provenance BDD can be built from a word automaton in $O(|A| \times n)$ time, and a provenance circuit from a tree automaton in $O(|A| \times |T|)$ time.

Key Insights

  • The v-tree Bridge: The v-tree serves as the critical link between BDDs and circuits, formalizing the notion of structuredness.
  • Automata as Templates: Automata are "uniform" representations (handling any input length), while circuits are "non-uniform." The unrolling process bridges this gap for specific input instances.
  • Syntactic vs. Semantic Properties: Desirable properties like decomposability are "syntactic" and easily verifiable by inspecting the graph. In contrast, properties like determinism in circuits are "semantic," depending on the underlying logic, and are often computationally intractable to verify.

Conclusion and Future Work

By unifying these disparate fields, the paper simplifies the landscape of Boolean function representation. However, challenges remain. While BDD-to-circuit translation is linear, the reverse (circuit-to-automata) is not straightforward due to the uniformity gap. Future research may extend this framework beyond binary logic to multivalued circuits or semirings, which are increasingly relevant in probabilistic databases and machine learning.

Summary updated

BibTeX
@misc{amarilli2024circus,
  author = {Antoine Amarilli and Marcelo Arenas and YooJung Choi and Mikaël Monet and Guy Van den Broeck and Benjie Wang},
  title = {{A Circus of Circuits: Connections Between Decision Diagrams, Circuits, and Automata}},
  year = {2024},
  eprint = {2404.09674},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.09674},
}
Figure