Electronic Circuit Principles of Large Language Models
Qiguang Chen, Libo Qin, Jinhao Liu, Dengyun Peng, Jiaqi Wang, Mengkang Hu, Zhi Chen, Wanxiang Che, Ting Liu
TL;DR
This work introduces the Electronic Circuit Principle (ECP), a circuit-inspired framework that maps inference-time learning and reasoning (ITL/ITR) onto electromotive force and a resistive network to predict and improve LLM performance. By deriving closed-form relationships for power, voltage, and resistance, the authors obtain strong predictions across 9 LLMs and 350 tasks (Spearman > 0.7) and demonstrate substantial improvements over traditional scaling laws. They show that optimizing prompting components (magnetic field) and reasoning strategies (reducing resistance) yields tangible performance gains, including surpassing a majority of human competitors in IOI/IMO tasks using relatively weaker LLMs. The work also provides extensive methodological detail and theoretical proofs supporting self-consistency, coverage, and resistor-optimization strategies, offering a rigorous, modular toolkit for future LLM design and evaluation. Overall, ECP offers a principled, quantitative lens to predict, interpret, and optimize modular prompting and reasoning approaches in large language models.
Abstract
Large language models (LLMs) such as DeepSeek-R1 have achieved remarkable performance across diverse reasoning tasks. To uncover the principles that govern their behaviour, we introduce the Electronic Circuit Principles (ECP), which maps inference-time learning (ITL) onto a semantic electromotive force and inference-time reasoning (ITR) onto a resistive network governed by Ohm's and Faraday's laws. This circuit-based modelling yields closed-form predictions of task performance and reveals how modular prompt components interact to shape accuracy. We validated ECP on 70,000 samples spanning 350 reasoning tasks and 9 advanced LLMs, observing a about 60% improvement in Pearson correlation relative to the conventional inference-time scaling law. Moreover, ECP explains the efficacy of 15 established prompting strategies and directs the development of new modular interventions that exceed the median score of the top 80% of participants in both the International Olympiad in Informatics and the International Mathematical Olympiad. By grounding LLM reasoning in electronic-circuit principles, ECP provides a rigorous framework for predicting performance and optimising modular components.
