Who Pays for Rounding? Degree-Structured Fixed-Point Error in Secure Graph Networks

When a graph neural network runs under secure multi-party computation, it cannot use floating point. Secure multi-party computation is a way for several servers to compute on data that none of them can see in the clear. Every real number is stored as an integer scaled by $2^f$, where $f$ is the number of fractional bits. After each multiplication, the system cuts the extra bits off again ("truncation"). Secure-inference papers report the cost of this rounding as one aggregate accuracy drop. For example, PrivGNN reports 97.93% plaintext versus 96.42% secure accuracy on QM9. This note argues that on graphs the rounding error is not spread evenly. A graph neural network computes each node's representation as a weighted sum over its neighbors, and the weights depend on node degree. So the error a node absorbs is set by its degree.

In social and financial graphs, degree correlates with demographic group. That is the homophily-driven structural bias documented by Dong et al. and Dai et al.. Degree-structured rounding can therefore move fairness metrics while global accuracy looks untouched. The proposal has two parts. First, it measures this effect bit-exactly on standard graph-fairness benchmarks. Second, it tests whether the error can be redistributed at a fixed bit-width, and so at a fixed cryptographic cost, by changing where scaling and truncation happen inside neighborhood aggregation. The goal is to bound the error of the worst-off degree group rather than the average.

Core Claim

Take a standard graph convolution. It updates node $i$ as $h_i=\sum_j a_{ij}x_j$, where $x_j$ are neighbor features, $d_i$ is node degree, and $a_{ij}=1/\sqrt{(d_i+1)(d_j+1)}$ is the symmetric normalization weight. A secure implementation has to choose an order of operations. Each choice fails in a degree-dependent way.

If the normalized weights are encoded first ("normalize-first"), each weight is rounded to the grid $2^{-f}$. Its relative error is roughly

$$ \frac{|\hat a_{ij}-a_{ij}|}{a_{ij}} \lesssim 2^{-f}\sqrt{(d_i+1)(d_j+1)}, $$

which follows directly from dividing the grid spacing by the weight. Edges between hubs are therefore distorted most, and at small $f$ they round to zero.

If the integer adjacency is summed first and normalized afterward ("aggregate-first"), the neighbor sum at node $i$ grows with $d_i$. Hubs then need about $\log_2 d_{\max}$ extra headroom bits. Without that headroom, the bounded integer range wraps silently, which is the overflow failure stressed by Duy et al. and Fan et al.. Spending those bits instead shrinks $f$ for every node, which hurts low-degree nodes, whose representations rest on few, unaveraged messages.

The bit-width $k$ is the dominant cost driver. Taiello et al. and Samragh et al. report that protocol cost grows superlinearly in $k$. At a fixed $k$ there is therefore a two-sided precision squeeze, and the protocol designer's choice decides which degree group pays.

The claim is falsifiable in three ways. Under accuracy-tuned fixed-point settings, the rate at which predictions flip relative to floating point should depend significantly on degree and on sensitive group. Demographic-parity and equal-opportunity gaps should shift by more than seed variance even when AUC is within noise. Choosing the operation ordering and scale placement to minimize worst-degree-bucket error should beat every uniform choice of $f$ at the same $k$.

Relation to Prior Work

Three works motivate the question but stop short of it. How Quantization Shapes Bias in Large Language Models shows that low-bit quantization of language models raises demographic parity difference on DT-Fairness by over 7 points. It gives no mechanism and does not consider graph structure. Here the mechanism is explicit: degree-dependent weights. PrivGNN builds fast two-party inference for graph networks but never asks how its accuracy loss is distributed across groups or degrees. Blind Justice trains fair tabular models over 16-bit secret shares and finds 16 bits optimal. It has no graph, and so none of the degree-structured error studied here.

The fairness literature supplies the models whose robustness to rounding we test, but none of these works considers numerical precision. FairGNN uses adversarial debiasing with an estimator for missing sensitive labels. FairVGNN masks feature channels through which sensitive information leaks during message passing, and clamps encoder weights. FUGNN filters the top of the adjacency spectrum. DegFairGNN argues that hubs dominate training. Our hypothesis inverts its concern for one regime: at inference, hub-to-hub edges may be the ones the arithmetic destroys.

PrivGED constrains the spectral part of the study. It finds that encrypted fixed-point eigendecomposition keeps top eigenvalues within 0.1–5% RMSE, while Wang et al. observe degradation beyond the dominant components. FUGNN's filter depends on exactly those top components, so we treat it as a secondary stress test rather than the core. CrypTFlow supplies the default practice we compare against: its Athos compiler sweeps fixed-point scales to preserve top-1 accuracy, with no fairness term.

Research Program

The first component is a bit-exact fixed-point emulator for graph-network inference. It reproduces integer encoding modulo $2^k$, wraparound, and both deterministic and probabilistic truncation; for the probabilistic variant it injects the error distribution the protocol actually induces. Secure arithmetic is deterministic given the protocol, so emulation in plaintext is faithful. It is also cheap enough to sweep $k$, $f$, operation order, architecture, and seed. A subset of configurations will be re-run in an actual two-party additive-secret-sharing implementation following PrivGNN's design. This checks that emulated and real outputs match bit-for-bit and measures communication per configuration.

The second component is the analysis. For each node we record:

  • the relative representation error against FP32 at each layer;
  • whether its prediction flips;
  • its degree and its sensitive attribute.

We then regress flip rate on degree bucket and group, with degree and group entered jointly so that the two effects can be separated. This directly answers the open question in the file's Gap 4.4: does rounding act as a regularizer that suppresses weak proxy correlations, or as structured noise that worsens group gaps? We report whichever way it falls.

