Private Counterfactual Retrieval (PCR)
- Private Counterfactual Retrieval (PCR) is a collection of protocols that retrieve nearest-neighbor counterfactual explanations while ensuring perfect user privacy using information-theoretic guarantees.
- PCR schemes employ secure operations over finite fields and multi-server interactions to compute exact distances with minimal leakage and controlled communication costs.
- Recent advances extend PCR to immutable features and differential privacy settings, enabling practical applications in counterfactual generation and multi-stream reasoning models.
Searching arXiv for papers on Private Counterfactual Retrieval and related formulations. I’ll look up the key arXiv entries on “Private Counterfactual Retrieval” and adjacent formulations to ground the article in current papers. Private Counterfactual Retrieval (PCR) most directly denotes a family of private-information-retrieval-style protocols for obtaining a nearest-neighbor counterfactual explanation from a database of accepted instances while preserving information-theoretic privacy for the querying user (Nomeir et al., 2024). In recent arXiv usage, the same label has also been applied to a counterfactual-likelihood intervention for measuring whether a downstream reasoning channel is influenced by an upstream private channel in a role-typed autoregressive model (Lorup, 18 May 2026). A related but distinct line studies differentially private release of counterfactual explanations via the functional mechanism, where the privacy target is the training data underlying the explanation mechanism rather than the secrecy of the user’s query (Yang et al., 2022).
1. Core definitions and scope
In the PIR-style formulation, a user has a private feature vector and observes that a black-box classifier rejects it. An institution stores a database of accepted points. A counterfactual explanation is chosen as the nearest accepted point, with index
where the default metric is , and a preference-aware extension uses
$d_w(x,y)=(y-x)^\top \diag(w)\,(y-x)$
for a private actionability vector or (Nomeir et al., 2024).
The privacy objective is asymmetric. User privacy is perfect and information-theoretic: for each non-colluding server , the protocol requires that the server’s view reveal zero mutual information about the user’s input and, in weighted variants, the actionability weights. The institution’s database cannot generally remain fully hidden, so database privacy is quantified by a mutual-information leakage metric such as
or, in immutable-feature settings,
where 0 is the user’s private immutable set (Meel et al., 5 Aug 2025).
A second use of the term PCR arises in multi-stream reasoning models. There, one agent privately computes a block 1, emits a public utterance 2, and another agent produces a downstream continuation 3. The goal is not retrieval of an explanation from a database, but measurement of whether 4 depends on 5 beyond what is already encoded in 6. The key quantity is the counterfactual negative-log-likelihood shift
7
with 8 a donor private block of equal token length (Lorup, 18 May 2026). This suggests that current usage of the acronym is technically non-uniform and must be disambiguated by context.
2. PIR-style PCR for exact nearest-neighbor counterfactuals
The baseline PCR scheme retrieves the exact nearest-neighbor counterfactual while achieving perfect user privacy with replicated non-colluding servers. In the simplest two-server construction, all arithmetic is over a prime field 9 with 0. The user samples a uniform random mask 1, chooses public distinct field elements 2, and sends
3
to server 4. Each server computes, for every database point 5,
6
where 7 is shared server-side randomness. After subtracting the known 8 term, the user inverts a 9 Vandermonde system and recovers each 0, then sets 1 (Meel et al., 5 Aug 2025).
The privacy guarantee follows from the one-time-pad structure of 2. Each query is uniformly random in 3, and the additional server-side randomization masks the interference term that arises when 4 is expanded. In the weighted PCR5 variant, the user additionally hides 6 by sending masked pairs such as 7, and the servers evaluate a quadratic form using 8. Recovery then requires three servers because the expansion becomes cubic in 9 (Nomeir et al., 2024).
Communication cost is explicit. For the baseline two-server PCR scheme, upload is $d_w(x,y)=(y-x)^\top \diag(w)\,(y-x)$0 symbols and download is $d_w(x,y)=(y-x)^\top \diag(w)\,(y-x)$1 symbols. In the three-server weighted variant, the communication cost becomes upload $d_w(x,y)=(y-x)^\top \diag(w)\,(y-x)$2 and download $d_w(x,y)=(y-x)^\top \diag(w)\,(y-x)$3 (Nomeir et al., 2024). A central structural fact is that exact nearest-neighbor retrieval and perfect user privacy are achieved simultaneously, while database privacy is only partial and must be analyzed separately.
3. Leakage-reduction schemes and ordering-based retrieval
The baseline scheme reveals all squared distances $d_w(x,y)=(y-x)^\top \diag(w)\,(y-x)$4 to the user, and thus its leakage is
$d_w(x,y)=(y-x)^\top \diag(w)\,(y-x)$5
Two refinements reduce this leakage by returning less than the full distance vector (Meel et al., 5 Aug 2025).
Diff-PCR replaces direct distance recovery with pairwise distance differences. The servers return, for $d_w(x,y)=(y-x)^\top \diag(w)\,(y-x)$6,
$d_w(x,y)=(y-x)^\top \diag(w)\,(y-x)$7
so the user recovers only
$d_w(x,y)=(y-x)^\top \diag(w)\,(y-x)$8
A sequential minimum-finding scan over these differences yields $d_w(x,y)=(y-x)^\top \diag(w)\,(y-x)$9. By data-processing,
0
Its communication cost is upload 1, download 2 (Meel et al., 5 Aug 2025).
Mask-PCR preserves the ordering of distances while masking their values. It requires preprocessing of the rejected set 3 and its closure
4
together with
5
The user samples 6 uniformly from 7, and after Vandermonde inversion obtains 8. If 9, the ordering of true distances is preserved, so the nearest neighbor can still be found. Leakage satisfies
0
The communication cost remains upload 1, download 2 (Meel et al., 5 Aug 2025).
The numerical results are consistent with the leakage hierarchy. On a synthetic 3D experiment with 4 and 5, baseline PCR leakage is 6 (log-7), Diff-PCR leakage is 8, and Mask-PCR leakage is 9 for 0 and 1 for 2 (Meel et al., 5 Aug 2025). On Wine Quality, after quantization, accuracy rises rapidly as 3 increases, indicating the expected trade-off between finite-field embedding granularity and exact nearest-neighbor recovery (Nomeir et al., 2024).
4. Immutable features, feasible sets, and preference-aware generalizations
Immutable private counterfactual retrieval (I-PCR) extends PCR to the case where the user insists that a private subset of coordinates cannot change. Let 4 be the immutable set, 5 the mutable coordinates, and
6
The I-PCR target is
7
The institution should not learn 8, 9, or 0, and the user should learn as little as possible about 1 beyond what is necessary to identify the feasible nearest counterfactual (Meel et al., 2024).
One construction is a two-phase three-server protocol. In Phase 1, the user hides the immutable set via a binary mask 2, sends masked queries of the form
3
and the servers return quantities whose leading coefficient is 4. This vanishes if and only if 5, so the user recovers 6. In Phase 2, the user hides the indicator of 7 and recovers exact distances only on feasible indices. Infeasible indices yield an uninformative 8. The two-phase communication totals are upload 9 and download 0, i.e. total symbols 1 in one formulation, and worst-case upload 2 and download 3 in the summarized theorem statement (Meel et al., 2024).
A more communication-efficient single-phase I-PCR scheme uses a public bound 4 on 5 and a public integer 6. The user builds a weight vector 7 with 8 for 9 and 00 for 01, sends masked versions of 02 to three servers, and recovers
03
If 04, then 05; otherwise 06. This simultaneously reveals feasibility and distance on the feasible set. Its communication cost is total 07, saving 08 over the two-phase scheme (Meel et al., 2024).
The two I-PCR schemes differ primarily in leakage. The two-phase scheme leaks which indices satisfy 09 and the exact distances for those indices. The single-phase scheme leaks the same matching bits plus coarse information about nonmatching entries through the magnitude of 10. Numerical examples reflect this distinction: on a synthetic 11 setup, single-phase leakage values are 12 as 13 varies, whereas two-phase leakage values are 14 (Meel et al., 5 Aug 2025). Preference-aware PCR15 and I-PCR16 incorporate private user weights into the same general machinery by carrying 17 in the query tuple and decoding weighted distances via higher-degree polynomial interpolation (Meel et al., 5 Aug 2025).
5. Differential privacy and private counterfactual generation
A separate line addresses privacy through differential privacy rather than PIR. In “Differentially Private Counterfactuals via Functional Mechanism,” the objective is to generate counterfactual explanations without touching the deployed model or explanation set, while protecting against extraction and inference attacks through an 18-DP training procedure (Yang et al., 2022).
The core mechanism trains a one-hidden-layer sigmoid autoencoder under the functional mechanism. With input 19, encoder 20, decoder 21, and reconstruction loss
22
the loss is expanded polynomially in the entries of 23. For each monomial coefficient sum
24
Laplace noise of scale 25 is added:
26
Minimizing the perturbed objective 27 yields DP parameters 28. Class prototypes are then computed in latent space as
29
and remain 30-DP by post-processing immunity (Yang et al., 2022).
Counterfactual search is carried out entirely as post-processing of the DP prototypes. For each target class, a latent perturbation 31 is optimized against a loss combining target-class cross-entropy, proximity to the query, and prototype regularization, with trade-off weights 32. The sensitivity bound is
33
and for the sigmoid-MSE one-hidden-layer case with inputs scaled to 34, the guide states that 35 for a 36-unit hidden layer (Yang et al., 2022).
Empirical evaluation covers Adult, Hospital, HomeCredit, MNIST, Purchase, and Texas. Utility is measured by Flipping Ratio, Average Distance, reconstruction MSE, and time cost per query. Lower 37 increases reconstruction MSE and slightly lowers FR. At 38, FR is within 39–40 of non-private baselines DiCE, CADEX, C-CHVAE, and REVISE; when 41 decreases to 42, FR degrades modestly, for example from 43 on Adult, and AD increases by approximately 44–45. In model extraction, DPC reduces surrogate accuracy by 46–47 compared with non-private counterfactuals, and membership inference accuracy drops to near random for some datasets under small 48 (Yang et al., 2022). This suggests an adjacent notion of “private counterfactuals” in which the privacy target is the training data rather than the secrecy of the user’s query.
6. Counterfactual-likelihood PCR in private reasoning channels
In “Counterfactual Likelihood Tests for Indirect Influence in Private Reasoning Channels,” PCR is a behavioral intervention technique for measuring how much a downstream public reasoning channel is influenced, directly or indirectly, by the contents of an upstream private channel in an autoregressive architecture with role-typed streams (Lorup, 18 May 2026). The setting uses a role-structured trace in which agent 49 privately computes a block 50, then emits a public block 51, after which agent 52 reads 53 and produces a downstream continuation 54.
The method compares two prefixes. The natural prefix is
55
and the counterfactual prefix is
56
where 57 is a donor private block drawn from other traces and constrained to satisfy 58. If
59
then the per-trace influence score is
60
Positive 61 indicates that the natural private block made 62 more likely than the donor block. Aggregation uses the influence rate, defined as the fraction of traces with 63, and the mean 64 in nats/token (Lorup, 18 May 2026).
Two confound controls are central. First, length matching removes a RoPE positional confound: in a rotary-position-encoding transformer, replacing 65 with a differently sized donor block would shift the absolute positions of all downstream tokens, so 66 ensures that any NLL change reflects content differences rather than position shifts. Second, a graph-separation or attention-cut control zeros all attention edges from replaced private-block positions to public-speech positions. Under this cut mask, the substitution 67 cannot affect any hidden state used to generate 68, so one should observe bit-for-bit equality of natural and counterfactual NLLs. Empirically, 69 on 70 controls, i.e. 71 (Lorup, 18 May 2026).
The validation model is a 7B-parameter autoregressive transformer with four parallel streams: 72, 73, 74, and 75, together with stream-aware RoPE and a cross-stream causal mask that blocks private-to-private attention except via public channels. The protocol uses three checkpoints, five random seeds per checkpoint, and 76 sampled traces per 77. After filtering for donor availability and length matching, there are 78 valid directional contrasts and approximately 79 total NLL computations (Lorup, 18 May 2026).
The findings separate textual probes from counterfactual-likelihood measurement. Canary probes reproduced 80 nonsense in 81, raw 82-gram overlap reached 83 on a masked model, corrected overlap remained noisy with an approximately 84-point gap, and counterfactual likelihood cleanly separated unmasked and masked pilot conditions, with influence rates 85 and 86 respectively. After length matching on the hardened masked variant, 87 had rate 88 and mean 89 nats/token, while 90 had rate 91 and mean 92 nats/token. At the 93 threshold, multi-checkpoint replication gave A-to-B rates of 94, 95, and 96 across checkpoints 97–98, with corresponding B-to-A rates of 99, 00, and 01 (Lorup, 18 May 2026).
The practical conclusion in this line is that private-channel evaluation should report direct and indirect influence separately, and that counterfactual likelihood probes provide a practical default for measuring these boundaries. The stated limitations are that PCR measures only likelihood influence under the current policy mask, does not localize which layer or head carries the signal, depends on architecture-specific role-visibility graphs, and uses a synthetic continuation bridge for many 02 traces (Lorup, 18 May 2026). A plausible implication is that, in this literature, “private counterfactual retrieval” is less about explanation retrieval than about isolating information-flow pathways through controlled counterfactual substitution.