AnalogRetriever: Learning Cross-Modal Representations for Analog Circuit Retrieval

summary

The gist

AnalogRetriever presents a unified trimodal retrieval framework that maps functional descriptions, schematics…

In short

AnalogRetriever is a framework that unifies searching for analog circuits by mapping functional descriptions, schematics, and SPICE netlists into a shared mathematical space using contrastive learning. This allows users to find matching designs across different formats. The system achieves high retrieval accuracy and significantly improves the performance of AI agents when used for circuit generation.

Key concepts

Contrastive Learning
This is a training method where the model learns to pull similar items closer together in its mathematical space while pushing dissimilar items further apart. In this case, it teaches the system to understand that a text description of an op-amp is semantically close to its corresponding schematic and netlist.
Port-Aware RGCN
This is a specific type of neural network used to encode SPICE netlists. It treats the circuit like a graph where nodes are components and edges represent connections, specifically paying attention to the 'ports' or terminals on each component to understand how they are wired.
Curriculum Hard Negative Mining
This is a training strategy where the model is intentionally shown harder examples during training. By increasing the ratio of difficult negative samples, the system becomes more robust and better at distinguishing between very similar but incorrect circuit representations.

Terminology used across episodes

This episode discusses

The paper

AnalogRetriever: Learning Cross-Modal Representations for Analog Circuit Retrieval · Read on arXiv

Yihan Wang, Lei Li, Yao Lai, Jing Wang, Yan Lu

Tsinghua University · The University of Hong Kong · University of Cambridge

Analog circuit design relies heavily on reusing existing intellectual property (IP), yet searching across heterogeneous representations such as SPICE netlists, schematics, and functional descriptions remains challenging. Existing methods are largely limited to exact matching within a single modality, failing to capture cross-modal semantic relationships. To bridge this gap, we present AnalogRetriever, a unified tri-modal retrieval framework for analog circuit search. We first build a high-quality dataset on top of Masala-CHAI through a two-stage repair pipeline that raises the netlist compile rate from 22.0% to 99.97%. Built on this foundation, AnalogRetriever encodes schematics and descriptions with a vision-language model and netlists with a port-aware relational graph convolutional network, mapping all three modalities into a shared embedding space via curriculum contrastive learning. Experiments show that AnalogRetriever achieves an average Recall@1 of 75.2% across all six cross-modal retrieval directions, significantly outperforming existing baselines. When integrated into the AnalogCoder agentic framework as a retrieval-augmented generation module, it consistently improves functional pass rates and enables previously unsolved tasks to be completed.

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: We're looking at the paper: "AnalogRetriever: Learning Cross-Modal Representations for Analog Circuit Retrieval".

Jane: Here's the gist of the paper. AnalogRetriever presents a unified trimodal retrieval framework that maps functional descriptions, schematics, and SPICE netlists into a shared semantic space via contrastive learning This enables flexible cross-modal retrieval: a natural-language query such as “a two-stage op-amp with Miller compensation” returns matching schematics and netlists, and a schematic or netlist query returns functionally similar designs with their specifications The framework achieves an average Recall@1 of 75.2% across all six cross-modal retrieval directions, significantly outperforming existing baselines When integrated into the AnalogCoder agentic framework as a retrieval-augmented generation module, it consistently improves functional pass rates and enables previously unsolved tasks to be completed.

Tom: Dataset Construction and Refinement The foundation of the work involves building a high-quality dataset on top of Masala-CHAI through a two-stage repair pipeline that raises the netlist compile rate from 22% to 100% This process involves Stage 1, which uses a base LLM for initial netlist repair with Ngspice validation, and Stage 2, which applies iterative feedback-guided refinement using a teacher model until convergence.

Jane: The final high-quality dataset consists of 6,354 verified triplets after filtering unrecoverable samples.

Tom: Encoding Architecture Details The system employs three modality-specific encoders to map SPICE netlists (port-aware RGCN), schematic images (ViT), and text descriptions (Transformer) into a shared embedding space The Vision Encoder uses a Vision Transformer (ViT)-L/14 image encoder and the Text Encoder utilizes a Transformer.

Paper summary: Lu: So, wrapping up the AnalogRetriever paper, the main contribution is this unified trimodal retrieval framework that maps functional descriptions, schematics, and SPICE netlists into a single semantic space using contrastive learning.

Tom: It’s about creating a system where you can query it with text and get back matching schematics or netlists, or you can input an image or a netlist and get functionally similar designs back.

Jane: The authors are trying to solve the cross-modal alignment challenge that no existing method has addressed before, which is how to bridge the gap between graph-structured code, images, and text.

Meng: For someone shipping models in production like myself, I see the implication for RAG integration—it grounds LLM outputs with verified circuit examples to reduce hallucination when we use these tools in generation tasks.

Lalam: They showed that by using this retrieval component with AnalogCoder, they lifted functional correctness on all eight of the LLMs used, setting a new state of the art recall at one of eighty-six point seven percent on Claude Sonnet four point six.

Tom: The title itself reflects what it does: learning these cross-modal representations for analog circuit retrieval. It’s about making circuit search much more intuitive for engineers who work with descriptions instead of just file formats.

Jane: In simple terms, it means you can describe a complex analog circuit in plain English and reliably find the exact hardware implementation that matches your functional requirements.

Conclusion: Tom: So, AnalogRetriever is just this framework that maps circuit descriptions, schematics, and netlists into one shared space using contrastive learning.

Jane: It’s about getting a unified way to look at analog circuits so you can query them with text and get the right physical design back.

Lu: The authors are showing how they used three different encoders—a graph network for the netlists, a vision transformer for images, and a standard transformer for the text—to build these mappings.

Meng: I’m interested in how they handled that graph part because those netlists are usually super complex structures at scale.

Lalam: They used a port-aware relational graph convolutional network that defines twenty edge types to handle all the different terminal connections across the circuit structure.

Tom: That sounds like it handles the physical layout details, which is crucial when you’re trying to match a functional description to a real circuit.

Jane: Exactly, and what they did with the training was a three-phase curriculum, starting simple and getting harder by adding more difficult examples at the end.

Lu: They used that curriculum to ensure the joint optimization didn't get stuck in some messy local minimums during training.

Meng: That sounds like a necessary evil when you’re trying to train models on such diverse data types; you gotta make sure it doesn't just learn one thing well.

Lalam: Their final results show an average recall at one of seventy-five point two percent across all six different ways you can look up these things.

Tom: Seventy-five point two percent is a big number when you compare it to the older baselines they tested, which were much lower.

Jane: And when they put this into their AnalogCoder agent, it actually lifts the functional correctness on all eight of those underlying large language models used.

Lu: That suggests that having that retrieval component acts like a strong anchor for the generation process itself.

Meng: If it really improves the functional pass rates, then deploying something like this in a production setting could cut down on rework significantly.

Tom: It seems they are focusing less on just getting one perfect answer and more on making sure the search mechanism is robust across all formats.

Jane: So, this isn't just about finding one circuit; it’s about creating a reliable bridge between what we describe and what we build in hardware.

Lu: The implication is that engineers might eventually be able to use natural language to specify complex analog behavior and have the system reliably pull up the exact schematic for it.

Meng: If that works consistently, then the cost of debugging those initial design choices drops because you're starting from a much more accurate retrieval point.

Tom: It sounds like they’ve built a solid foundation for using these multimodal inputs in any generative task involving analog components.

Jane: The next thing we need to look at is how this specific dataset was built, because getting that high quality data was clearly the biggest hurdle before they could get these impressive retrieval numbers.

More episodes

← Home