arXiv:2608.29111cs.CRAug 2026

Manuscript Offprint

arXiv:2608.29111

Auditing and Mitigating Privacy Leakage in Cloud-Edge Collaborative Decoding

Kejia Zhang, Tianyuan Zou, Zixuan GU, Yang Liu

Abstract

Applications such as personalized assistance and proprietary document analysis require large language models (LLMs) to generate outputs from private data. Yet powerful LLMs typically cannot be deployed on the resource-constrained devices where private data resides, and uploading private data to cloud-hosted LLMs exposes sensitive information. Recent work addresses this tension with a cloud-edge collaborative decoding paradigm, where private data are kept on the edge with a small language model (SLM) producing next-token distributions, which are fused with predictions from a cloud LLM operating solely on public data. In this paper, we systematically analyze the privacy risks of such a paradigm with a novel evaluation framework using constructed QA datasets, which show that such collaboration can expose substantial private-context information. To address such privacy leakage, we propose COVEIL, a defense mechanism which dynamically optimizes transmitted signals to suppress leakage during decoding time while preserving the collaborative quality. Extensive evaluations demonstrate that COVEIL consistently improves the privacy-utility trade-off over existing baselines by reducing data leakage by up to 87.2%, with minimal accuracy loss.

1 Introduction

Large language models (LLMs) have emerged as powerful tools for reasoning over private data, with applications spanning clinical decision support (Hager et al., 2024), personal assistance (Salemi and Zamani, 2025), and proprietary document analysis (Ma et al., 2024). However, deploying LLMs raises a core conflict between capability and privacy. Powerful LLMs are computationally expensive to run on edge devices that private data often resides (Lu et al., 2025; Fu et al., 2024), while uploading private data to cloud-hosted LLMs exposes it to external service providers (Tong et al., 2025). Prior work mitigates this tension by deploying small language models (SLMs) through knowledge distillation, model compression (Gu et al., 2024; Sun et al., 2024; Hu et al., 2025; Feng et al., 2026; Tuo and Wang, 2026), or by sanitizing private prompts before cloud inference (Tong et al., 2025; Zhang et al., 2025a). However, these approaches limit task utility by relying on smaller local models or removing useful context before cloud inference.

To better leverage LLM capability without uploading the private context, an important research direction couples a cloud-hosted LLM with a locally deployed SLM, allowing the two models to collaborate through decoding signals while the cloud LLM operates only on public or non-sensitive data and the SLM retains the private context (Zhang et al., 2024b; Zheng et al., 2025; She et al., 2025; Liu et al., 2025). We refer to this paradigm as cloud-edge collaborative decoding. At each autoregressive step, the edge SLM and the cloud LLM each produce a next-token distribution, and the two distributions are fused to generate the next token.

Depending on where the two next-token distributions are fused, this paradigm can be categorized into cloud-side fusion, where the edge SLM uploads its next-token probabilities (probability-level signal) to the cloud (Zhang et al., 2024b), and edge-side fusion, where the edge locally fuses the two distributions and synchronizes the sampled token (token-level signal) to the cloud (Zheng et al., 2025; She et al., 2025). Although prior work has shown that next-token probabilities can leak information about input data (Morris et al., 2024; Finlayson et al., 2024; Nazir et al., 2025), a systematic analysis of the distinct privacy risks inherent to both probability-level and token-level signals remains largely absent.

Motivated by this, we systematically analyze

∗^{*}Corresponding author: yang-veronica.liu@polyu.edu.hk.

Figure

Figure 1: Cloud-edge collaborative decoding, where private context remains on the edge under two fusion modes.

whether the cloud-observed decoding signals during collaborative decoding leak the private edge-side context. We introduce DECODELEAK, a privacy evaluation framework for cloud-edge collaborative decoding, and construct two QA benchmarks from medical and commonsense QA sources (Jin et al., 2021; Huang et al., 2019); each instance pairs a public query with an edge-side private context. Each data sample also includes manually annotated private evidence, defined as a set of critical sensitive text spans in the private context needed for answering the public query, and are used to quantify the level of leakage. For example, for a medication-selection query, private context spans such as “respiratory depression”, “pupillary constriction” are annotated as private evidence because they are needed to select the correct medication. DECODELEAK evaluates leakage in two sequential steps: private evidence recall, which measures the fraction of annotated private evidence exposed by the top-K token IDs from the per-step next-token distributions; then private context inversion which uses the corresponding per-step top-K exposure sequence as the attack input for reconstructing the private context. We find that cloud-observed decoding signals can reveal substantial private evidence using our evaluation framework.

These findings motivate us to develop privacy-preserving collaborative decoding mechanisms. Existing defenses typically apply fixed global controls to uploaded distributions (Zhang et al., 2024b; Thareja et al., 2026), or use privacy-aware rules to choose the synchronized token (Ghoukasian et al., 2025; Vinod et al., 2025). Such controls may suppress utility-critical signals or retain leaky low-utility ones. We therefore propose COVEIL, which optimizes each cloud-observed signal under a utility-privacy trade-off at decoding time, enabling adaptive selection of upload probabilities in cloud-side fusion, or a synchronized token in edge-side fusion. Experiments show that per-step utility-aware signal selection reduces private evidence leakage while preserving task utility.

In summary, this work makes three contributions. First, we identify and analyze privacy risks of cloud-edge collaborative decoding, showing that uploaded SLM probabilities and synchronized tokens can expose private evidence and enable private context inversion. Second, we present DECODELEAK, a privacy evaluation framework, and construct two QA benchmarks with public queries, private edge-side contexts, and private-evidence annotations. Third, we propose COVEIL, a post-hoc privacy-aware collaborative method that optimizes cloud-observed decoding signals at decoding time without incurring additional model training, and show that it significantly improves the privacy-utility trade-off over existing baselines.