Skip to content
#large language models Book Open access

Multidimensional Evaluation of LLM-Generated MPC Programs

Nov 2026 · 0 citations

Abstract

Large language models can generate programs that compile and pass functional tests, but these outcomes are insufficient for evaluating code in secure multi-party computation (MPC). MPC programs must also follow the target interface's programming constraints, implement the requested algorithm, and satisfy the stated secure-operation efficiency criteria. Using NLMPC, a staged code-generation framework, we conduct an empirical study of 3,600 C++ programs generated by three LLMs for three algorithms under four generation settings that vary API instructions, explicit programming constraints, and iterative repair. We evaluate each program along four dimensions: functional correctness, MPC conformance, algorithmic adherence, and MPC efficiency. Although 59.2% of the generated programs passed the functional correctness tests, only 31.0% satisfied all four criteria. Functional testing alone did not establish conformance, adherence to the requested algorithm, or compliance with the stated efficiency criteria. Adding MPC-specific constraints revealed trade-offs: aggregate functional correctness and MPC conformance increased, while algorithmic adherence decreased. Validation-guided repair had a higher observed overall pass rate than single-pass generation, but this improvement was not statistically significant after correction. Its recorded token use, including LLM-validator calls, was 1.77×-3.19× that of single-pass generation. These findings show that passing functional tests does not establish the overall quality of LLM-generated MPC code, and that additional constraints and repair do not necessarily improve all evaluation dimensions. They motivate separate checks for functional behavior, MPC programming constraints, algorithmic invariants, and source-level efficiency, rather than relying on compilation or functional testing alone.

Read PDF

Similar papers

#computer vision Open access Jun 2016

Software Development in Startup Companies: The Greenfield Startup Model

The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.

Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al. · 178 citations · ⚡14
#computer vision Open access Oct 2016

Software Startups - A Research Agenda

Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.

M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al. · 157 citations · ⚡17
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#computer vision Review Open access May 2015

A survey study on major technical barriers affecting the decision to adopt cloud services

The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.

Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al. · 111 citations · ⚡8
#computer vision Conference Open access Dec 2013

Affordable and Energy-Efficient Cloud Computing Clusters: The Bolzano Raspberry Pi Cloud Cluster Experiment

The ongoing work building a Raspberry Pi cluster consisting of 300 nodes is presented, with potential use cases being an inexpensive and green test bed for cloud computing research and a robust and mobile data center for operating in adverse environments.

P. Abrahamsson, S. Helmer, Nattakarn Phaphoom et al. · 110 citations · ⚡7
#computer vision Book Open access Mar 2017

On the Unhappiness of Software Developers

The results indicate that software developers are a slightly happy population, but the need for limiting the unhappiness of developers remains, and 219 factors representing causes of unhappiness while developing software are identified.

D. Graziotin, Fabian Fagerholm, Xiaofeng Wang et al. · 84 citations · ⚡6

Related blog posts

MIT News · Artificial Intelligence Oct 15, 2026

AI model decodes the language cells use to communicate

A new computational approach reveals how cells communicate to assemble into tissues. This could accelerate stem cell engineering, improve disease models, and inform therapies.

Microsoft Research Blog Oct 15, 2026

Proof-based general-purpose computing with Magnetar

Zero-knowledge proofs can verify computing results without rerunning workloads or exposing sensitive data. Magnetar helps bring them into the mainstream with support for standard programming languages, major speed gains, and quantum-resistant security. The post Proof-based general-purpose computing with Magnetar appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.