Manuscript Offprint
arXiv:2610.27441Privacy-Preserving Robustness-Guided Testing
Charles Koll, Houssam Abbas, and Mike Rosulek
Abstract—In industries like semi-conductors and aerospace, it is common for the design company to contract out part of the testing process to a Testing-as-a-Service (TaaS) company. In such a setup, both parties want to keep their intellectual property private (i.e. unknown to the other party): namely the design and its output traces for the designer, and the detailed correctness specifications for the tester. We demonstrate a practical way for conducting provably private TaaS using a cryptographically secure multi-party computation protocol. We do so for the common setup where the specification is in Signal Temporal Logic, and testing is done using robustness-guided falsification. Our implementation carefully separates the steps of falsification, and manages to be maximally secure, in the sense that the parties learn the absolutely minimum necessary for falsification. For up to a 100-dimensional input search space, the generation of one test takes less than 80 msec, and the overhead of the privacy-preserving protocol is less than 6x. These numbers mean that privacy-preserving TaaS is practical, thus enabling TaaS in security-sensitive industries.
Index Terms—Multi-Party Computation, falsification, cyber-physical systems, privacy-preserving computation.
I. INTRODUCTION
Testing remains the most widely used technique to ensure embedded and cyber-physical system correctness. Testing-as-a-Service (TaaS), which is the practice of outsourcing some testing activities to an outside party, is common in industries like semi-conductor, aerospace, fuel cell batteries, and software. In such a setup, the testing company, aka Tester, possesses detailed correctness specifications which it developed over years of experience testing different designs, e.g. many kinds of plane engines. This constitutes Tester's intellectual property and so Tester wishes to keep it secret. The design company, aka Designer, is of course incentivized to keep the System Under Test (SUT) secret. In particular, this implies keeping the SUT's output traces secret, since otherwise Tester might learn to map input traces (which it generates) to output traces. A key challenge of TaaS is, therefore, the protection of the intellectual properties (IPs) of both the design and the testing companies.
Currently, Designer and Tester sign Non-Disclosure Agreements (NDAs), which provide legal penalties if the parties leak each other's IP to someone else. However, a much stronger guarantee would be if 1) each party's IP is never shared with the other party to begin with, and 2) this guarantee is technological, rather than legal. I.e. we want to make it impossible for the parties to learn each other's IP, while still enabling them to jointly perform the testing of the SUT. We call this privacy-preserving testing.
All authors affiliated with Oregon State University at time of submission. Emails: {kollch,houssam.abbas,mike.rosulek}@oregonstate.edu. Research partially supported by NSF award 2118179.
This paper presents a practical way to perform private testing for cyber-physical systems (CPS) in the following common setting. The specification is expressed in Signal Temporal Logic (STL) [1] (or similar logic); STL is a dense-time logic allowing the specification of real-time constraints, like ‘The speed increases within 2.1sec of the distance exceeding the threshold’. Given an output trace x from the SUT, the degree to which it satisfies or violates the STL specification is formalized using the notion of robustness [2]: if positive, this indicates x satisfies , and if negative, this indicates that x violates , while its magnitude indicates how well it satisfies, or how badly it violates, . The test generator’s task, then, is to search the SUT’s input space for inputs u s.t. the corresponding output trace x has negative robustness. This search is done using optimization heuristics, most commonly simulated annealing [3] or some extension [4]. The robustness values guide the test generator towards promising inputs. This entire process is called falsification.
We develop a privacy-preserving simulated annealing (SA)-based implementation of falsification using a Multi-Party Computation (MPC) [5], which is a class of cryptographic protocols with rigorous privacy guarantees. Privacy means that the probability that Designer will learn anything about Tester's formula can be made arbitrarily small (in the security parameter), and similarly for the probability of Tester learning anything about the SUT's traces. (Security definitions are given in the next section). In fact, our implementation hides all that can be hidden: the Tester does not even learn the inputs that it is generating to simulate the SUT, and neither party learns the robustness values that are guiding the falsification. Designer learns the input signals since it needs to apply them to the SUT. The reason for this maximal privacy is that it protects the TaaS against future adversaries that might figure out a way to leverage, say, knowledge of the robustness values. Since these values remain cryptographically protected, no adversary can use them. This maximal privacy goes beyond the private computation of robustness values: every iteration of an SA loop requires a comparison of robustness values to select a new input signal, so hiding this comparison while allowing Designer to learn the input signals is non-trivial.
We show experimentally that our private falsification is practical and does not incur exorbitant overhead relative to in-the-clear (non-private) falsification.
Related work. There is no evident prior work on privacy-preserving testing. However, private monitoring, a component of private testing, has a few works. Abbas [6] introduced the concept of private offline monitoring for LTL, and suggested several approaches to preserving the privacy of the monitored signal, but not of the LTL formula. We work with Signal Temporal Logic (STL), interpreted over dense-time signals, necessary for cyber-physical systems. STL does not have an equivalent finite automaton representation, so works like [7] and [8], which work in discrete time and use finite automata, are not applicable. Henzinger et al. [9] approached private runtime verification (rather than testing) by focusing on simple functionality such as adders and comparators, and encoded the specification as a circuit – our testing functionality takes the specification as a private input. Karimi et al. [10] privately monitor over a distributed monitor, where at least one distributed component is honest (does not attempt to learn private information) – our work assumes that both parties attempt to learn all that they can, while following the protocol.
Some works implement SA as a multi-party computation. The most similar work is [11], which implements SA in MP-SPDZ for n parties, but requires three parties for its protocol and uses a discrete space for candidate points. Our implementation operates over continuous space, namely, the space of possible CPS control inputs. [12] also operates on a discrete space, and further does not hide SA's intermediate function comparisons, leaking statistical information regarding private data. Our implementation must hide intermediate comparisons. [13] likewise reveals intermediate function comparisons. Unlike these works, our private SA operates over a continuous space and does not reveal the SA function comparisons, achieving a maximally private privacy-preserving testing.
Contributions. Our contributions are 1) an MPC for robustness-guided falsification that keeps private the maximum possible; and 2) an experimental evaluation of our implementation, demonstrating that secure multi-party falsification remains practical despite the overhead of privacy-preserving computations.
Definition II.1 (Secure protocol (Intuitive)). An MPC protocol implementing functionality f is considered secure w.r.t. semi-honest parties (i.e., parties that follow the protocol but try to learn extra information based on the messages they see) if it is highly improbable that the parties could learn anything extra from executing the protocol that they couldn't learn anyway, just from knowing their inputs and the final value .
The following is a well-known MPC result.

