arXiv:2610.27431cs.AROct 2026

Manuscript Offprint

arXiv:2610.27431

Interflow: Breaking the Offline-Online Barrier for Private AI at the Edge

Hanieh Totonchi Asl, Ebrahim Nouri, Zhuoran Li, Danella Zhao

Hanieh Totonchi Asl, Ebrahim Nouri, Zhuoran Li, Danella Zhao

Department of Electrical and Computer Engineering, University of Arizona, Tucson, United States

{haniehta, ebinouri, zli1122, danellazhao}@arizona.edu

Abstract—Privacy-preserving machine learning (PPML) offers a promising path toward bringing powerful AI services to the edge without exposing sensitive user data. However, its practical deployment remains constrained by the high communication, computation, and data-movement costs of secure multi-party computation (MPC), particularly during nonlinear inference. Existing MPC systems typically decouple input-independent correlated randomness generation from online execution, creating substantial memory pressure to buffer single-use cryptographic data. Moreover, limited storage can force a stop-and-refill execution pattern that repeatedly stalls the pipeline to replenish these buffers, bringing randomness generation back onto the critical path. We propose Interflow, an algorithm-hardware co-design that rethinks this separation by batch-wise processing and pipelining correlated-randomness generation with online execution: while the current batch consumes pre-generated randomness to execute secure nonlinear operations, correlation generation proceeds concurrently for the next batch. By leveraging interleaved execution, efficient data movement, and hardware acceleration, the design transforms preprocessing from a serialized, storage-intensive offline phase into a continuously overlapped pipeline that generates correlated randomness closer to the point of consumption, reducing memory footprint and data movement overhead. Implemented on the Zynq UltraScale+ZCU102, Interflow improves nonlinear evaluation throughput by up to 1.55×1.55\times for CNN operators and 1.48×1.48\times for transformer operators. It achieves up to 1.26×1.26\times speedup for ResNet-50 and up to 1.21×1.21\times speedup for BERT-base, and reduces memory footprint by up to 37%, compared with baseline frameworks.

I. INTRODUCTION

Machine Learning as a Service (MLaaS) enables users to outsource inference to the cloud; however, its deployment in sensitive domains such as healthcare, finance, and personal services raises fundamental privacy concerns. Privacy-preserving machine learning (PPML) addresses this challenge through cryptographic primitives such as homomorphic encryption (HE) and secure multi-party computation (MPC), enabling computation over encrypted data without exposing raw inputs and model weights [1]–[5]. Practical two-party PPML frameworks commonly adopt a hybrid approach, evaluating linear layers via HE and nonlinear operations (such as ReLU, GELU, MaxPooling, and Softmax) through secret-sharing (SS)-based MPC protocols [6]–[10]. Despite their benefits, secure nonlinear operations incur substantial computation and communication overhead and often require large amounts of correlated randomness, making them a critical bottleneck on resource-constrained edge devices [11], [12].

Accepted to special session track.

Modern MPC protocols adopt an offline–online paradigm, in which input-independent cryptographic correlations such as oblivious transfers (OTs) and Beaver triples are generated during an offline preprocessing phase, shifting much of the expensive computation and communication away from the online phase [6], [7]. Pre-generating correlated randomness requires substantial storage; in practice, systems maintain only a bounded pool of precomputed OTs or Beaver triples (e.g., 10710^{7} OTs in Cheetah). Once exhausted, regeneration stalls execution and introduces significant latency, bringing offline preprocessing onto the online critical path. This bottleneck becomes especially severe on resource-constrained devices.

Key Observations. Conventional preprocessing treats correlation generation as a decoupled phase. Under resource constraints, however, correlated randomness becomes a continuous lifecycle challenge: fresh values must be generated, stored in different representations and widths, converted for protocol-specific operations, delivered to their consumption points, and discarded after a single use. Our characterization of a baseline framework on an edge client shows that repeated correlation regeneration accounts for 43% of client-side secure-comparison cycles during ResNet-50 inference. This substantial overhead motivates optimizing the entire correlation lifecycle, as accelerating generation alone may simply shift the bottleneck to storage, conversion, or data movement rather than eliminating it.

Design Insights. Based on these observations, we present Interflow, an algorithm–hardware co-design for OT-based secure nonlinear inference that jointly manages the complete correlation lifecycle, from generation and representation-aware storage to sender/receiver-specific conversion and online consumption. Our central insight is to split preprocessing at its final communication dependency and consumption boundary. This allows receiver-local COT generation to be deferred until near consumption and integrated directly into the execution dataflow. Building on this decomposition, Interflow employs batch-wise, role-aware processing to overlap correlation generation, conversion, and consumption, avoiding the need to generate and store the full set of expanded correlations in advance.

Our main contributions are summarized as follows:

  • System-level characterization. We identify and quantify correlation-lifecycle bottlenecks in OT-based nonlinear inference on resource-constrained edge devices, including correlation regeneration on the online critical path,

wide intermediate representations, and protocol-imposed sender–receiver asymmetry.

• Deferred correlation processing with cross-phase dataflow. We propose a role-aware COT extension design that defers receiver-local computation beyond communication-dependent processing and integrates correlation generation and conversion with online secure execution in a memory-bounded, batch-streaming dataflow, reducing critical-path regeneration, memory footprint, and data movement.

• Role-aware preprocessing. We design a dual-path correlation-processing architecture that coordinates bidirectional OT for Beaver triple generation to improve throughput, reduce intermediate buffering, and enable efficient streaming execution. We further reformulate sender-side correlation conversion as independent index-aligned hash streams to enable parallel execution.

• Practical edge PPML evaluation. We implement Interflow on a Zynq UltraScale+ ZCU102 platform and evaluate secure nonlinear inference for ResNet-50 and BERT-base. Interflow improves nonlinear evaluation throughput by up to 1.55×1.55\times for CNN operators and 1.48×1.48\times for transformer operators, achieves up to 1.26×1.26\times speedup for ResNet-50 and 1.21×1.21\times speedup for BERT-base, and reduces memory footprint by up to 37%, demonstrating the practicality of efficient privacy-preserving AI inference on resource-constrained edge platforms.