Organizations: School of Advanced Manufacturing, Guangdong University of Technology, China · School of Computer Science and Engineering, Macau University of Science and Technology, Macau, China · College of Electronics and Information Engineering, Shenzhen University, Shenzhen, Guangdong 518060, China · Department of Mathematics, Shantou University, Shantou 515063, China · Macao Institute of Systems Engineering and the Collaborative Laboratory for Intelligent Science and Systems, Macau University of Science and Technology, Macao · State Key Laboratory of Precision Electronic Manufacturing Technology and Equipment, Guangdong University of Technology, Guangzhou 510006, China
Small businesses repeatedly ask cloud language models about the same confidential prices, unit costs and margins. Numeric prompt disguises for such numbers are evaluated one prompt at a time, but a provider sees a firm's history, in which each fresh secret gives a new, independent view of the same numbers. Since real costs are not public, we measure on synthetic firms with known values how much an honest-but-curious provider recovers when it knows the disguise algorithm, holds sector-level price and margin statistics, and links a firm's queries. In one prompt, per-field scaling, a fixed-axis instantiation of Zhang et al.'s order-preserving substitution and Prεεmpt's released sanitizer keep the attacker's margin-hit advantage over a prior-only guess between -0.6 and +4.4 percentage points. After 16 linked queries with fresh secrets, every disguise we test (Prεεmpt at ε≥0.5) has a target recovered significantly more often: under the order-preserving substitution, margin recovery rises from 25.0% to 59.4%. The same attacker recovers 29.4 percentage points more margins with fresh maps than with one reused map. Theory explains the contrast: one reused secret bounds all queries by a single full-precision view of the fields shown, whereas fresh scaling keys are identifiable. Except for Prεεmpt at ε=0.5, the gains persist when the attacker's prior comes from another population model and when values drift by up to 5% between queries; on our firms, whose prose cues are weak, reading the prose with a language model adds at most 2.5 points. Code and data: https://github.com/Jamli58/fresh-keys-stale-secrets
Figures & tables
Fig. 1: Threat model. Before a prompt leaves the firm, its numbers are disguised with a fresh or a reused secret; the provider links a firm’s disguised queries and estimates the confidential margins and unit costs. Values shown are illustrative.
Fig. 2: Margin recovery as linked queries accumulate (hit: error ≤5 pp). Both D2 curves use the same joint attacker, with fresh maps and with one reused map; D3o uses the default attacker. Bands: firm-clustered 95% bootstrap CIs; 60 test firms × 3 seeds.
Ref.
Target
Privacy assessment
Auxiliary information
Repeated releases of a secret
[ 2 ]
identifiers and value tokens
metric DP per sanitization; input-dependent domain in released code
–
stateless; linkage not analysed
[ 3 ]
numbers and topic of financial text
language-model judge of retained information
–
not discussed
[ 13 ]
personal information in queries
language-model judge of retained private data
–
–
[ 14 ]
personal attributes in free text
attribute inference by language models
model world knowledge
–
[ 15 , 16 ]
property-preserving encrypted columns
plaintext recovery
public datasets
static database
[ 10 , 11 , 12 ]
values in encrypted databases
reconstruction from range-query leakage
query distribution
many queries under one fixed key
TABLE I: Closest Prior Work and the Dimensions Measured Here
Mechanism
Secret
Visible in one prompt
D1 shared scaling
k∼LogUniform[0.1,10]
money ratios, hence margins
D1 ′ per-field scaling
kf∼LogUniform[0.1,10]
no shared-key ratio
D2 fixed-axis order-pres.
increasing map h
order; axis-dependent law
D3o Pr εε mpt (released)
noise, ε per value
domain-dependent support
TABLE II: Evaluated Mechanisms
Component
Source
In D2
Varied
Year offset, [1990,2030]
[ 3 ]
offset range [−10,10]∖{0} (ours)
–
Special numbers unchanged
[ 3 ]
28–31 only (1 and 12 mapped)
–
Sorted intervals and targets
[ 3 ]
as described
–
Interval layout
ours
64 equal cells of public signed-log axis
16, 256 cells
Endpoint targets
ours
in [1,106] , uniform cuts, log-linear interpolation
Dirichlet(0.1), (10); [1,1012]
Display precision
ours
fewest digits ≥6 keeping inputs distinct
–
TABLE III: D2 Relative to Zhang et al.’s Description [ 3 ]
Mechanism
Margin hit (%)
Cost hit (%)
Margin MAE (pp)
Δ margin vs A0 (pp)
Δ cost vs A0 (pp)
Prior only (A0)
28.1
16.0
13.3
–
–
No disguise (D0)
100.0
100.0
0.0
+71.9 [+67.2, +76.4]
+84.0 [+80.2, +87.7]
Shared scaling (D1)
100.0
28.6
0.026
+71.9 [+67.2, +76.4]
+12.6 [+7.1, +18.0]
Per-field scaling (D1 ′ )
28.4
19.4
12.7
+0.2 [-1.5, +2.0]
+3.4 [+1.0, +5.7]
Fixed-axis order-pres. (D2)
29.1
15.8
11.4
+1.0 [-2.7, +4.5]
-0.2 [-3.0, +2.5]
Pr εε mpt released (D3o), ε =0.5
27.5
26.1
12.2
-0.6 [-3.4, +2.0]
+10.1 [+6.1, +14.0]
TABLE IV: Single-Query Leakage on the Test Split
Fig. 3: In one prompt, the default attacker recovers margins at about the prior-only rate except under shared scaling, while released Pr εε mpt leaks unit costs. Single-query advantage of A1+ over the prior-only attacker A0 on the test split (2,100 rows per mechanism; bars: firm-clustered 95% bootstrap CIs). D1’s margin advantage, +71.9 pp, is off scale. D3 is our variant built from Pr εε mpt’s paper description; values in Table IV .
Fig. 4: With a fresh secret per query, recovery grows with the number of linked queries; with one reused secret it stays near its single-query level. Recovery of product 0 by the default attacker A1+. Solid: a fresh secret per query (D3o: fresh noise at ε=1 ); dashed: one reused secret. D1 recovers 100% of margins in both regimes (the lines coincide). The reused-map D2 curve is from the pair-only attacker; Table V compares the regimes under the joint attacker. Dotted: prior-only baseline (15.0% cost, 20.0% margin). 180 rows per n (60 test firms × 3 seeds); bands: firm-clustered 95% bootstrap CIs.
Single query
Linked queries, product 0
Attacker
Map
Δ margin
n=1
n=16
Margin gain
Cost gain
Gaussian pair (default A1+), default law
fresh
+1.0 [-2.7, +4.5]
25.0
59.4
+34.4 [+23.9, +45.0]
+6.1 [-3.3, +15.0]
Reference likelihood, default law
fresh
+1.8 [-1.0, +4.4]
26.1
69.4
+43.3 [+33.3, +53.3]
+7.8 [+1.1, +14.4]
Gaussian pair, Dirichlet(0.1) gaps
fresh
-3.0 [-7.3, +1.3]
17.2
29.4
+12.2 [+1.7, +22.2]
0.0 [-7.8, +7.8]
Reference likelihood, Dirichlet(0.1) gaps
fresh
-0.5 [-2.7, +1.6]
21.1
29.4
+8.3 [+1.7, +15.6]
+5.6 [-2.8, +13.9]
Joint shared-map attacker
fresh
–
23.9
53.9
+30.0 [+18.9, +40.6]
+17.2 [+6.1, +28.3]
TABLE V: D2 Attackers: Single-Query Advantage and Linked-Query Gains
Fig. 5: Shared scaling with k∼LogUniform[0.1,10] . Top: expected width of the feasible log-interval, 2log(b/a)/(n+1) ( Theorem 3 ), against Monte Carlo (20,000 draws per n ). Bottom: median ∣logk^1−logk1∣ of the multi-query attacker for the first query’s key, fresh vs reused key (60 test firms × 3 seeds).
Fig. 6: Every fresh-secret gain stays above zero under replication and population shift. Gains for the default attacker A1+. Gain in hit rate from n=1 to 16 with a fresh secret per query, for the original firms (filled), a fresh draw of firms (new generator seed, same prior table, frozen attacker) and five shifts that each change one generator constant of the fresh draw (open). 60 test firms × 3 seeds per estimate; bars: firm-clustered 95% bootstrap CIs; values in Table S3 .
Fig. S1: Median relative perturbation of the shown price at ε=1 by sector (log scale). D3o: released money sanitizer, full ε per money value; all 1,624 generated products × 5 draws (8,120 observations). D3: our variant of the paper’s description, ε/Nv per value token; products of the evaluation prompts × 3 seeds (2,520 observations). The two populations and budget allocations differ.
D1 cost
D1 ′ cost
D2 margin
D3o margin
Setting
ε =0.5
ε =1
ε =2
original firms
+41.1 [+30.6, +51.1]
+38.3 [+28.3, +47.8]
+34.4 [+23.9, +45.0]
+8.3 [+2.2, +15.0]
+16.7 [+8.3, +25.0]
+32.2 [+23.3, +41.7]
fresh draw
+35.6 [+25.6, +45.0]
+32.2 [+23.3, +41.7]
+22.8 [+10.6, +35.0]
+4.4 [-3.3, +12.2]
+16.7 [+8.3, +25.6]
+26.1 [+16.7, +35.6]
Fresh draw with one generator constant changed, attacker frozen
margins +0.5 logit
+35.0 [+25.0, +44.4]
+39.4 [+28.9, +49.4]
+30.6 [+20.6, +40.6]
–
–
+25.6 [+15.6, +35.0]
margins −0.5 logit
+35.6 [+25.6, +45.0]
+32.2 [+21.7, +42.8]
+33.9 [+20.6, +46.7]
–
–
+25.0 [+15.6, +34.4]
TABLE S3: Fresh-Secret Gains under Replication, Population Shift, Prior Mismatch and Value Drift
D1 cost
D1 ′ cost
D2 margin
D3o margin
Sector
ε =0.5
ε =1
ε =2
Bakery/café
+30.1 [+17.1, +42.3]
+36.6 [+26.0, +47.2]
+23.6 [+8.9, +38.2]
+0.0 [-2.4, +2.4]
+0.0 [-2.4, +2.4]
+3.3 [-1.6, +8.1]
Machine shop
+37.4 [+23.6, +49.6]
+47.2 [+37.4, +56.1]
+35.0 [+22.0, +48.0]
+3.3 [-4.9, +12.2]
+15.4 [+7.3, +24.4]
+17.9 [+5.7, +30.1]
Apparel e-com.
+42.1 [+30.2, +54.0]
+38.9 [+25.4, +51.6]
+35.7 [+22.2, +49.2]
+4.0 [-3.2, +11.9]
+10.3 [+1.6, +19.8]
+12.7 [+0.8, +24.6]
IT consulting
+18.3 [+4.8, +31.7]
+50.8 [+39.7, +61.1]
+23.0 [+11.1, +35.7]
+0.0 [-9.5, +9.5]
+23.0 [+10.3, +35.7]
+36.5 [+23.8, +48.4]
Construction sub.
+46.0 [+30.2, +60.3]
+44.4 [+34.1, +54.8]
+45.2 [+31.0, +59.5]
+18.3 [+8.7, +28.6]
+26.2 [+15.1, +37.3]
+38.1 [+27.8, +49.2]
TABLE S4: Linked-Query Gains by Sector on All Test Firms
(a) Joint shared-map attacker: smoothing and Monte Carlo draws
Smoothing (log units)
Draws
Fresh margin gain
Reuse margin gain
Fresh − reuse
0.03
400 (main)
+30.0 [+18.9, +40.6]
+0.6 [-4.4, +6.1]
+29.4 [+18.3, +40.6]
0.03
1,600
+31.1 [+20.0, +42.2]
+0.6 [-4.4, +5.6]
+30.6 [+20.0, +41.7]
0.1
400
+32.2 [+21.7, +42.8]
-2.2 [-8.9, +4.4]
+34.4 [+23.3, +45.6]
0.01
400
+37.2 [+27.2, +47.2]
+5.6 [-1.1, +12.2]
+31.7 [+21.7, +41.7]
0.01
1,600
+37.8 [+27.8, +47.8]
+3.9 [-1.7, +9.4]
+33.9 [+23.9, +43.9]
TABLE S5: Numerical Validation of the D2 Reuse-Side Attackers
Single query, Δ vs A0
Linked, margin hit (%)
Map law
margin
cost
n=1
n=16
gain
default: 64 intervals, uniform cuts, [1,106]
+1.0 [-2.7, +4.5]
-0.2 [-3.0, +2.5]
25.0
59.4
+34.4 [+23.9, +45.0]
16 intervals
+0.7 [-3.1, +4.4]
+0.7 [-2.2, +3.5]
22.2
56.7
+34.4 [+22.2, +46.1]
256 intervals
+4.6 [+0.9, +8.3]
+1.2 [-1.8, +4.2]
22.2
71.7
+49.4 [+38.3, +60.0]
irregular gaps, Dirichlet(0.1)
-3.0 [-7.3, +1.3]
-1.1 [-4.3, +2.1]
17.2
29.4
+12.2 [+1.7, +22.2]
regular gaps, Dirichlet(10)
+28.0 [+23.6, +32.5]
+3.5 [+0.1, +6.9]
46.1
97.2
+51.1 [+42.2, +60.0]
TABLE S6: D2 under Alternative Map Laws
Llama-3.1-8B
Qwen2.5-32B
Oracle cues (no LLM)
Mechanism
Metric
A4
A4-TL
A4
A4-TL
city
city + premium
D1
cost
+1.9 [-3.4, +7.0]
+2.3 [-3.0, +7.4]
-2.3 [-7.9, +3.2]
-2.4 [-7.9, +3.1]
-1.9 [-6.1, +2.0]
+4.0 [-1.5, +9.3]
D2 (ours)
margin
-0.1 [-1.6, +1.3]
0.0 [-1.5, +1.4]
+1.0 [-1.0, +3.1]
+1.0 [-1.0, +3.1]
+0.3 [0.0, +0.7]
+0.5 [+0.1, +1.0]
D2 (ours)
cost
-0.2 [-2.9, +2.5]
+0.2 [-2.4, +2.9]
-2.4 [-5.2, +0.3]
-2.4 [-5.2, +0.3]
+0.2 [-2.1, +2.7]
+1.9 [-1.4, +5.3]
D3, ε =0.5
cost
+2.4 [+0.7, +4.3]
+2.5 [+0.8, +4.3]
+2.0 [-0.1, +4.0]
+1.9 [-0.2, +3.9]
+2.3 [+0.8, +4.0]
+1.0 [-1.3, +3.3]
D3, ε =0.5
margin
-0.9 [-2.5, +0.7]
-0.9 [-2.5, +0.6]
-0.6 [-2.7, +1.5]
-0.6 [-2.7, +1.5]
0.0 [-0.9, +1.1]
-1.0 [-2.7, +0.4]
TABLE S7: Language-Model Priors: Differences to A1+
Privacy leakage in language models concerns how models expose training data, infer sensitive traits, or transmit private context through outputs and internal channels.
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.
Liang Yuan, Xiaohu Du, Ruikun Luo +6
Australian Catholic University North Sydney, NSW, Australia · Ant Group China · University of Macau Macau, China +5
Large language models are increasingly fine-tuned on sensitive data, where the same person's information may appear multiple times across records. This can cause models to memorize sensitive information, but memorization does not necessarily mean that the information can be recovered. A more serious privacy risk arises when the model begins to reproduce that information during generation. In this paper, we study how often sensitive information must appear in the fine-tuning data before it becomes recoverable. Across four language models, we vary the frequency of email addresses and phone numbers from 1× to 50× and compare standard fine-tuning, gradient clipping, and differentially private training. We find that the number of repetitions required before sensitive information becomes recoverable varies substantially across models. Gradient clipping can delay extraction, but it does not consistently prevent leakage at high repetition. DP-SGD at ε=5 produces zero observed extraction through 50× repetition across all four models under the attacks we test, although the utility cost varies by model. These findings characterize how observed extraction varies across sensitive-data frequencies, model families, and training mechanisms, and highlight substantial differences in extraction behavior across models. Code and data are publicly available.
Aymen Noor, Ke Lyu, Honglu Jiang
Department of Computer Science Miami University Ohio
For AI agents to be useful beyond simple chat, they must hold sensitive user context such as calendars, credentials, health records, and financial data. We study whether the mere presence of such secrets in a model's context window introduces hidden correlations into the model's benign outputs, allowing reconstruction even when the model correctly refuses direct extraction. We further study whether an adversary can actively engineer prompts that amplify this effect, using the model as a covert carrier to transmit secrets through seemingly innocuous text. In both cases, this limited leakage is exploited using a novel adaptive attack that assumes black-box access to the underlying model. In controlled experiments across eight proprietary models, we find that 2-digit in-context secrets are reconstructed with near-perfect accuracy and 4-digit secrets at 82% exact match, all from outputs the model produces in response to ordinary, non-adversarial requests. We observe that more capable models leak more: stronger instruction-following amplifies sensitivity to in-context secrets, suggesting leakage is a byproduct of capability as opposed to a patchable bug. We show this leakage enables two practical attacks: (1) a trained classifier that infers semantic predicates about user memories (e.g., health conditions, financial events) from routine natural-language outputs, and (2) an RL-trained adversary that extracts full Social Security Numbers from a production-style agent.