Fig. 1. Private falsification. Designer contributes a (private) system trace and Tester contributes a (private) formula . Robustness computation, and the generation of the next test based on , happen in MPC. The next test is revealed to Designer only, who inputs it to the SUT, and the loop repeats.
Theorem II.1. Any functionality f that can be computed in time that is polynomial in the input sizes can also be computed by any secure interactive MPC protocol.
This theorem establishes that theoretically, secure MPC can provide the privacy guarantees necessary for privacy-preserving robustness-guided falsification. There are indeed general-purpose compilers that can implement such an interactive protocol from a description of f. In this work, we use one such compiler called MP-SPDZ [15], which can accept f specified in a subset of Python. While compilers like MP-SPDZ provide a ready-made solution for MPC implementation, the resulting protocol is often prohibitively inefficient in practice. It is commonly necessary to tailor the computation f to be more “MPC-friendly.” In this work we do this by identifying isolated components of computation that can be handled separately of each other without breaking privacy guarantees. We elaborate this in the following section.
III. PRIVATE ROBUSTNESS-GUIDED FALSIFICATION
Testing loop overview. As explained in the introduction, falsification proceeds by minimizing robustness over the space of valid input signals to the SUT. A negative minimum robustness indicates a bug that should be debugged. If we let denote the discretized -dimensional input signal that is fed to the SUT and denote the SUT which maps input to output trace , then falsification solves
Since S is typically a black box (we can only simulate it but not formally analyze it), this minimization is solved using blackbox optimizers. We focus on one of the optimizers most commonly used in falsification, Simulated Annealing (SA) [3]. As shown in Fig. 1, both the robustness functionality and the SA functionality happen as secure MPCs, i.e. using cryptographic techniques that hide the computation results and all intermediary values. In [16], we demonstrated how to compute robustness in MPC and evaluated it empirically. In this paper, we do the same for solving (1) with SA.
Simulated annealing (SA). SA is iterative: it produces a sequence of pairs , with , s.t. inputs converge almost surely to the global minimizer of [3]. In practice, SA is interrupted
TABLE I PRIVACY OF DATA.
| Public | Designer Only | Tester Only | Hidden |
|---|---|---|---|
| SA temperature | SUT input | formula | |
| SUT input bounds | SUT output | anchor |
as soon as a falsifier is found, i.e. with negative . The initial is drawn from some distribution over . The initial candidate is produced by running steps 4-6 of the following with . Assume have been generated, and let . To generate and , SA
-
computes robustness
-
samples a random scalar positive temperature .
-
The candidate is accepted with probability proportional to . If accepted set , else .
-
samples a random unit-length direction in
-
computes the longest line segment passing through , contained in , along direction
-
samples uniformly at random from
-
Set and goto 1.
Steps 1-6 constitute one iteration. Executing all iterations in one MPC instance would require a prohibitively large circuit and large runtime. (To execute our functionality in MPC, the first step is to compile it into an arithmetic circuit, which involves unrolling all the iterations). So instead, we choose to set each iteration onto a fresh MPC instance: the circuit for one iteration is much smaller, and compiles and executes faster. The inputs to the instance for iteration are and .
Loop data. There are eight pieces of data passed through the testing loop. They are all referred to in Table I. The first column of the table contains public data known by both parties: SA temperature schedule and SUT input bounds . The temperature is independent of any party's data (in the probability sense) and chosen in advance of the testing loop. The bounds are also set in advance of the testing loop. They are known to Designer since they are derived from the design's characteristics. Having Tester know them does not significantly increase Tester's knowledge of the SUT, considering that they do not learn the actual inputs.
The second and third column contain Designer's and Tester's private data respectively. The last column shows the data that is hidden from both parties: the candidate point's robustness , the anchor point , and the anchor point's robustness . These three pieces of data are derived (indirectly) from private data, and thus must stay hidden from both parties.
Recall that each SA iteration gets its own fresh MPC instance. SA requires that three pieces of data are preserved between iterations – the candidate point , the anchor point, and the anchor point's robustness. (The SUT input is known by the Designer so they can provide it as input in the new iteration). To do this, we can use secret sharing [17], a cryptographic technique that allows each party to hold onto parts of the data without learning what it is. Secret sharing is provided by MP-SPDZ, allowing for data to persist between instantiations of MPC black boxes. By hiding the data between iterations, we can select or reject the candidate point without revealing anything about the robustness values – not even their ordering – a challenge of using MPC for SA.

