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

eSLIM: Circuit Minimization with SAT Based Local Improvement

Franz-Xaver Reichl, Friedrich Slivovsky, Stefan SzeiderSAT 2024

TL;DR

This paper introduces eSLIM, a tool that significantly improves circuit minimization by combining exact synthesis with a novel SAT-based local improvement technique. It achieves faster and more effective circuit optimization, particularly for large, complex circuits, by introducing a purely propositional SAT encoding and a windowing approach for handling scalability.

What Problem Does This Paper Address?

Designing and optimizing modern integrated circuits is a monumental task due to their sheer size and complexity. While exact methods can guarantee optimal circuit designs, they are computationally intractable for anything beyond small subcircuits. Existing approaches often partition circuits and minimize subcircuits, but these methods can be inefficient or fail to fully exploit the flexibility of multi-output subcircuits. The challenge is to develop automated techniques that can effectively minimize large circuits by optimizing subcircuits without sacrificing optimality guarantees or becoming computationally prohibitive.

Methods

eSLIM builds upon previous work by introducing two key improvements:

  • Purely Propositional SAT Encoding: Instead of relying on Quantified Boolean Formulas (QBFs), eSLIM uses a SAT solver. This is achieved by first computing a Boolean relation that characterizes the input-output behavior of a subcircuit under "don't care" conditions. This relation is then used to guide the SAT solver in finding a smaller, equivalent subcircuit. This approach significantly speeds up the resynthesis process.
  • Circuit Partitioning with Windowing: For very large circuits, even the SAT-based approach can become too slow. eSLIM employs a "windowing" technique, inspired by prior work on single-output circuits. Instead of considering don't cares with respect to the entire circuit, it focuses on a smaller "window" of gates. This trades some completeness for efficiency, allowing the optimization of much larger circuits by preserving the function computed within that window.

Datasets

The paper evaluates eSLIM on two benchmark suites:

  • IWLS'23 Programming Contest Instances: These are 100 instances provided as truth tables, requiring conversion to circuits. The goal is to minimize And-Inverter Graphs (AIGs).
  • EPFL Combinational Benchmark Suite: This suite consists of 20 circuits, some of which contain non-binary gates. The goal is to find small 6-input lookup table (LUT-6) implementations. The authors used the best known LUT-6 realizations from 2022 as initial specifications.

Key Insights and Ideas

  • SAT over QBF for Resynthesis: Shifting from QBF to a purely propositional SAT encoding for subcircuit resynthesis, guided by a Boolean relation, offers a substantial speedup. This suggests that for this specific task, the efficiency of SAT solvers can outweigh the implicit handling of don't cares offered by QBF.
  • Windowing as a Scalability Enabler: The windowing technique is crucial for tackling extremely large circuits. By localizing the optimization problem, it makes exact synthesis feasible for instances that would otherwise be unmanageable, even with the SAT-based approach.
  • Randomized Subcircuit Selection Matters: The paper notes that multiple runs of eSLIM can yield better results. This is attributed to the randomized subcircuit selection, which helps avoid getting stuck in local minima that a deterministic approach might encounter.
  • Preprocessing and Inprocessing Synergy: The experiments suggest that combining eSLIM with tools like ABC (for preprocessing and inprocessing) can be a powerful strategy, even outperforming dedicated optimization tools like DEEPSYN in some cases.

Key Results

  • IWLS'23 Instances: eSLIM, particularly the SAT-based configuration, significantly outperformed the QBF-based version and the DEEPSYN procedure, achieving an average reduction of 11.75% in gates compared to the preprocessed circuits. The tool placed second in the IWLS'23 competition.
  • EPFL Instances: For smaller EPFL instances (less than 1000 gates), eSLIM (both QBF and SAT) showed comparable performance to CIOPS, with SAT often achieving slightly better results. For larger instances, windowing enabled eSLIM to achieve further reductions, outperforming CIOPS and improving upon the best known implementations for the majority of instances. The SAT configuration generally showed a slight edge.

Limitations and Future Work

  • Windowing Completeness Trade-off: The windowing approach, while enabling scalability, inherently trades some completeness for efficiency. The don't cares outside the window are not fully captured, meaning the optimization might not be globally optimal for the entire circuit.
  • Potential for Counterexample-Guided Expansion: The authors suggest that techniques from QBF solving, such as counterexample-guided expansion, could be adopted for the QBF-based approach. This could make computing the entire Boolean relation upfront less prohibitive and allow for more efficient, on-the-fly constraint generation during substitution.
  • Further Exploration of Randomized Runs: The benefit of multiple randomized runs suggests that more sophisticated strategies for exploring the solution space could be beneficial.

Summary updated

BibTeX
@inproceedings{reichl2024eslim,
  author = {Franz-Xaver Reichl and Friedrich Slivovsky and Stefan Szeider},
  title = {{eSLIM: Circuit Minimization with SAT Based Local Improvement}},
  booktitle = {SAT},
  year = {2024},
  doi = {10.4230/lipics.sat.2024.23},
}
Figure