Abstract
Contemporary hardware design benefits from the abstraction provided by high-level logic gates, streamlining the implementation of logic circuits. Logic Synthesis Optimization (LSO) operates at one level of abstraction within the Electronic Design Automation (EDA) workflow, targeting improvements in logic circuits with respect to performance metrics such as size and speed in the final layout. Recent trends in the field show a growing interest in leveraging Machine Learning (ML) for EDA, notably through ML-guided logic synthesis utilizing policy-based Reinforcement Learning (RL) methods. Despite these advancements, existing models face challenges such as overfitting and limited generalization, attributed to constrained public circuits and the expressiveness limitations of graph encoders. To address these hurdles, and tackle data scarcity issues, we introduce LSOformer, a novel approach harnessing Autoregressive transformer models and predictive SSL to predict the trajectory of Quality of Results (QoR). LSOformer integrates cross-attention modules to merge insights from circuit graphs and optimization sequences, thereby enhancing prediction accuracy for QoR metrics. Experimental studies validate the effectiveness of LSOformer, showcasing its superior performance over baseline architectures in QoR prediction tasks, where it achieves improvements of 5.74%, 4.35%, and 17.06% on the EPFL, OABCD, and proprietary circuits datasets, respectively, in inductive setup.
Introduction
Logic Synthesis Optimization (LSO) is a cornerstone of Electronic Design Automation (EDA). It transforms high-level logic descriptions into optimized gate-level representations by applying sequences of mathematical heuristics, known as "recipes." The goal is to optimize the Quality of Results (QoR), primarily defined by circuit Area (size) and Delay (speed).
Traditional LSO relies on iterative, manual, or heuristic-driven searches. While Machine Learning (ML) offers a path toward automation, current approaches struggle with two primary issues: Data Scarcity, where limited public circuit datasets lead to overfitting, and Structural Complexity, where standard graph neural networks fail to capture the hierarchical "flow" of Directed Acyclic Graphs (DAGs) representing circuits.
Methodology: The LSOformer Architecture
LSOformer addresses these challenges by reimagining LSO as a sequence modeling task. The architecture consists of three core components designed to bridge the gap between graph-based circuit representations and sequential optimization recipes.
Level-wise Graph Pooling
Instead of treating the circuit graph as an unordered set of nodes, LSOformer groups nodes by their depth (distance from primary inputs). These levels are pooled into a sequence of embeddings, preserving the natural partial ordering of logic gates. This transformation allows the model to process complex 2D graph structures as 1D sequences compatible with Transformer architectures.
Causal Transformer Decoder and Predictive SSL
LSOformer utilizes a decoder-only transformer architecture. Unlike models that only predict the final QoR, LSOformer is trained to predict the entire trajectory of results—the QoR at every step of the optimization recipe. This "causal" approach, combined with predictive self-supervised learning (SSL), provides a richer supervisory signal, helping the model understand the incremental impact of each heuristic.
Contextualized Fusion via Cross-Attention
To integrate circuit information with the optimization sequence, LSOformer employs cross-attention. This mechanism allows the model to dynamically focus on specific parts of the circuit graph that are most relevant to the current optimization command in the recipe, breaking the information bottleneck common in simpler concatenation-based fusion methods.
Experimental Results
The model was evaluated in an "inductive" setup—testing on circuits never seen during training—across three datasets: the EPFL Combinational Benchmark, the Open ABC Dataset (OABCD), and a large-scale Proprietary Dataset (PD) from Huawei.
LSOformer demonstrated significant performance gains over state-of-the-art baselines. In delay prediction, it achieved accuracy improvements of 5.74% on EPFL, 4.35% on OABCD, and 17.06% on the proprietary dataset. Area prediction also saw consistent improvements, notably a 13.65% gain on OABCD.
Ablation studies confirmed that the causal transformer architecture itself provides a superior foundation compared to standard MLPs or LSTMs, even before the addition of auxiliary self-supervised tasks.
Conclusion
LSOformer represents a significant step forward in ML-guided logic synthesis. By treating optimization as a trajectory prediction task and leveraging the strengths of causal transformers and level-wise graph pooling, the model achieves superior generalization and accuracy. Future work includes scaling the model to handle modern industrial chips with millions of nodes and integrating LSOformer as a "world model" within Reinforcement Learning frameworks to autonomously discover novel optimization recipes.
Summary updated