A hospital or lender that wants to check whether its model fails small demographic subgroups, such as older Black women rather than just "women" or "Black patients", often has to run that check on someone else's hardware. The usual protection is a hardware enclave: a sealed region of the processor whose memory contents are encrypted. Encryption hides the data but not the order in which memory is read. The audit's job is to search for the subgroups where the model does worst, so an observer who records which memory locations the audit touches learns which intersections exist, roughly how many people fall in each, and which ones were flagged. The rarest intersections are both the ones the audit exists to find and the ones whose members are most exposed by this leak.
This note proposes an intersectional fairness audit whose memory access pattern is differentially oblivious: the sequence of memory reads may depend on the data, but only in a way that changes by at most a factor of $e^\epsilon$ when one person's record changes. The design rule is that every data-dependent decision the audit makes, including which subgroup to examine next, how much memory to fetch, and when to stop, is computed from quantities that have already been released with differential privacy. The memory trace is then just a function of private outputs and inherits their guarantee. The central empirical question is whether this buys anything over the simple alternative of making the audit fully oblivious. A large part of the proposal is designed to answer that question honestly, and either answer would be useful.
Core Claim
Intersectional audits are adaptive searches over a subgroup lattice that grows as $2^K$ in the number $K$ of protected attributes (Intersectional Unfairness Discovery, Bounding and Approximating Intersectional Fairness through Marginal Fairness). In that setting, a differentially oblivious audit can match the subgroup-discovery accuracy of a cleartext audit. It does so at cost proportional to the records in the subgroups it actually explores, rather than the padded worst case that full obliviousness requires. The trace leaks no more about any individual than an $(\epsilon,\delta)$ budget allows. We expect the advantage to appear specifically in repeated or streaming audits with many attributes. For one-shot audits with few attributes, we expect a fully oblivious sort-and-aggregate pass to be competitive, and we will report where the crossover lies.
There is a second, fairness-specific claim. Doing the computation centrally inside the enclave keeps per-subgroup count error at $O(1/\epsilon)$, which An Algorithmic Framework For Differentially Private Data Analysis on Trusted Processors shows for oblivious sketches. Local-privacy approaches pay error of order $\sqrt{N}$. For a subgroup of 30 people, the first leaves the audit's signal intact and the second destroys it. This is why the enclave route, rather than local privacy, is the one that can still see small intersections.
Positioning
Two bodies of work sit on either side of this gap, and neither touches the other. The differentially oblivious systems literature motivates the method and supplies its parts. Exploring Differential Obliviousness shows that relaxing full obliviousness recovers sublinear algorithms. It also identifies a constraint we must design around: releasing an output, or stopping early on an internal threshold, can retroactively reveal the earlier trace. Differentially Oblivious Database Joins provides oblivious sort, compaction, and bin placement. Differentially Oblivious Relational Database Operators (Adore) provides selection through a private prefix sum and grouping through private distinct counts. Doquet provides private histogram trees, but its construction cost grows exponentially with attribute dimension. That growth is exactly the regime of intersectional audits, so we cannot reuse its structures as-is. Advanced Composition Theorems for Differential Obliviousness lets the privacy cost of $k$ sequential audit steps grow roughly as $\epsilon\sqrt{2k\ln(1/\delta')}$ instead of $k\epsilon$, which is what makes multi-round adaptive search affordable. Turbo shows how a private multiplicative-weights cache can answer repeated queries without spending more budget. We reuse it for streaming audits. None of these systems knows anything about protected subgroups. They are tuned on generic benchmarks such as TPC-H, and their padding treats all cells alike.
On the fairness side, Differential Fairness and FairDP borrow the mathematics of differential privacy, but only to bound ratios between subgroup outcomes or to certify predictions. They assume cleartext data on trusted hardware. Local-privacy fairness work such as Optimal Fairness under Local Differential Privacy privatizes attributes at collection time and pays the $\sqrt{N}$ error floor. Auditors such as BGGN (Intersectional Unfairness Discovery), Justicia, and CIFA define what a good audit finds, and that defines our accuracy target. All of them execute in the clear. We do not propose a new fairness definition. We propose running the existing audit task under a threat model none of them consider.
Research Program
The audit takes as input a table of records, each holding protected attributes, a model prediction, and a label, sealed in an enclave. It returns the top subgroups ranked by a gap statistic, such as worst-group accuracy or true-positive-rate gap. It searches the lattice top-down, refining only those subgroups whose noisy gap and noisy size pass thresholds.
The audit is built in three stages. In the first stage, one oblivious sort by a compact subgroup key, followed by compaction, produces per-cell aggregates for the populated finest cells. Each aggregate holds a count, an error count, and positive and true-positive counts. The table is padded to a noisy size instead of to $N$ or $2^K$. This avoids Doquet's exponential construction, because only populated cells are ever materialized.
The second stage is lattice exploration. Each step reads the cells that make up a candidate subgroup through a differentially oblivious selection with noisy padding, in the style of Adore. It adds Laplace or Gaussian noise to the aggregates and decides whether to expand using a sparse-vector-style threshold test. Every branch, fetch size, and stopping decision is therefore a deterministic function of already-noised values, which closes the retroactive leak identified in Exploring Differential Obliviousness.
The third stage handles streams and re-audits after retraining. A Turbo-style cache over the cell histogram answers repeated subgroup queries without fresh budget once its estimates converge. Total cost across rounds is accounted with the composition theorems above.
The analysis component proves that the full trace, together with the released flagged list, is $(\epsilon,\delta)$-differentially oblivious under add/remove-one-record neighbors. The proof is by post-processing plus composition. Using the total-correlation bound of Bounding and Approximating Intersectional Fairness through Marginal Fairness, it also bounds how much the noise reduces recall of truly unfair subgroups of a given size. That bound lets us choose the minimum subgroup size worth searching before spending any budget.
Baselines
The naive reference point is the cleartext audit run inside the enclave with no access-pattern protection. It is the same lattice search and the same gap statistic, with exact counts. It defines the accuracy ceiling and the cost floor. We pair it with a trace-based attack: an adversary who sees page-level accesses tries to infer, for a target individual, whether their rare intersection exists in the data, and which subgroups were flagged. Our audit beats this baseline on privacy if the attack drops to near chance at the stated $\epsilon$. It beats it on cost only in the sense of staying within a stated small multiple.
The strongest competitor is a fully oblivious audit. It performs one oblivious sort and compaction using the primitives of Differentially Oblivious Database Joins in their fully oblivious mode. It produces a cell table padded to $\min(N, 2^K)$ and evaluates every lattice query with a full oblivious scan of that table. This baseline is strong because for one-shot audits it costs about one sort plus cheap scans, and it leaks nothing at all. We run it on the same machine, the same enclave settings, the same data, and the same lattice-search budget, and give it the same implementation effort. Our audit beats it only if, at matched discovery accuracy, it reduces wall-clock time or memory traffic in a regime we specify in advance: re-audit rounds of 10 or more, or $K$ of 8 or more. We will report it plainly if no such regime exists.
The third baseline is a local-privacy audit. Protected attributes are randomized by data owners and gaps are estimated by debiasing, following the setup of Optimal Fairness under Local Differential Privacy, at the same $\epsilon$. It needs no enclave, so it is the natural deployment alternative. Our audit beats it if it recovers worst subgroups that the local-privacy audit misses because of noise.
The key ablation keeps differentially oblivious fetching but lets the search branch and stop on exact counts. It isolates the "decide only on released values" rule. We expect it to be faster and visibly leaky under the same attack.
Published numbers give accuracy targets but not cost targets. CIFA reports, for a ResNet-50 on UTKFace, 92.34% aggregate accuracy against 65.91% for the worst intersectional subgroup, and a 21.61% gap for ViT-B/16 on FairFace. A Controlled Study of Fairness Interventions for Temporal Graph Transformers on ICU Mortality Prediction reports a true-positive-rate gap of 0.20–0.23 on MIMIC-IV before threshold equalization. Differential Fairness reports $\epsilon$-DF on COMPAS improving from 0.743 to 0.205 under its BDF regularizer. For enclave runtime or memory-trace cost of any fairness audit, no reported result was found on Lacuna, so all cost baselines will be measured by us.
Why not just…?
Why not just make the audit fully oblivious? This is the real threat, and we treat it as one. For a single audit with few attributes, a fully oblivious sort-then-scan is probably within a constant factor of our method, and its guarantee is stronger. The case for differential obliviousness rests on two effects. First, every adaptive step of a fully oblivious search must touch the entire padded table, so cost grows with rounds times table size. Second, when $2^K$ far exceeds $N$, padding to the worst case is set by $N$ even though the populated cells may number far fewer. The crossover experiment below decides whether those regimes matter in practice. If they do not, the honest conclusion is that fairness audits should be fully oblivious, and that is worth publishing.
Why not just release differentially private audit results and ignore the trace? Output privacy does not cover what the enclave host observes during execution. The ablation that branches on exact counts is this alternative in executable form, and the trace attack measures what it leaks. Exploring Differential Obliviousness gives the theoretical reason: data-dependent stopping retroactively exposes the access history.
Why not just use local differential privacy and skip enclaves? The error floor of order $\sqrt{N}$ documented in An Algorithmic Framework For Differentially Private Data Analysis on Trusted Processors exceeds the size of many intersections. On MIMIC-IV with 56,866 patients that floor is in the hundreds, larger than several age-by-race-by-sex cells. The local-privacy baseline tests this directly by measuring recall of small worst-case subgroups.
Proposed Experiments
The datasets are COMPAS and Adult for tabular audits with three to five protected attributes. MIMIC-IV covers 56,866 ICU stays split by age, race, and sex. UTKFace and FairFace provide face models; CIFA's contextual attributes such as illumination and blur raise $K$ to eight or more and stress the high-dimensional regime. The audited models are the ones the cited papers use where feasible: LightGBM and an LSTM on MIMIC-IV, and ResNet-50 and ViT-B/16 on the face sets.
We measure four things. Discovery accuracy is the recall@10 of the cleartext audit's worst subgroups, plus the absolute error in the estimated worst-group gap, checked against the CIFA and MIMIC figures above. Cost is memory traffic and wall-clock time inside the enclave. Leakage is the success rate of the trace attack at inferring rare-intersection membership. Privacy is the total $(\epsilon,\delta)$ across rounds. We sweep $\epsilon$ from 0.5 to 4, $K$ from 3 to 12 (adding contextual and binned attributes), and the number of re-audit rounds from 1 to 50 under simulated data arrival and model retraining.
Three checks decide the proposal. The first is the crossover between our audit and the fully oblivious baseline along $K$ and the number of rounds. If no crossover appears, the core claim fails. The second is whether recall stays at or above 0.9 for subgroups of 50 or more members at $\epsilon=1$ while the local-privacy audit falls well below it. If both fail on small groups, the enclave argument fails. The third is whether the ablation that branches on exact counts lets the attack recover rare-intersection membership well above chance while the full design holds it near chance. If it does not, the decision rule is unnecessary and should be dropped.
References
- Intersectional Unfairness Discovery
- Bounding and Approximating Intersectional Fairness through Marginal Fairness
- An Algorithmic Framework For Differentially Private Data Analysis on Trusted Processors.
- Exploring Differential Obliviousness
- Differentially Oblivious Database Joins: Overcoming the Worst-Case Curse of Fully Oblivious Algorithms
- Differentially Oblivious Relational Database Operators
- Doquet: Differentially Oblivious Range and Join Queries with Private Data Structures
- Advanced Composition Theorems for Differential Obliviousness
- Turbo: Effective Caching in Differentially-Private Databases
- Differential Fairness: An Intersectional Framework for Fair AI
- FairDP: Achieving Fairness Certification with Differential Privacy
- Optimal Fairness under Local Differential Privacy
- Justicia: A Stochastic SAT Approach to Formally Verify Fairness
- CIFA: Contextual-Intersectional Fairness Auditing for Hidden Subgroup Discovery in Face Analysis
- A Controlled Study of Fairness Interventions for Temporal Graph Transformers on ICU Mortality Prediction