Skip to main content
QUICK REVIEW

[Paper Review] Stochastic Synthesis for Stochastic Computing

Vincent T. Lee, Armin Alaghi|arXiv (Cornell University)|Oct 10, 2018
Error Correcting Code TechniquesComputer Science13 references3 citations
TL;DR

This paper introduces stochastic synthesis—a program synthesis technique—to automatically generate stochastic computing (SC) circuits from test case specifications. Unlike prior methods limited to specific function classes, it synthesizes exact and approximate SC circuits, including novel designs like an approximate square root unit, demonstrating broader applicability and effectiveness than analytical or function-specific approaches.

ABSTRACT

Stochastic computing (SC) is an emerging computing technique which offers higher computational density, and lower power over binary-encoded (BE) computation. Unlike BE computation, SC encodes values as probabilistic bitstreams which makes designing new circuits unintuitive. Existing techniques for synthesizing SC circuits are limited to specific classes of functions such as polynomial evaluation or constant scaling. In this paper, we propose using stochastic synthesis, which is originally a program synthesis technique, to automate the task of synthesizing new SC circuits. Our results show stochastic synthesis is more general than past techniques and can synthesize manually designed SC circuits as well as new ones such as an approximate square root unit.

Motivation & Objective

  • To address the challenge of manually designing SC circuits, which is time-consuming and requires deep intuition due to temporal encoding and correlation issues.
  • To overcome the limitations of existing SC synthesis techniques, which are restricted to specific function classes such as polynomials, rational functions, or constant scaling.
  • To enable the automatic discovery of both exact and approximate SC circuits, including those with sequential logic and correlation exploitation.
  • To provide a test case-driven framework that captures input correlations and enables precise specification of desired behavior.
  • To demonstrate the method's generality by synthesizing circuits not found by analytical or prior synthesis techniques, such as an approximate square root unit.

Proposed method

  • Leverages stochastic synthesis, a program synthesis technique that explores a high-dimensional program space via iterative sampling and rewrite operations to minimize a user-defined cost function.
  • Treats SC circuit design as a synthesis problem where test cases define input bitstream probabilities and desired output behaviors.
  • Uses a cost function to guide search toward circuits with desired properties, such as low area, low correlation, or high accuracy, which can be customized for different optimization goals.
  • Employs program rewrites to generate and explore neighboring circuits, enabling efficient traversal of the design space toward optimal solutions.
  • Supports both combinational and sequential SC circuits, including those with feedback paths that exploit bitstream correlation.
  • Can be extended to other representations (e.g., bipolar) and cost metrics (e.g., SN correlation) by modifying input test cases and cost functions.

Experimental results

Research questions

  • RQ1Can stochastic synthesis automatically generate SC circuits that match or exceed the performance of manually designed circuits?
  • RQ2Can stochastic synthesis discover novel SC circuits, such as approximate implementations, when exact solutions are unknown or infeasible?
  • RQ3Can the method synthesize circuits that exploit bitstream correlation, especially in sequential designs with feedback?
  • RQ4How does the test case-driven approach compare to analytical methods that assume i.i.d. inputs and cannot model correlation?
  • RQ5To what extent can stochastic synthesis generalize across different bitstream lengths and cost functions?

Key findings

  • The stochastic synthesis framework successfully reproduced known SC circuits, such as constant scaling and multiplier units, confirming its correctness and reliability.
  • It discovered a novel approximate square root circuit that could not be found using prior analytical or function-specific synthesis techniques.
  • The method generated circuits that exploit correlation in bitstreams, including sequential designs with feedback paths, which existing techniques cannot handle.
  • For functions like square root, where no exact SC circuit is known, the framework produced high-quality approximate solutions, demonstrating its capability to handle intractable cases.
  • Synthesized circuits generalized across different bitstream lengths, indicating robustness and scalability of the approach.
  • The technique outperformed prior tools like STRAUSS and ReSC by not being limited to specific function classes or requiring prior polynomial tuning.

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.