Fig. 2. Concurrent phases. Preprocessing can occur before testing begins, whereas Setup can occur during the SUT simulation. Required sequential operations are first the SUT simulation, then online MPC robustness calculation, followed by online MPC SA.
We can also use secret sharing as a way to pass data between the robustness MPC box and the SA MPC box – MP-SPDZ allows us to output the computed robustness value directly as a secret share, and take it as input for the SA, hiding it from both parties in transit. Thus in total we store three pieces of data in secret sharing: the anchor, anchor's robustness, and candidate's robustness (computed during the iteration).
Improving efficiency. We can further decrease runtime by letting Tester compute the random direction from Step 4: this is just a vector in the unit sphere, and reveals nothing about the private data. Tester computes this in the clear and provides it as input to the MPC, which is faster than computing it cryptographically in MPC. Because our security model assumes semi-honest parties that follow the protocol (see Definition II.1), it is assumed that Tester will not maliciously manipulate to learn additional things it shouldn't.
Concurrent phases. In MP-SPDZ, an MPC black box has three phases: Preprocessing, Setup, and Online. By running certain phases concurrently, it is possible to further reduce runtime. The Online phase is the execution of the functionality (e.g. robustness calculation or SA); this is the only phase that requires the private data (formula and trace). The Preprocessing phase generates random data for the MPC computation, independently of the parties' inputs. MP-SPDZ allows for this preprocessing data to be computed and stored on disk to be used later, so we can perform this phase well in advance of the testing loop. The Setup phase is a preparation for running the Online phase and cannot be pre-executed, but it can be run concurrently with Online phase of another functionality. In Fig. 2 we show how the robustness Setup can be run while the SUT is running, and the SA Setup can be run while the robustness Online phase is running.
Communication cost is dependent on the MPC protocol used. We use a semi-honest version of the MASCOT protocol, so we refer the reader to [18] for details. The cost does not depend on the particular inputs used, only their sizes, otherwise the cost could itself leak something about the secret
Setup+Online MPC SA vs In-The-Clear SA

