MOSAIc enables secure outsourcing of large transformer inference with near-full-precision accuracy
MOSAIc can outsource AI computation to untrusted servers while preserving model confidentiality and achieving perplexity comparable to full-precision BF16 on 70B transformers
AI/ML arXiv 31 Jul 2026 Method Prototype evidence
Published as “MOSAIC: Masked Outsourcing of Secure AI Computations”
Why it matters
Enables confidential inference for LLMs with modest (3-11×) overhead compared to non-confidential inference, making large-scale secure AI deployment feasible.
Summary
MOSAIC matches full-precision BF16 accuracy on 70B-parameter transformers while providing secure outsourcing, and its runtime is orders of magnitude faster than prior secure matrix-multiplication schemes. The protocol achieves optimal O((m+ n)l) client overhead by using a masking scheme and random Hadamard rotations to control error growth. In practice it runs 3×-11× slower than plain non-confidential inference due to 32-bit integer emulation, but still far faster than earlier secure outsourcing methods. The evidence is based on real-world LLM inference experiments; no threat model is explicitly stated.
What they found 2
- MOSAIC’s perplexity matches full-precision BF16 inference on 70B models while providing confidentiality.
“On large 70B transformer models, MOSAIC’s perplexity is comparable to popular quantization approaches and even matches full-precision BF16 inference on HumanEval.”
- Client and server runtimes are orders of magnitude faster than prior work.
“In Figure 2, we highlight client and server run-times in MOSAIC that are orders of magnitude faster than those reported by [6]”
Caveats 2
- MOSAIC is roughly 3× (decode) to 5-11× (prefill) slower than running inference for the same 70B models on a single local GPU of the same type.
- Current hardware limitations. Cryptographic protocols such as MOSAIC operate over integer rings, necessitating 32-bit integer arithmetic, which is not natively supported in the fastest cores of modern AI accelerators. We implement an emulation thereof over 8-bit Tensor cores, which results in a ∼3× (decode) to 5-11× (prefill) slow-down versus a baseline
What’s new here 4
- Introduces an approximate secure matrix-multiplication protocol with optimal client complexity O((m+ n)l).
- Uses random Hadamard rotations to bound error accumulation across many transformer layers.
- Provides an end-to-end implementation that outsources linear layers of 70B-parameter models with accuracy comparable to BF16.
- Demonstrates runtime improvements of orders of magnitude over prior secure outsourcing approaches.