Small Hazard-free Transducers
Johannes Bund, Christoph Lenzen, Moti Medina
TL;DR
This work addresses the challenge of hazard-free circuit design for transcription functions derived from finite-state transducers. By introducing a universal encoding that tracks possible state-set reachability under metastable inputs, the authors extend the parallel-prefix computation framework to hazard-free settings and prove that constant-size transducers admit hazard-free implementations with size $\mathcal{O}((\kappa^3 + (2^{\ell}/\ell)\kappa^2 + 2^{\ell}\kappa\lambda)n)$ and depth $\mathcal{O}(\log\kappa\log n + \ell)$, where $\kappa$ and $\lambda$ depend on the transducer size $|S|$, input encoding $\ell$, and output width $m$. They establish associativity for hazard-free matrix multiplication and show that the universal encoding preserves necessary information across function compositions, enabling efficient hazard-free prefix computations. The approach yields fixed-parameter tractability in $\max\{\ell,|S|\}$ and remains asymptotically optimal in the input length $n$, despite exponential overhead in the transducer size. This framework opens avenues for hazard-free synthesis of arithmetic circuits, including potential hazard-free addition, by providing a general, automated method to convert transducers into robust digital circuits under metastability.
Abstract
Ikenmeyer et al. (JACM'19) proved an unconditional exponential separation between the hazard-free complexity and (standard) circuit complexity of explicit functions. This raises the question: which classes of functions permit efficient hazard-free circuits? In this work, we prove that circuit implementations of transducers with small state space are such a class. A transducer is a finite state machine that transcribes, symbol by symbol, an input string of length $n$ into an output string of length $n$. We present a construction that transforms any function arising from a transducer into an efficient circuit of size $\mathcal{O}(n)$ computing the hazard-free extension of the function. More precisely, given a transducer with $s$ states, receiving $n$ input symbols encoded by $l$ bits, and computing $n$ output symbols encoded by $m$ bits, the transducer has a hazard-free circuit of size $2^{\mathcal{O}(s+\ell)} m n$ and depth $\mathcal{O}(s\log n + \ell)$; in particular, if $s, \ell,m\in \mathcal{O}(1)$, size and depth are asymptotically optimal. In light of the strong hardness results by Ikenmeyer et al. (JACM'19), we consider this a surprising result.
