arXiv:2610.17072cs.CROct 2026

Manuscript Offprint

arXiv:2610.17072

Think Locally Before Computing Jointly: Efficient Secure Multi-Party Computation via Maximizing Local Processing

Mingfei Yu, Chenglu Jin, Giovanni De Micheli

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mingfei Yu 1^{1}, Chenglu Jin 2^{2} and Giovanni De Micheli 3^{3}

1^{1} Stanford University, Stanford, CA, USA, mfyu@stanford.edu

2^{2} Centrum Wiskunde & Informatica, Amsterdam, The Netherlands, chenglu.jin@cwi.nl

3^{3} EPFL, Lausanne, Switzerland, giovanni.demicheli@epfl.ch

Abstract. Secure multi-party computation (MPC) enables parties to jointly evaluate a function over private inputs without revealing them. A widely used MPC technique is the garbled circuit (GC) protocol, where performance is dominated by the amount of computation that must be executed cryptographically through the secure protocol. Prior GC optimization has largely equated this cost with the number of non-linear gates, especially AND gates, and has therefore focused on minimizing the multiplicative complexity of logic networks. In this work, we show that this abstraction misses an orthogonal source of efficiency: some gates, including non-linear ones, need not be garbled at all. If the inputs to a gate are known to, or locally computable by, one party, the gate can be evaluated outside the GC protocol without cryptographic overhead.

Motivated by this observation, we introduce ownership-aware optimization for GC-based MPC. Rather than minimizing only the total number of non-linear gates, our objective is to minimize the number of non-linear gates that require joint secure evaluation. We formalize this objective through an ownership-aware cost model and build a compiler-integrated, gate-level optimization framework that automatically restructures Boolean circuits to maximize party-local computation while preserving secure computation semantics. Unlike application-specific rewrites, our approach is automated and general-purpose. Crucially, joint-computation reduction is orthogonal to the multiplicative-complexity minimization that underlies essentially all prior low-cost GC synthesis: it is a new dimension of the design space rather than a better AND-count heuristic, and it composes with existing techniques. Experimental results show that ownership-aware optimization exposes protocol-cost reductions missed by prior GC cost models, reducing jointly evaluated computation and improving end-to-end GC performance across circuits with party-local structure, opening a new perspective on low-cost garbled circuit design.

Keywords: Secure Multi-Party Computation · Garbled Circuits · Logic Synthesis

1 Introduction

Secure multi-party computation (MPC) enables mutually distrustful parties to jointly compute functions on private inputs without revealing them. Among general-purpose MPC protocols, the garbled circuit (GC) paradigm, originating from Yao's seminal work on secure two-party computation [Yao86], is particularly appealing due to its constant-round complexity and compatibility with arbitrary Boolean functions. Over the past decades, a long line of protocol and implementation advances has substantially improved the efficiency of GC-based secure computation. Representative milestones include garbled-row reduction [NPS99], the Free-XOR technique [KS08], fixed-key garbling [BHKR13], and

Licensed under Creative Commons License CC-BY 4.0.

cc BY

Efficient Secure Multi-Party Computation via Maximizing Local Processing

the Three-Halves construction [RR21]. Together, these developments have shaped the modern cost profile of GC protocols: XOR gates can often be evaluated at essentially no cryptographic cost, whereas non-linear gates, especially AND gates, remain the primary source of cryptographic cost.

This cost structure has naturally motivated a synthesis-oriented line of work on optimal garbled circuit generation. Given a target Boolean function, these methods seek circuit implementations over gate libraries such as XOR, NOT, and AND, while minimizing the number of AND gates. The underlying objective is closely related to multiplicative complexity [BPP00]: the minimum number of AND gates required to realize a Boolean function over the XOR-AND basis. By reducing the number of non-linear gates, such techniques directly reduce the amount of computation that must be handled by the GC protocol [RJHK19].