Fig. 3. Experimental results comparing setup+online MPC SA with in-the-clear SA. MPC times are greater, and grow at a greater rate, than in-the-clear times as the number of control points increases, but the MPC overhead (the ratio MPC / in-the-clear) appears to saturate at the factor of 6x. Both implementation runtimes appear to grow linearly as control points increase. Points are averages of 100 SA iterations of SA at 0.01 second resolution.
inputs, so the numbers in [18] are applicable to our setting.
IV. EXPERIMENTAL RESULTS
We aim to show that simulated annealing in MPC is not impractically slower than simulated annealing in the clear (i.e. not private). We compare runtimes for a single iteration of SA. The in-the-clear implementation is written in Python and computes temperature and random direction on-the-fly, as done in standard implementations, because their runtimes are insignificant portions of the work done in the SA computation. The private implementation uses the MP-SPDZ compiler via the Python interface, and runs with the semi-honest MPC protocol MASCOT [18]. The private implementation precomputes the temperature schedule ( ) and random directions and feeds them as inputs to the Online phase.
Experiments were run on a machine with a AMD Ryzen 7 PRO 7840U CPU and 16 GB of LPDDR5 RAM using MP-SPDZ version 0.4.2. The SUT was a bicycle model, with two types of controls: steering and acceleration. The output trace was of length 10, representing the bicycle's position along one axis every 5 seconds for 50 seconds total. The formula was . The SA temperature schedule was set to a geometric series . MPC fixed-point operations were 37 bits. The specific formula, SUT, and output trace length do not affect SA runtimes; the only inputs to SA are robustness and a vector of control points , and the only output is another vector of control points. Therefore we don't vary these three experimental factors.
Runtimes are shown in Fig. 3. Each data point in the figure is an average over 100 iterations. Standard deviation error bars indicate low variance in these results. These implementations are not optimized for best timing results; rather, they were chosen to be straightforward implementations of the computations. Further optimizations are available – for example, MP-SPDZ has a C++ interface. Even considering our naive implementation, the results in Fig. 3 suggest that private testing is practical: the key metric is the MPC overhead relative to how long it takes to simulate the system with one input (Fig. 2). The MPC implementation, in these experiments, takes tens of milliseconds, and is at worst 6 times slower than the in-the-clear implementation. This is noticeable but is unlikely to factor significantly into the overall time of testing. Most SUTs take longer than tens of milliseconds to run. E.g. a PSPICE circuit or a Hardware-in-the-Loop simulation easily takes minutes to hours. In addition, the time taken for MPC increases as the number of control points (size of the SUT input) increases, but it appears to have a linear scaling; thus even with significantly more control points, the MPC implementation would be expected to be relatively efficient. Future work will perform a comprehensive set of experiments.
REFERENCES
[1] O. Maler and D. Nickovic, “Monitoring temporal properties of continuous signals,” in International symposium on formal techniques in real-time and fault-tolerant systems. Springer, 2004, pp. 152–166.
[2] G. E. Fainekos and G. J. Pappas, “Robustness of temporal logic specifications for continuous-time signals,” Theoretical Computer Science, vol. 410, no. 42, pp. 4262–4291, 2009.
[3] S. Kirkpatrick, C. D. Gelatt Jr, and M. P. Vecchi, “Optimization by simulated annealing,” science, vol. 220, no. 4598, pp. 671–680, 1983.
[4] Y. Xiang, D. Sun, W. Fan, and X. Gong, “Generalized simulated annealing algorithm and its application to the thomson model,” Physics Letters A, vol. 233, no. 3, pp. 216–220, 1997.
[5] D. Evans, V. Kolesnikov, and M. Rosulek, “A pragmatic introduction to secure multi-party computation,” Foundations and Trends® in Privacy and Security, vol. 2, no. 2-3, pp. 70–246, 2018.
[6] H. Abbas, “Work-in-progress: Private runtime verification,” in 2019 Int. Conf. Embedded Softw. (EMSOFT). New York, NY, United States: Association for Computing Machinery, 2019, pp. 1–2.
[7] H. Sasakawa, H. Harada, D. duVerle, H. Arimura, K. Tsuda, and J. Sakuma, “Oblivious evaluation of non-deterministic finite automata with application to privacy-preserving virus genome detection,” in Proc. 13th Workshop Privacy Electron. Soc., ser. WPES '14. New York, NY, USA: ACM, 2014, p. 21–30.
[8] M. Waga et al., “Oblivious monitoring for discrete-time stl via fully homomorphic encryption,” in Runtime Verification, E. Ábrahám and H. Abbas, Eds. Springer Nature Switzerland, 2025, pp. 59–69.
[9] T. A. Henzinger, M. Karimi, and K. Thejaswini, “Privacy-preserving runtime verification,” in Proc. 2025 ACM SIGSAC Conf. Comput. Commun. Secur., 2025, pp. 2774–2787.
[10] M. Karimi, K. Thejaswini, R. Bloem, and T. A. Henzinger, “Sharing the secret: Distributed privacy-preserving monitoring,” arXiv:2603.20107, 2026.
[11] T. Sakuma, S. Okuhara, and A. Kawachi, “Scalability evaluation of secure computations for multi-issue negotiation,” IEICE Trans. Inf. Syst., 2026.
[12] Y. Hong, J. Vaidya, H. Lu, and L. Wang, “Collaboratively solving the traveling salesman problem with limited disclosure,” in IFIP Annu. Conf. Data Appl. Secur. Privacy. Springer, 2014, pp. 179–194.
[13] M. C. Silaghi and G. Friedrich, “Secure stochastic multi-party computation for combinatorial problems,” Florida Institute of Technology, Tech. Rep., 2005.
[14] R. Cramer, I. B. Damgård, and J. B. Nielsen, Secure Multiparty Computation and Secret Sharing. Cambridge University Press, 2015.
[15] M. Keller, “MP-SPDZ: A versatile framework for multi-party computation,” in Proc. 2020 ACM SIGSAC Conf. Comput. Commun. Secur., 2020.
[16] C. Koll, M. Rosulek, and H. Abbas, “Privacy-preserving robust monitoring of dense-time temporal logic,” in acceptance at Formal Methods in Computer-Aided Design 2026, Graz, Austria, 2026.
[17] A. Shamir, “How to share a secret,” Communications of the ACM, vol. 22, no. 11, pp. 612–613, 1979.
[18] M. Keller, E. Orsini, and P. Scholl, “Mascot: Faster malicious arithmetic secure computation with oblivious transfer,” in Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, ser. CCS '16. New York, NY, USA: Association for Computing Machinery, 2016, p. 830–842. [Online]. Available: https://doi.org/10.1145/2976749.2978357