The third component is the intervention, designed to keep the bit-width $k$ fixed. The structure-oblivious variant factors the normalization as $D^{-1/2}\big(A\,(D^{-1/2}X)\big)$, where $D$ is the diagonal degree matrix and $A$ the 0/1 adjacency. This keeps the adjacency in exact integers and confines rounding to two diagonal scalings whose values are bounded below by $1/\sqrt{d_{\max}}$. It needs only a public upper bound on degree.

The second variant applies where coarse degree information may be revealed. It assigns separate fractional scales to a small number of degree buckets, analogous to per-channel scales in ordinary quantization. Its leakage is exactly bucket membership, a threat PrivGNN flags for structural metadata, and we state that leakage explicitly. Scales and orderings are chosen by minimizing the maximum, over degree buckets and sensitive groups, of the emulated flip rate on a validation split, subject to the same $k$.

Baselines

The naive reference point has two parts. The first is the FP32 plaintext model, which defines zero error. The second is "do the obvious thing": PrivGNN-style normalize-first encoding with a single $f$, chosen as the smallest value that keeps validation AUC within 0.5 points of FP32, as an accuracy-driven sweep would. This is the configuration a practitioner would ship today.

The strongest existing competitor is an Athos-style uniform scale sweep, as in CrypTFlow, extended so the selection criterion also penalizes the fairness gap. It is the direct threat to the proposal: if any uniform $f$ already preserves fairness at the target $k$, restructuring the arithmetic adds nothing. It gets the same grid of $(k,f)$ values, the same validation split, and the same selection budget as our method.

A further baseline spends more bits, at 24 and 32 total bits. We report its measured communication, because the file contains no per-bit cost figure. No reported result was found on Lacuna for communication as a function of bit-width on graph networks.

The fairness models are reproduced in FP32 before any fixed-point run, and we use the published numbers as sanity checks on that reproduction:

Model Dataset Published result
FairGNN (FairGCN) Pokec-z 76.7% AUC, ΔSP 0.5%
Unconstrained GCN Pokec-z 70.2% AUC, ΔSP 9.9%
FairVGNN German ΔSP 1.36 ± 1.90
FUGNN Income 80.18% accuracy, ΔSP 1.43%
DegFairGNN EMNLP roughly 70% lower degree-parity gap (ΔDSP) than GCN

Beating the strongest baseline means one specific result. At equal $k$, the factored or bucketed scheme must reduce worst-bucket flip rate, and must keep ΔSP and ΔEO within seed variance of FP32, in configurations where the fairness-aware uniform sweep cannot. AUC must not fall below the uniform sweep's.

Two ablations isolate the key ingredient. One applies the factored ordering with a single global scale. The other applies bucketed scales without reordering. Together they show whether the gain comes from keeping the adjacency exact or from allocating precision by degree.

Why not just…?

Why not just use 32 or 64 bits? That may well remove the effect, and the higher-bit runs will show whether it does. The point of the work is the regime practitioners actually choose. Blind Justice settles on 16 bits, and the cost literature cited above says communication grows superlinearly in $k$. If the degree-structured error vanishes at 24 bits with a small measured communication increase, we will say so, and the contribution narrows to the audit.

Why not just add a fairness term to the accuracy-driven scale sweep? This is the real threat. It is included as the strongest baseline with an identical budget. A uniform $f$ cannot satisfy both sides of the squeeze. Larger $f$ steals headroom from hubs, while smaller $f$ coarsens low-degree nodes, so we expect a gap at tight $k$. If the experiments show no gap, the method claim fails, and we will report it as such.

Why not just debias first in floating point and then quantize? The file's own evidence is that quantization can undo prior debiasing: the over-7-point increase in demographic parity difference reported by Marcuzzi et al.. Fair graph models often reach small gaps by fine cancellation; FairVGNN's ±1.90 spread on German already shows how fragile those gaps are. Running FairGNN, FairVGNN, and FUGNN through the emulator tests this directly. If their gaps survive accuracy-tuned rounding, that is a useful negative result.

Why not just treat rounding as harmless noise, given that PrivGNN loses only about 1.5 points? An aggregate drop says nothing about who absorbs it. The per-node flip-rate regression is designed to show whether that drop concentrates in particular degree buckets or groups.

Proposed Experiments and Decisive Checks

Datasets. The main benchmarks are Pokec-z and Pokec-n, which have heavy-tailed social degree distributions with region as the sensitive attribute. The degree-fairness graphs Chameleon, Squirrel, and EMNLP are used for degree parity. German, Credit, Bail, and Income are similarity-built graphs with milder degree spread. They serve as a contrast: the effect should shrink where degree varies less, and observing that would support the mechanism.

Models and settings. We use GCN and GraphSAGE backbones, the latter with mean aggregation, where hub rows carry weights of $1/d_i$. They are run plain and with each debiasing method across $k\in\{16,20,24,32\}$ with five seeds. For FUGNN we additionally quantize its eigenvector filter, in the style of PrivGED, to test whether drift in the top components reverses its gains.

Metrics. We report:

  • AUC or accuracy;
  • ΔSP and ΔEO between sensitive groups;
  • the degree-parity gap ΔDSP;
  • per-bucket flip rate and representation error;
  • measured two-party communication for the real-protocol subset.

Decisive checks. The first is whether, at the accuracy-selected 16-bit setting, flip rate differs significantly across degree buckets and groups on Pokec, and whether ΔSP moves outside the FP32 seed interval while AUC does not. If neither holds, the central claim is false. The second is whether, at fixed $k=16$, the factored ordering lowers worst-bucket flip rate below the best fairness-aware uniform $f$. The third is whether the effect is weaker on the similarity-built graphs, as the degree mechanism predicts. The fourth is whether real two-party runs match the emulator bit-for-bit, which the whole analysis depends on.