← Latest papers
🤖 AI

SPARC: A Multi-Agent System for Electrical Circuit Question Answering

The paper introduces SPARC, a multi-agent system that enhances the accuracy and reliability of electrical circuit diagram question answering by leveraging LLMs to synthesize, execute, and analyze physics-based simulations, achieving 83% accuracy and significantly outperforming existing baselines.

Original authors: Mushtari Sadia, Zhenning Yang, Umme Habiba Lamia, Nishat Shawrin, Ang Chen, Amrita Roy Chowdhury

Published 2026-06-23
📖 5 min read🧠 Deep dive

Original authors: Mushtari Sadia, Zhenning Yang, Umme Habiba Lamia, Nishat Shawrin, Ang Chen, Amrita Roy Chowdhury

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are an electrical engineer trying to solve a tricky puzzle. You have a drawing of a circuit (like a map of a city's power grid) and a question like, "If I change this switch's timing, will the light get brighter or dimmer?"

Usually, to answer this, you need a human expert who knows physics, math, and how to run complex simulations. If you ask a standard AI (a Large Language Model or LLM) to just "look" at the picture and guess the answer, it often fails. It's like asking a person who has never studied physics to guess the trajectory of a rocket just by looking at a photo of it. They might guess right by luck, but they can't explain why, and they often get the math wrong.

This paper introduces SPARC, a new system designed to solve these electrical circuit puzzles with high accuracy and, more importantly, reliability.

The Problem: The "Guessing Game"

Current AI models are great at recognizing pictures and writing stories. But when it comes to electrical circuits, they struggle because these problems require strict mathematical reasoning.

  • The Flaw: If you ask a standard AI, it might "hallucinate" (make up) the answer. Even if it gets the right number, it might have used the wrong logic to get there. In engineering, getting the right answer for the wrong reason is dangerous.
  • The Challenge: The AI has to do three hard things at once:
    1. Read the circuit diagram.
    2. Figure out the physics equations needed.
    3. Solve those equations.

The Solution: SPARC (The "Architect and the Calculator")

Instead of asking the AI to do all the math itself, SPARC acts like a construction manager who hires specialized workers. It breaks the job down into three steps, using a tool called SPICE (a standard, trusted software used by real engineers for decades to simulate circuits).

Think of SPARC as a team of three specialists working together:

1. The Planner (The Project Manager)

When a question comes in (e.g., "What happens if we change the switch timing?"), the Planner doesn't try to solve it immediately. Instead, it asks: "Do we need one simulation or two?"

  • Analogy: If you want to know how a car performs on a rainy day versus a sunny day, you don't just guess. You plan to run the car on a track twice: once in rain gear, once in sun gear. The Planner sets up these separate "test runs."

2. The Builders (The Specialists)

Once the plan is set, SPARC uses three different AI agents to build the specific instructions for the simulator (SPICE). They don't try to do everything at once; they focus on one part of the instruction manual:

  • The Circuit Builder: Looks at the diagram and the question to fill in the numbers (e.g., "The question says the switch is on for 0.2 seconds, so I'll write that down").
  • The Analysis Builder: Decides how to test it (e.g., "Since we are looking at time, we need a 'transient' test, not a 'steady state' test").
  • The Output Builder: Decides what to measure (e.g., "We need to measure the voltage at this specific point").

3. The Mechanic (The Error Fixer)

This is the most clever part. If the simulator crashes or gives an error (which happens often when the instructions are slightly wrong), SPARC doesn't just give up and guess again.

  • Analogy: Imagine you are building a Lego castle, and it falls over. A normal AI might just say, "Here is a castle!" and hope you like it. SPARC's Mechanic looks at the broken pieces, says, "Ah, the tower was too heavy," and only rebuilds the tower, leaving the rest of the castle alone. It keeps fixing the specific error until the simulation runs perfectly.

The Result: Why It Matters

The paper tested SPARC against the best AI models available today.

  • Accuracy: Standard AI models got about 51% of the answers right. SPARC got 83% right.
  • Reliability: Because SPARC uses a real physics simulator to do the math, every answer is backed by a "receipt" (the simulation log). You can see exactly how the answer was derived. If the answer is wrong, you can trace exactly which step (the planning, the building, or the fixing) went wrong.

In a Nutshell

SPARC is like taking a brilliant but sometimes careless student (the AI) and giving them a calculator and a strict checklist (the SPICE simulator). Instead of letting the student guess the answer, the system forces the student to:

  1. Plan the experiment.
  2. Set up the equipment correctly.
  3. Run the experiment.
  4. Fix any mistakes in the setup until the machine runs smoothly.
  5. Read the results from the machine.

This ensures that the answer isn't just a lucky guess, but a verified fact derived from the laws of physics. The paper claims this is the first system to successfully automate this specific type of complex electrical engineering reasoning with such high reliability.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →