# Answer-Only Disclosure: Private-Context LLM Assistance over Web APIs with a Leakage Ledger

ADLER keeps private documents out of cloud LLM transcripts while still improving answers

Liang Yuan, Xiaohu Du, Ruikun Luo, Jinze Wang, Mashud Rana, Kaibin Wang and 3 more · arXiv · 2026-10-28

- **Problem** Collaborative decoding can leak private text through the messages a client sends to the cloud, even when the final answer looks clean. Speculative decoding sends rejected drafts that carry private values, and auditing only the answer misses this.
- **Method** ADLER streams cloud tokens, accepts them only when the client agrees, and caps leakage with a ledger.
- **Results** On masked GSM8K, ADLER with an unlimited budget raised a 0.5B client from 0.41 to 0.83 under lenient parsing. Budgets of 16 nats or less kept accuracy near the cloud-only baseline.

![Figure 2: One round of ADLER. The cloud sees only the public view 𝑉 and prefixes of the answer; the private context 𝑋, local scores, weights and rejected toke…](https://refivu.com/papers/b2185e14-6ffa-4c7d-933b-830792c6ac03/figures/figure-f4823295f5627251098f666a84c6da28.png?thumb=512)

**Figure 2** : One round of ADLER. The cloud sees only the public view 𝑉 and prefixes of the answer; the private context 𝑋, local scores, weights and rejected tokens never leave the client.

[Original paper](https://arxiv.org/abs/2610.38126v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Liang Yuan, Xiaohu Du, Ruikun Luo, Jinze Wang, Mashud Rana, Kaibin Wang, Jiangwen Zhou, Bo Li, Xiaoyu Xia · Answer-Only Disclosure: Private-Context LLM Assistance over Web APIs with a Leakage Ledger · Original paper figure · Extracted the figure area from page 4 of the original PDF.

## Why the transcript can leak more than the answer

Speculative decoding suits an edge-cloud assistant because the small model runs on the device and can read the private file. The catch is that every draft crosses the network, including the drafts the large model rejects. In the bank example, the small model drafts a reply quoting the $12,480 balance, the cloud rejects it, and the user sees only a clean answer.

The leak sits in the transcript, not the answer, so an auditor who checks only outputs misses it. A privacy review that only inspects the prompt therefore misses what the decoder sends in the middle of an answer.

![Figure 1: Messages exchanged while answering a question about a private document 𝑋 , top to bottom; the cloud’s initial input is the public view𝑉 . (a) Specula…](https://refivu.com/papers/b2185e14-6ffa-4c7d-933b-830792c6ac03/figures/figure-703a4af920f2789e9355baa61f74fc0f.png?thumb=512)

**Figure 1** : Messages exchanged while answering a question about a private document 𝑋 , top to bottom; the cloud’s initial input is the public view𝑉 . (a) Speculative decoding with private drafts leaks the secret through a rejected draft. (b) ADLER sends only prefixes of the answer, and a client-side ledger caps what the answer reveals.

[Original paper](https://arxiv.org/abs/2610.38126v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The authors test this in a planted-secret audit, where a random six-digit code sits in a document and the user asks for it. In that audit, exact private-draft speculative decoding never emitted the code in its answers. That count is a lower bound, since partial exposures weren't counted, and the restricted cloud exposed the code in none. In the same audit, no ADLER configuration exposed the code beyond the answer.

Redacting the prompt doesn't help, because the drafts are written by a model that read the original document. Public drafts drawn from the cloud's own samples still cause trouble, because accepting or rejecting them can make the emitted token jointly informative about the private context. CoVeil reduces such exposure empirically, and DP-Fusion bounds a single model's output.

Neither of them bounds the whole interactive transcript, which is why the authors need a different design.

## Restart streaming keeps messages to answer prefixes

The key idea reverses the usual draft-and-verify loop, so the cloud drafts and the client decides. The client samples every token itself, and the stream continues only while its sample matches the cloud's streamed token. At the first mismatch, or after L positions, the client sends the answer prefix so far and asks the cloud to continue from it.

The cloud never sees a candidate the client rejected, because rejected tokens are never sent.

The cloud resumes from that prefix using its prefix cache, so the client never transmits drafts or local probabilities. Positions after a disagreement are still computed by the cloud, but the implementation discards them. Hosted APIs currently offer only some of these, which limits where the design can be deployed. Figure 2 lays out one round and separates what the cloud sees from what stays on the client.

A reply costs 4 + 8K bytes per streamed position, which is 516 B at K=64. That compares to 607 KB for a full-vocabulary probability vector over Qwen2.5's 151,665 tokens.

The authors prove that the transcript is a deterministic function of the public view V, the cloud's randomness R and the answer Y. This holds for every fusion rule and every cloud, including a malicious one. Conditioned on V, R and Y, the mutual information between the private context and the transcript is zero. So auditing the answer also audits the whole exchange, which is the property the design is after.

Restart streaming therefore needs no coupling, and it avoids the accounting failure of Proposition 3.2. The proof concerns message content only, since timing is outside the model.

## Tilting the cloud's distribution under a ledger

The client doesn't sample from the cloud's distribution directly; it tilts that distribution toward what the private context supports. That reference depends only on the cloud's reply, so it never encodes the private context, yet every token still gets positive mass.

The local score in equation (1) combines two log-ratios, and each term does something different. The evidence term, weighted by a, passes on only the shift that the private context induces in the local model. The local term, weighted by b, pools the local model with the cloud in the manner of geometric pooling. The score is clipped to \[-c, c\], and the tilted law is proportional to the public reference times exp(lambda times the score), with lambda in \[0, 1\].

The ledger charges each answer the Rényi divergence of the tilted law from the public reference, measured in nats. At each position the client picks the largest lambda that the remaining budget allows, found by a fixed number of bisection steps. It then debits the divergence from the budget, so the budget shrinks as the answer grows. Theorem 4.4 bounds the divergence of the transcript law from the reference by the budget, and for alpha equal to 1 bounds the mutual information by that budget.

Charges add across answers about the same document, so the ledger should be kept per document.

Budgets of 4 or 16 nats keep a six-digit secret out of the answers in the planted-secret audit. Unbudgeted, the tilt raises a 0.5B client on masked GSM8K from 0.41 to 0.83 under lenient parsing. The average charge for those step-by-step solutions is 52 to 72 nats per answer, and budgets of 16 nats or less stay near restricted-cloud performance.

The paper's ledger therefore makes the cost of the gain explicit, rather than hiding it in the protocol.

## GSM8K with masked numbers: how much of the full-upload gap tilting closes

The GSM8K experiment asks whether tilting closes most of the gap between the restricted cloud and uploading the full problem. The cloud sees each problem with every number replaced by a placeholder, so it can reason but not compute. The authors use 300 test problems, with 50 validation problems from the training split used to choose the score.

No setting was tuned on test outcomes, and the models are pinned Qwen2.5-Instruct checkpoints with a 7B cloud model and 0.5B or 1.5B local models.

Under strict matching, the restricted cloud scores only 0.012, so placeholders alone rarely lead to a solved problem. Full upload reaches 0.918 under lenient parsing, while the 0.5B local-only client reaches 0.410 on the same scale. Lenient scoring accepts answer formats beyond the official parser, and the local-only client scores far lower under strict parsing.

The program baseline, where the cloud writes a solver that the client runs on the real numbers, scores 0.691 under both scoring rules. Under lenient scoring the margin is 0.14 for the 0.5B client and 0.16 for the 1.5B client. ADLER spends 72 and 52 nats for this margin, while the program discloses nothing beyond the public view. A user who won't accept that charge for arithmetic of this kind should prefer the program.

Budgets shape this result: at 16 nats the tilt stays near the restricted cloud, at 0.012 strict and 0.024 lenient. Accuracy rises steeply only at large budgets, with 64 nats recovering about two-thirds of the gain.

## Multi-hop QA gains are smaller and uneven

Here the small local model adds less evidence, so ADLER's gains are smaller and uneven across the four panels. The QA score was selected on the question-only view, and under BM25 the public view already carries the evidence. With the 1.5B local model, the tilt beats the restricted cloud but not local-only.

Against the linear mixture at unlimited budget, the tilt scores higher on every QA panel, by 0.015 to 0.063 F1. Tuning the mixture's weight cap on validation for the 0.5B pair doesn't close that gap. Giving the mixture the tilt's full reference doesn't help it on QA either, scoring 0.18 against 0.229 for the tilt. Figure 3 plots F1 against mean nats spent per answer, so the cost of each QA gain is visible.

From question-only to BM25, the gap to full upload narrows from 0.152 to 0.134 F1 on 2WikiMQA. The restricted cloud improves more over that change, by 0.081 and 0.121, so the tilt's advantage over it shrinks.

## Audit results and what the ledger bound covers

The planted-secret audit checks whether the ledger's bound holds on the transcripts the protocol actually produced. The audit covers 96 documents, half with questions about the code and half with the original questions. No answer-only ADLER configuration put the code in the cloud transcript beyond the answer, with 0 of 48 cases on both question types.

A one-sided 95% upper bound on that rate is 6.1%. Re-deriving the client's messages from the public view, the answer and the recorded replies reproduced all 57,372 answer-only transcripts.

Private-draft speculative decoding never emitted the code, yet it exposed the code to the cloud in 5 of 48 extraction sessions through its drafts. This is the leakage that Proposition 3.1 describes, where a rejected draft carries the private value to the server. Local-only emits the code for 47 of 48 extraction questions, and unbudgeted fusion emits it for 46 of 48.

The tilt at budgets 4 and 16 never emits the code, and the mixture at budget 16 doesn't either. Full upload exposes the code in every document, so the ledger does the binding in this audit.

At budget 4, the Theorem 4.4(iii) bound caps the chance of guessing a uniform six-digit code at 0.34. A uniform six-digit code carries about 13.8 nats, so the budget of 4 nats is far below that full entropy. On the other questions, the tilt at budget 16 scores 0.29 F1, compared to 0.25 for restricted and 0.30 for local-only. With 48 questions, neither difference is significant, so the audit shows no utility cost it can detect.

## Ledger spend and communication cost

Those answers carry an average charge of 52 to 72 nats per answer, so the budget decides how much of the gain survives. Budgets of 16 nats or less keep accuracy near the restricted cloud, while 64 nats recover about two-thirds of the gain. At 64 nats the strict score reaches 0.490, compared to 0.753 when the budget is unlimited. The budget bounds disclosure relative to the public reference, so it does not measure what one answer reveals.

QA spend behaves differently, with a heavy tail where the median answer under the tilt spends 10 nats. Two-thirds of QA answers spend at most 16 nats, so a 16-nat cap changes F1 little. Every GSM8K answer exceeds 16 nats, with a 10th percentile of 48 nats, so such a cap removes the benefit there. On MuSiQue with the question-only view, the tilt at 16 nats still beats the restricted cloud by 0.061 with the 0.5B model.

With the 1.5B model that gap is 0.078, so a 16-nat cap keeps much of the QA benefit but is too loose to protect a short secret.

Restart streaming also cuts communication time, because requests fall from 292 to 37 as lookahead grows. The same model gives 5.4 s for L=8 and 4.0 s for L=16, excluding computation. L=1 matches the one-token-per-round-trip pattern of CoVeil's edge-side fusion, so it serves as the baseline. Lookahead changes only the cost here, since all 300 answers stay token-identical to the control at L=1 and L=16.

## What the ablations change

The ablations vary one setting at a time against the frozen GSM8K configuration, and the evidence weight a matters most. Figure 5a varies the evidence weight a, and accuracy traces an inverted U in a. Larger weights, a=3 and a=4, spend more nats, 108 and 153, compared to 71 for the frozen setting, and they score lower.

The budget curve stays flat at small values, so a cap of 16 nats buys little on GSM8K. Budget effects appear only at large values: 16 nats buy 0.013 and 32 nats buy 0.060. At 64 nats the score reaches 0.490, about two-thirds of the 0.753 unbudgeted gain. The reference and clip settings matter less for the reference and more for the clip. A tighter clip at c=10 costs 0.13, which is likely the cause of the evidence-only deficit.

Swapping the fusion rule hurts the most on GSM8K. With the tilt's full reference, the linear mixture reaches only 0.09 on GSM8K at 168 nats, compared to 0.75 at 71 nats for the tilt. Reply size and lookahead change the cost but not the answers. With K=8, replies shrink sevenfold, from 216 kB to 30 kB, at a cost of 0.03 strict and 0.05 lenient accuracy.

## Limitations of the ADLER guarantee and what stays untested

ADLER protects message content, but it doesn't protect timing. Timing can depend on local compute over the private context X, and the authors don't address that channel. The public view V is disclosed by design, and the bounds take the mechanism M as given. So the guarantee covers what the messages say, not how long the client took to send them.

The KL guarantee is average-case, which makes it weaker than pure differential privacy. Rényi orders α above 1 give tail bounds, but they cost utility. A user who needs a worst-case bound therefore can't read the ledger charge as one. The ledger bound in Theorem 4.4 is stated for the KL case, with α equal to 1.

The program baseline needs computation over masked values, and the QA tasks don't have such values. So that baseline was only run on GSM8K, where the numbers are masked. The public views are rule-based, such as BM25 selection, suffix and entity masking, rather than learned. The network times are modelled with a trace-based cost model, not measured on a live API.

The authors list zero-leakage baselines for document tasks as future work. They also leave learned public views and a live Web API deployment for later work. The paper didn't test a live hosted API, since it runs on pinned Qwen2.5 checkpoints.

## Paper info

- **Authors**: Liang Yuan, Xiaohu Du, Ruikun Luo, Jinze Wang, Mashud Rana, Kaibin Wang, Jiangwen Zhou, Bo Li, Xiaoyu Xia
- **Venue**: arXiv · Preprint
- **First published**: 2026-10-28
- **Added**: 2026-11-1
- **Updated**: 2026-10-28
- **Version**: v1
- **arXiv**: 2610.38126
- **Category**: cs.CR · cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2610.38126v1) · [PDF ↗](https://arxiv.org/pdf/2610.38126v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Web assistants increasingly answer questions about a user's private documents by pairing a small on-device model with a cloud LLM behind a Web API. In collaborative decoding, the document stays on the client, and the cloud receives only a public view that the user approves, such as the question alone, but the two models exchange messages while the answer is generated. We show that the message transcript can disclose private content that neither the public view nor the answer contains. In a planted-secret audit, speculative decoding with private drafts did not include the secret code in its answers, yet sent the code to the cloud in rejected drafts. We present ADLER, a decoding protocol for streaming LLM APIs in which every message to the cloud depends only on the public view and the answer the user sees, regardless of how the client combines the two models or how the cloud behaves. A client-side leakage ledger then bounds how much the answer itself reveals relative to a public reference process built from the cloud's replies. In the audit, no ADLER configuration exposed the secret beyond the answer. On GSM8K math problems with numerical values masked in the cloud's input, ADLER with an unlimited leakage budget raises the exact-match accuracy of a 0.5B client from 0.41 to 0.83 and of a 1.5B client from 0.67 to 0.85 under lenient answer parsing, close to the 0.92 achieved by uploading the full problem. It also exceeds a zero-leakage program baseline (0.69) by 0.14 and 0.16, respectively. In this baseline, the cloud writes a program that the client runs offline using the private numbers. The ledger records the disclosure charge associated with this gain; budgets of 16 nats or less leave accuracy near the cloud-only baseline on GSM8K.

## Quote from the paper

Liang Yuan, Xiaohu Du, Ruikun Luo, Jinze Wang, Mashud Rana, Kaibin Wang, Jiangwen Zhou, Bo Li, Xiaoyu Xia (2026). Answer-Only Disclosure: Private-Context LLM Assistance over Web APIs with a Leakage Ledger. arXiv:2610.38126v1. https://arxiv.org/abs/2610.38126v1

**BibTeX**

```
@misc{yuan2026answer,
  title = {{Answer-Only Disclosure: Private-Context LLM Assistance over Web APIs with a Leakage Ledger}},
  author = {Liang Yuan and Xiaohu Du and Ruikun Luo and Jinze Wang and Mashud Rana and Kaibin Wang and Jiangwen Zhou and Bo Li and Xiaoyu Xia},
  year = {2026},
  eprint = {2610.38126},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.38126v1}
}
```

## Other paper commentary

- [Evaluating Causal Reasoning in LLMs: A Case Study in the Challenges of Procedural Generation](https://refivu.com/en/papers/44f8c516-c47c-471f-9556-bea76fa1ad9e-evaluating-causal-reasoning-in-llms-a-case-study.md)
- [A Unified Approach to Routing and Cascading for LLMs](https://refivu.com/en/papers/294c4944-64cf-4c2a-8c0d-d1cb8624f2cb-a-unified-approach-to-routing-and-cascading-for.md)
- [DataDecide: How to Predict Best Pretraining Data with Small Experiments](https://refivu.com/en/papers/b2e5b927-f525-4063-8956-246603aff1fb-datadecide-how-to-predict-best-pretraining-data-with.md)
- [NestQuant: Nested Lattice Quantization for Matrix Products and LLMs](https://refivu.com/en/papers/fcf33004-4ca4-4b0c-bd9b-474a77e2a35d-nestquant-nested-lattice-quantization-for-matrix-products.md)
- [InfAlign: Inference-aware language model alignment](https://refivu.com/en/papers/c8a29ed9-8ab2-4e59-9865-5055bb8ee487-infalign-inference-aware-language-model-alignment.md)
- [MixMin: Finding Data Mixtures via Convex Minimization](https://refivu.com/en/papers/1812a7ac-7070-4e11-93d3-514e69d7cf83-mixmin-finding-data-mixtures-via-convex-minimization.md)
- [Where You Inject Matters: The Trust Region Effect in LLM Agents](https://refivu.com/en/papers/a6f00920-d637-4a24-9dd3-61dad04fe8ca-where-you-inject-matters-the-trust-region-effect.md)
- [Human Evaluation with Automatic Scores: Separating Sampling and Estimation Gains](https://refivu.com/en/papers/7a48d7f5-fd3c-4c64-a5d1-5f54a5bed937-human-evaluation-with-automatic-scores-separating-sampling.md)
- [Generative modeling for fusion: a large-scale benchmark of stellarator fast-ion simulations](https://refivu.com/en/papers/cc483802-5f71-4616-aff4-b9100d944684-generative-modeling-for-fusion-a-large-scale-benchmark.md)
- [What a Weight Update Buys: Leverage Across Training Stages](https://refivu.com/en/papers/e56ef3d5-e9f9-400c-9562-56552225cc44-what-a-weight-update-buys-leverage-across-training.md)
- [Agentic Backdoors via Pretraining Poisoning](https://refivu.com/en/papers/efc6c087-fb4c-405a-b03c-44c39cb4e065-agentic-backdoors-via-pretraining-poisoning.md)
- [How Deterministic SAST and AI Security Agents Divide the Work: Coverage, Harness Policy and Cost in Snyk VulnBench 2.0](https://refivu.com/en/papers/535d74aa-e296-4fdf-b695-1df8592b8b66-how-deterministic-sast-and-ai-security-agents-divide.md)

## Terms in this paper

- [GSM8K](https://refivu.com/en/terms/e48f0e01064d-gsm8k)
- [F1](https://refivu.com/en/terms/a443de87a37a-f1)
- [BM25](https://refivu.com/en/terms/64437f95755a-bm25)
- [speculative decoding](https://refivu.com/en/terms/2496d9bbec40-speculative-decoding)
- [exact match](https://refivu.com/en/terms/f6e0295e5c92-exact-match)
- [mutual information](https://refivu.com/en/terms/31de24f17a5e-mutual-information)
- [HotpotQA](https://refivu.com/en/terms/16cb986b71c1-hotpotqa)
- [MuSiQue](https://refivu.com/en/terms/a8f157ab6e50-musique)
- [Qwen2.5-Instruct](https://refivu.com/en/terms/fe39c9416ded-qwen2-5-instruct)
- [Rényi divergence](https://refivu.com/en/terms/fb690b287375-renyi-divergence)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/b2185e14-6ffa-4c7d-933b-830792c6ac03-answer-only-disclosure-private-context-llm-assistance-over)
