Hub Replication Inside Ciphertext Slots for Encrypted Graph Convolution

Running a graph neural network on encrypted data is slow for a reason that differs from plaintext graph processing. In fully homomorphic encryption (FHE), a scheme that lets a server compute on data it cannot read, thousands of numbers are packed into the "slots" of one ciphertext and processed together. Adding a node's neighbors then means moving values between slots with ciphertext rotations, and each rotation costs about twenty multiplications (FicGCN). Plaintext systems have a well-tested answer to irregular neighbor access: keep the few highly connected "hub" nodes in fast memory. Pinning roughly 1% of nodes serves most neighbor requests (GNS), and 0.5% of vertices draw over 73% of memory accesses in hypergraphs (RAHP). This note proposes the encrypted version of that idea. The "fast memory" becomes the slot neighborhood of a ciphertext, and a "cache miss" becomes a rotation or a cross-ciphertext gather.

The core move is for the client, when packing its features before encryption, to place extra copies of hub nodes' features into the spare slots of every ciphertext block that holds many of the hub's neighbors. Many edges that would otherwise need rotations become local slot-wise operations. Because degree is heavily skewed, a small replication budget should cover most costly edges. The open question that decides whether the idea works is the cost of keeping copies consistent across layers. This proposal measures that cost directly rather than assuming it away.

Core Claim

In the threat model of CryptoGCN and FicGCN, the graph structure is public to the server and only node features are encrypted. Here, degree-ranked replication of hub features into spare ciphertext slots cuts aggregation rotations beyond what node reordering alone achieves. The gain should grow with degree skew. It should vanish on near-regular graphs such as skeleton action graphs. And it should come at no accuracy cost, because replication is exact rather than approximate.

Let $R$ be the set of (hub, block) copies, $S$ the slot budget, $c_0(e)$ the layout-dependent aggregation cost of edge $e$ under a reordering-only packing, and $c_R(e)$ that cost when a copy is present. The client chooses

$$ R^\star = \arg\min_{|R| \le S} \; \sum_{e \in E} c_R(e) \;+\; (L-1)\sum_{(h,b)\in R} r(h,b). $$

Here $L$ is the number of graph convolution layers. The term $r(h,b)$ is the rotation-and-mask cost of refreshing the copy of hub $h$ in block $b$ after each layer. Each refresh mask multiply also consumes one CKKS level, where CKKS is the standard approximate-arithmetic FHE scheme. The first layer's copies are free because the client creates them in plaintext. A greedy pass ranked by edges saved per slot is the natural solver. Under power-law degree, the top of that ranking is dominated by hubs, which is the source of the expected small-budget effect.

Relation to Prior Work

Three encrypted graph convolution systems supply the substrate and the constraints.

CryptoGCN packs features to match patterns in a public adjacency matrix and removes aggregation rotations on skeleton graphs. FicGCN outperforms it by 4.10× on irregular Corafull, which suggests that pattern-matched packing does not carry over to skewed graphs. FicGCN is the method this proposal builds on. It uses power-of-two rotations with masks for in-ciphertext sums and reorders nodes with breadth-first search to place neighbors in nearby slots, cutting rotations by up to 66.4%. Its reordering, however, gives each node exactly one slot and ignores degree. A hub with neighbors in many blocks therefore cannot be close to all of them, and that is the gap replication targets.

Penguin encrypts the graph structure as well. It also shows that projection layers leave empty slots, which it merges on the fly. That finding motivates this proposal: spare slots exist and can hold copies. It also constrains it. Under encrypted structure, any degree-dependent layout leaks degree, so this proposal is scoped to the public-structure setting. The encrypted-structure case is treated only as a limited extension, in which a single public replication budget is revealed and per-node degrees are not.

LinGCN reduces multiplicative depth by linearizing activations node by node. It is complementary. Its depth savings determine how many levels remain for replica refreshes, so the two are evaluated together.

On the caching side, GNS, AlayaLaser and SVFusion all pin high-degree or high in-degree nodes in a faster memory tier. This proposal takes their selection principle, not their mechanism, because what is scarce here is slot proximity rather than bytes. The low 6.9% L2 hit rate that Yan et al. report for convolution aggregation shows that recency-based policies fail on wide vectors. That reinforces the choice of a structural rather than temporal criterion. Their 4.76× gain from combining before aggregating also matters: it shrinks the width of what must be replicated.

Research Program

The work has three parts.

The first part is a cost model calibrated on FicGCN-style packing. It measures per-edge aggregation cost as a function of slot distance and block membership, along with the refresh cost $r(h,b)$, by timing primitive rotations and masked multiplies under the chosen CKKS parameters.

