PCEval: A Benchmark for Evaluating Physical Computing Capabilities of Large Language Models

NeurIPS 2026

Inpyo Song, Eunji Chon, Jangwon Lee

Sungkyunkwan University, South Korea

PCEval workflow: project descriptions, circuits and code are provided to LLMs; generated artifacts undergo circuit validation and execution-based testing.

“In physical computing, working with circuits is absolutely essential, and that’s just something AI can’t help with. These days, tools like Gemini in Colab can write and even suggest code, which is great. But it’s not like an arm can suddenly pop out and build the circuit for you.”

— Public High School Computer Science Teacher C, Appendix A, Q4

To address this gap, we introduce PCEval (Physical Computing Evaluation), the first benchmark designed to systematically evaluate whether LLMs can reason under physical constraints.

Abstract

Large Language Models (LLMs) have demonstrated remarkable capabilities across various domains, including software development, education, and technical assistance. However, a fundamental question remains unresolved: can LLMs reason about physical constraints—the rules governing how abstract computations must map onto real-world hardware? This capability is distinct from, and arguably more demanding than, software generation alone, as it requires grounding language understanding in spatial, electrical, and connectivity constraints.

To address this gap, we introduce PCEval (Physical Computing Evaluation), a benchmark and evaluation protocol for physical computing education that enables fully automatic, execution-based assessment of LLMs across both logical and physical implementation artifacts, without human grading. Our evaluation framework assesses LLMs in generating circuits and producing compatible code across varying levels of project complexity.

Through comprehensive testing of 14 leading models, PCEval provides the first reproducible and automatically validated empirical assessment of LLMs’ ability to reason about fundamental hardware implementation constraints within a simulation environment. Our findings reveal that while LLMs perform well in code generation and logical circuit design, they struggle significantly with physical breadboard layout creation, particularly in managing proper pin connections and avoiding circuit errors. PCEval advances our understanding of AI assistance in hardware-dependent computing environments and establishes a foundation for developing more effective tools to support physical computing education.

PCEval Benchmark Design

75Curated projects
Arduino Uno
ESP32
Boards
17Evaluated models
300Task instances

Tasks

Five core components: (D)escription, (L)ogical circuit, (P)hysical circuit, (C)ode, (T)est procedure

D, C → L

Logical Circuit Generation

Evaluates ability to infer necessary hardware components and their abstract logical connections based on functional requirements and program logic.

D, C → P

Physical Circuit Generation

Assesses the LLM’s understanding of practical hardware integration, including valid wire routing adhering to breadboard mechanics and physical constraints.

D, L → C

Code Generation from Logical Circuit

Tests the ability to translate a conceptual circuit design into working code.

D, P → C

Code Generation from Physical Circuit

Generate the code that is compatible with this specific physical hardware configuration, including adherence to the explicit pin assignments dictated by the breadboard layout.

Automated Evaluation

Prior efforts on LLMs for electronics relied on labor-intensive manual expert evaluation. Our framework eliminates subjective manual assessment through decomposed tasks and simulation-based validation, enabling reproducible evaluation without domain expert intervention.

We ultimately selected Wokwi for automated evaluation due to its API accessibility and component coverage, while the framework itself remains simulator-agnostic.

Button LED — Success
Button LED — Failure

Quantitative Results

Comparative performance (success rate %) of various LLMs on PCEval benchmark tasks, highlighting differential capabilities across circuit generation and code generation domains.

D, C → L

Success rates for Logical Circuit Generation across all 17 evaluated models. Exact values are available in the data table below.

D, C → P

Success rates for Physical Circuit Generation across all 17 evaluated models. Exact values are available in the data table below.

D, L → C

Success rates for Code Generation from Logical Circuit across all 17 evaluated models. Exact values are available in the data table below.

D, P → C

Success rates for Code Generation from Physical Circuit across all 17 evaluated models. Exact values are available in the data table below.
Success rates (%)
Mean over five independent trials
Model D, C → L D, C → P D, L → C D, P → C Overall
Closed Source
GPT 5.6 Sol59.560.077.369.166.5
GPT 5.6 Terra46.440.372.568.857.0
Claude Sonnet 567.216.070.472.356.5
GPT-4o-mini50.91.354.453.640.1
Gemini-2.0-Flash-Lite51.22.756.357.341.9
Claude Haiku 4.558.13.769.164.348.8
Gemini-2.0-Flash60.517.959.755.748.5
Gemini-3.1-Flash-Lite71.526.972.368.859.9
GPT-4.154.116.068.863.250.5
GPT-4o62.428.565.361.154.3
GPT-5-mini56.544.870.972.561.2
o3-mini65.346.471.571.263.6
Open Source
LLaMA 3.1 (8B)24.31.629.625.920.3
DeepSeek-Coder-V2 (16B)33.30.834.121.122.3
Gemma 3 (27B)52.81.636.037.331.9
Phi 4 (14B)37.12.449.137.931.6
Mistral-Small 3 (24B)51.514.149.135.737.6

Qualitative Results

Traffic-light project circuit examples from the paper, comparing successful and failed generated breadboard layouts.
Qualitative examples of LLM-generated physical circuits for a traffic light project (level 4),
illustrating successful and failed attempts with corresponding error analyses.
ESP32 pushbutton-controlled LED: generated circuits from o3-Mini, Claude Haiku 4.5, and Gemini 3.1-Flash-Lite compared with the reference circuit.
This is a ESP32 project that controls an LED with a pushbutton.

BibTeX

@inproceedings{song2026pceval,
  title     = {{PCEval}: A Benchmark for Evaluating Physical Computing Capabilities of Large Language Models},
  author    = {Song, Inpyo and Chon, Eunji and Lee, Jangwon},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2026},
  url       = {https://arxiv.org/abs/2601.02404}
}