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.