atlas

Research map / Architectures and efficiency / Attention and transformers

Circuit Transformer: A Transformer That Preserves Logical Equivalence

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer expressivity and learnability

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Circuit Transformer, a Transformer that generates Boolean circuits token-by-token with a cutoff-based masking layer so every output is strictly logically equivalent to the target function, and optimizes circuit size via MCTS over an MDP formulation.

Problem

Neural generative models for circuit realization occasionally produce circuits that are not logically equivalent to the target Boolean function, which is unacceptable for exact digital design.

Approach

A top-down sequential circuit encoding with cutoff properties (inheritable, incrementally testable via three-valued logic truth tables) lets a masking layer block any next token that would break equivalence, so the Transformer is trained normally with cross-entropy but guarantees equivalence at inference; the generation is also cast as an MDP for size minimization with MCTS.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add tree positional encoding (ablation)Circuit Transformer · Random circuitsaverage circuit size: 15.02 -> 14.79Helped
add tree positional encoding (ablation)Circuit Transformer · IWLS FFWsaverage circuit size: 17.33 -> 17.17Helped
add equivalence masking (ablation)Circuit Transformer · Random circuitsviolation cases: 2.59% -> 0.00%Helped
add equivalence masking (ablation)Circuit Transformer · IWLS FFWsviolation cases: 6.54% -> 0.00%Helped
increase MCTS playouts from the default model to K=10Circuit Transformer · Random circuitsaverage circuit size: 14.79 -> 14.02Helped
increase MCTS playouts from the default model to K=100Circuit Transformer · IWLS FFWsaverage circuit size: 17.17 -> 16.73Helped

Surprising findings

Limitations

Experimental setup

Datasets: randomly generated 8-input 2-output circuits (15M, Resyn2 labels) IWLS 2023 benchmark fanout-free windows

Benchmarks: random circuits (synthetic test split, 10,240 circuits) IWLS 2023 FFWs (10,240 sampled)

Metrics: unsuccessful cases percentage equivalence violation percentage average circuit size percentage strictly smaller than Resyn2 average time per circuit

Baselines: Boolean Chain Transformer AIGER Transformer beam search variants (beam size 16, 128) Resyn2

Builds on: Transformer encoder-decoder PUCT (AlphaZero-style MCTS) ABC Resyn2 optimization flow AIGER format backtracking with cutoff properties

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy