Learning Library Cell Representations in Vector Space
Rongjian Liang, Yi-Chen Lu, Wen-Hao Liu, Haoxing Ren · 2025
Read Learning Library Cell Representations in Vector Space by Rongjian Liang, Yi-Chen Lu, Wen-Hao Liu, Haoxing Ren (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2503-22900.txt.
Introduction
Rongjian Liang, Yi-Chen Lu, Wen-Hao Liu, and Haoxing Ren teach a model to place chip library cells in a vector space where closeness means likeness. Their 2025 paper introduces Lib2Vec, a self-supervised framework for standard cells, the building blocks of digital circuits. Good cell embeddings would let learning systems reason about function and electrical behavior together.
Three parts do the work. Automatic regularity tests grade whether embeddings honor known cell relationships. A data extractor mines Liberty files for training material without costly labels. An attention model handles any pin count. The learned vectors captured functional and electrical similarity well. Vector arithmetic even produced sensible analogies, like the classic word puzzle pattern, among logic gates. Downstream circuit tasks gained most when labeled data were scarce.
Catalog record
| CREATOR | Rongjian Liang, Yi-Chen Lu, Wen-Hao Liu, Haoxing Ren |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 30 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2503-22900
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Learning Library Cell Representations in Vector Space Rongjian Liang, Yi-Chen Lu, Wen-Hao Liu, Haoxing Ren Abstract We propose Lib2Vec , a novel self-supervised framework to efficiently learn meaningful vector representations of library cells, enabling ML models to capture essential cell semantics. The framework comprises three key components: (1) an automated method for generating regularity tests to quantitatively evaluate how well cell representations reflect inter-cell relationships; (2) a self-supervised learning scheme that systematically extracts training data from Liberty files, removing the need for costly labeling; and (3) an attention-based model architecture that accommodates various pin counts and enables the creation of property-specific cell and arc embeddings. Experimental results demonstrate that Lib2Vec effectively captures functional and electrical similarities. Moreover, linear algebraic operations on cell vectors reveal meaningful relationships, such as vector(BUF) - vector(INV) + vector(NAND) approximating the vector of AND , showcasing the framework’s nuanced representation capabilities. Lib2Vec also enhances downstream circuit learning applications, especially when labeled data is scarce. I Introduction Library cell representations are vital for effective machine learning (ML)-based circuit analysis and optimization, as library cells are the fundamental building blocks of circuit netlists. Traditional methods often rely on manually defined features [ 1 , 2 , 3 , 4 ] , requiring extensive expertise and feature engineering. Alternatively, one-hot encoding [ 5 ] demands large amounts of domain-specific training data, which may not always be available. To address these limitations, this work explores a data-efficient, self-supervised learning approach to generate cell representations. Our method maps library cells into a continuous vector space, capturing semantic relationships and enabling ML models to operate in a simpler, structured space instead of the original high-dimensional, discrete cell space. Our work also aligns with the broader AI shift toward training foundation models [ 6 ] on self-supervised data and adapting them to diverse downstream tasks. By providing a unified, self-supervised method for learning cell representations, this work has the potential to serve as a groundwork for developing circuit foundation models [ 7 ] . While related efforts, such as DeepGate [ 8 , 9 ] and FCNN [ 10 , 11 ] , have introduced pre-training methods that achieve notable results in circuit representation, they primarily focus on structural and functional aspects of AND-Inverter graphs, overlooking other cell types and electrical properties. Moreover, they embed circuit knowledge within the weights of graph neural networks, restricting the transferability of this knowledge to other ML models. Another related research direction focuses on ML-based library cell characterization [ 12 , 13 ] . While these methods have shown promise, they primarily aim to improve arc-based timing characterization accuracy rather than enabling ML models to capture and understand semantic relationships among cells. To our knowledge, efficient learning of functional and electrical representations of library cells in a vector space – compatible with diverse ML architectures (including transformer, the most popular architecture for foundation models) – remains unexplored. This work addresses that gap by enabling more general and versatile cell representation learning. I-A Challenges We identify three key challenges in learning meaningful vector representations of library cells: 1. Defining and Evaluating Cell Representations : Defining the semantics of library cells, and devising effective test sets and metrics to assess representation quality. 2. Efficient Training Data Generation : Creating comprehensive training data that captures the diverse functional and electrical properties of cells. 3. Flexible Model Architecture : Developing an architecture that accommodates varying pin counts and enables straightforward generation of property-specific (e.g., cell delay-focused) and arc-specific representations from a cell’s base representation. This is critical for downstream circuit learning tasks. I-B Contributions Our key insight is that a cell’s semantics are defined by its responses to input conditions, allowing us to capture semantic relationships among cells based on their behaviors under the same inputs. By systematically collecting (input conditions, output responses) pairs, we can create data that encapsulates both the functional and electrical properties of cells. Building on this, we introduce Lib2Vec , a novel self-supervised learning framework for library cell representation. Our main contributions are summarized as follows: 1. First systematic exploration of learning library cell representation in vector space, adaptable to various ML architectures and circuit applications; 2. An automated method for generating regularity tests to quantitatively evaluate the quality of cell representations; 3. A self-supervised learning scheme that extracts training data from Liberty files, removing the need for costly labeling; 4. An attention-based architecture that accommodates various pin counts and enables property- and arc-specific embeddings; 5. Experimental results show that Lib2Vec effectively captures functional and electrical properties of cells. Lib2Vec also enhances downstream circuit learning applications, particularly in scenarios with limited labeled data. The remainder of this paper is organized as follows. Section II introduces key properties of library cells, providing essential background for this study. Section III gives an overview of the Lib2Vec framework, with detailed descriptions of its three components in Section IV , Section V and Section VI . Section VII discusses the usage model of Lib2Vec. Experiment results are shown in Section VIII , and Section IX gives some concluding remarks. Fig. 1: Overview of the lib2vec framework. II Library Cell Properties In VLSI design, library cells have three categories of properties: functional, electrical, and physical. Functional properties define a cell’s logical behavior. Electrical properties capture timing, power, and signal integrity, including parameters like propagation delay, transition time, capacitance, leakage and internal power, and noise margins. Physical properties describe a cell’s layout and geometry, such as cell dimensions and pin locations. These properties can be further classified as static or dynamic. Static properties, like physical characteristics, remain constant, while dynamic properties, such as most functional and electrical behaviors, vary with input conditions. This work focuses on dynamic properties, specifically functional and electrical characteristics, as static properties are typically straightforward to model. Specifically, Lib2Vec models functional properties and rise/fall propagation delay, transition time, and internal power. The framework is extensible to incorporate additional properties. Liberty files [ 14 ] are a standard format to describe the functional and electrical properties of library cells. In this work, we utilize Liberty files from the ASAP7 cell library [ 15 ] as our test case. A cell’s function is described by its functional expression; for instance, the function expression for AND2x2_ASAP7_75t_R is A * B . In the ASAP7 library, cell propagation delay, transition time, and internal power are characterized as functions of input transition time and total output capacitance, represented through lookup tables. Importantly, the Lib2Vec framework is adaptable to more advanced delay and power models, as long as the output responses of a cell can be efficiently sampled. III Lib2Vec Overview Fig. 1 depicts the Lib2Vec framework, comprising three key components: (a) an automated method for generating regularity tests, (b) a self-supervised training scheme, and (c) a flexible attention-based model architecture. Self-supervised training data and regularity tests, both derived from Liberty files automatically, remove the need for costly labeling and can be easily adapted to new cell libraries. The attention-based neural networks leverage the generated data to learn cell representations, which are subsequently validated using the regularity tests. Detailed descriptions of each component are provided in the following sections. IV Definition and Test Sets for Cell Semantics This section tackles the challenge of defining