However, AND-count minimization relies on an implicit assumption: every non-linear gate appearing in the circuit contributes to cryptographic cost. In this work, we revisit this assumption and observe that the cryptographic cost of a gate depends not only on its Boolean operator, but also on where its input values are available. A gate whose inputs are known to, or locally computable by, one party can be evaluated locally, even if the gate itself is non-linear. Such a gate does not need to enter the GC protocol and therefore avoids the cryptographic cost of secure evaluation [VSG +^{+}19]. In contrast, a gate whose evaluation depends on private information from multiple parties requires joint computation and must be evaluated through the cryptographic mechanisms for a privacy-preserving evaluation. This distinction motivates a refined optimization question: given a target function, how can one systematically construct a garbled circuit that minimizes the number of non-linear gates requiring joint computation, rather than merely minimizing the total number of non-linear gates?

Recent MPC systems reduce joint computation by decomposing the target computation and maximizing the portions executed locally. In the domain of secure analytical SQL queries, Senate [PKY +^{+}21] hand-designs Boolean-circuit implementations of SQL primitives (e.g., filtering, joins, set intersection) that minimize joint computation and manually composes them into query-specific circuits. In secure machine-learning inference, Marill [RLS +^{+}24] applies layer freezing during MPC-based fine-tuning of large language models (LLMs), avoiding joint computation for unchanged layers at a small accuracy cost. Both achieve substantial gains, but their optimizations are manually engineered and tailored to a particular application domain, requiring significant expertise and not generalizing to arbitrary Boolean computations. A separate line of automated compilers and languages for secure computation [Ker11, RMHH13, RHH14, ARG +^{+}21, SDH +^{+}23] instead reasons about what each party already knows to decide which computations can be performed locally; these systems, however, operate at the granularity of whole program operations and delegate the remaining secure computation to a separately optimized backend, leaving the joint computation within the circuit untouched. In this work, we pursue a complementary and more broadly applicable direction: an automated, gate-level optimization framework for garbled circuits that minimizes joint computation by systematically maximizing local computation. Rather than relying on application-specific insights, our approach operates directly on Boolean circuit structure. We develop combinatorial analysis and transformation techniques that identify sub-circuits amenable to single-party evaluation and restructure the circuit accordingly, thereby reducing the number of gates requiring joint evaluation without altering the target functionality.

We evaluate our framework on 12 Boolean circuits spanning arithmetic, floating-point, cryptographic, and general-purpose workloads, all preprocessed with high-effort MC-reduction techniques. Our results show that ownership-aware optimization uncovers cryptographic-cost reductions that remain invisible to conventional AND-count minimization: on a processor-style benchmark with substantial party-local control logic, our

Figure

Boolean circuit

Garbled circuit

Figure 1: From an AND gate to its four-row garbled truth table.

framework achieves a 39.25% reduction in garbling cost; in some cases, jointly evaluated computation decreases even when MC remains unchanged or slightly increases. When integrated with MP-SPDZ [Kel20], a widely used framework for implementing MPC protocols, these circuit-level reductions translate into concrete system-level savings. These results confirm that ownership-aware optimization is complementary to existing garbled circuits synthesis techniques and can reduce the cryptographic cost of secure computation beyond what is captured by multiplicative complexity alone. In doing so, this work introduces a new dimension into low-cost garbled circuit design that is orthogonal to the multiplicative-complexity minimization underlying essentially all prior synthesis efforts: rather than counting non-linear gates, we ask which of them must be evaluated jointly at all, opening a new perspective on secure computation efficiency that we believe can inform the next generation of design philosophy for MPC circuits.

The remainder of the paper is organized as follows. §2 reviews the cryptographic and logic-synthesis foundations of our work. §3 reviews related research topics. §4 introduces our refined cost model based on ownership analysis and presents the architecture of the circuit optimization framework. §5 details the design of our partial circuit resynthesis engine. §6 reports an extensive experimental evaluation on diverse benchmarks, demonstrating the practical benefits of the proposed technique. §7 positions our contributions relative to prior art. Finally, §8 concludes the paper.

References (45)