The second part is a client-side packer. It runs FicGCN's reordering, computes the free slots per block after the combine step, and greedily adds hub copies by marginal saving net of refresh cost. The server-side aggregation is modified so that each edge reads from the nearest copy.

The third part is a refresh scheduler. After each layer it decides, per copy, whether to refresh it by rotation from the hub's home slot or to drop it. Dropping is cheaper when few downstream edges use the copy. It also batches refreshes that share a rotation offset.

A secondary metric is the number of distinct rotation offsets used, which determines the set of Galois keys (the large keys needed for each rotation amount) the server must hold. The FHE accelerator SoK identifies fetching these keys as a persistent memory bottleneck.

Baselines

The naive reference is FicGCN's packing with nodes in their original dataset order, that is, without its reordering. It shows how much any layout optimization buys.

The strongest existing method is full FicGCN with breadth-first reordering and latency-aware packing. It is the strongest competitor because it already attacks exactly the rotation cost this proposal targets, and it reports outperforming Penguin by up to 2.01× and CryptoGCN by 4.10× on Corafull, a 21.6× speedup over Gazelle on Cora, and a 66.4% rotation reduction from reordering. No reported absolute FicGCN latency in seconds was found on Lacuna. For that reason, FicGCN will be re-run with the same CKKS library, ring dimension, modulus chain, 128-bit security level, hardware and thread count as every other configuration. Its packing width will be tuned with the same search budget as ours.

Penguin is included as the encrypted-structure reference. It reports 0.24 seconds amortized per node on Cora and thousands of seconds on Pubmed.

The key-ingredient ablation is degree-sorted reordering without copies, which places hubs centrally but gives them one slot each. A second ablation keeps copies but selects them by breadth-first locality instead of degree.

Beating FicGCN means at least a 1.3× end-to-end inference latency reduction on Pubmed and Corafull at identical accuracy and security. Beating the degree-sorted ablation by a clear margin is required to show that copies, rather than degree-aware placement, carry the effect.

Why not just…?

Why not just reorder nodes by degree and skip replication? This is the real threat, since it is cheap and may capture much of the benefit. The degree-sorted ablation answers it directly. If it comes within 10% of full replication on the skewed graphs, replication is not worth its slot cost, and the contribution collapses to a reordering heuristic. In that case the proposal would be reframed accordingly.

Why not just cache rotation results on the server? The server could memoize each (ciphertext, offset) rotation and reuse it across edges, with no layout change. This is a plausible competitor for later layers, where copies must be refreshed anyway. It will be implemented as a baseline with an unbounded memo table, giving its best case. The expected difference lies in the first layer: client-side copies cost zero rotations there, whereas memoization still pays once per distinct offset.

Why not just cache ciphertexts in GPU memory by degree, as plaintext systems do? At the graph sizes where encrypted inference is currently feasible (Cora through Corafull), working-set measurements will show whether memory stalls or rotation arithmetic dominate. FicGCN's finding that rotations dominate suggests arithmetic does. If profiling shows memory stalls above 30% of runtime, a physical degree-aware ciphertext cache becomes a secondary experiment rather than being dismissed.

Why not just use FHE hardware accelerators? Accelerators speed up each rotation but do not reduce how many rotations are needed. The SoK reports that memory for evaluation keys remains a bottleneck even on dedicated chips. Replication reduces both the rotation count and the number of distinct rotation keys, so it composes with accelerators rather than competing with them.

Proposed Experiments

The main evaluation runs 2- and 3-layer graph convolution inference on Cora, Citeseer, Pubmed and Corafull, as used by FicGCN and Penguin. It reports end-to-end latency, rotation count, distinct rotation offsets, ciphertext count, peak memory and test accuracy. Accuracy should match up to CKKS numerical noise, since replication is exact.

To test whether gains track degree skew, the same runs will be repeated on NTU-XVIEW skeleton graphs, which are near-regular. Replication should give approximately nothing there. A positive result on NTU-XVIEW would indicate a modeling error rather than a success.

To test scaling, encrypted aggregation will be run on sampled subgraphs of ogbn-arxiv and Pokec at increasing sizes. Speedup is plotted against slot budget, from 0.5% to 5% of nodes replicated. The expected shape is a steep early gain that flattens, mirroring GNS's 1% finding.

The decisive check is the refresh-cost fraction: the share of total rotations spent keeping copies consistent, as a function of depth $L$. If refreshes erase the savings by $L=3$, the method is confined to first-layer copies. In that case it would be evaluated in combination with LinGCN-style linearization, to test whether fewer non-linear layers leave enough levels and time for refreshes.