Spectral Depth Instead of Spatial Depth: Rotation-Light Encrypted Inference on Multispectral Satellite Tiles

Homomorphic encryption lets a server compute on data it cannot read. The client encrypts its input, the server runs its model on the ciphertext, and only the client can decrypt the answer. For satellite imagery this fits a real deployment. A company holds a proprietary land-cover or crop model. A government or insurer holds imagery of sensitive sites and will not hand it over. Neither side wants to give up its asset. The obstacle is cost. Encrypted neural networks spend most of their time on "rotations," the operation that shifts values between the packed slots of a ciphertext so that neighbouring pixels can be summed. Rotations are roughly ten times more expensive than a multiplication and account for over 90% of runtime in standard encrypted CNNs (Falcon, Efficient Privacy-Preserving Inference for CNNs). A convolution is essentially a rotation machine, because every 3×3 kernel mixes spatial neighbours.

Multispectral imagery offers a way around this. A Sentinel-2 pixel carries 13 reflectance values spanning red-edge, near-infrared and shortwave-infrared light. Much of what separates forest from pasture, or river from highway, lives in that per-pixel spectrum rather than in spatial texture (EuroSAT). Suppose each band is packed into its own ciphertext, so that slot $i$ of every band ciphertext holds the same pixel. Then any mixing across bands becomes plaintext-weight multiplications and additions between whole ciphertexts, with zero rotations. The proposal is to build and test encrypted classifiers that spend nearly all of their depth on the spectral axis and almost none on the spatial axis. The question is whether multispectral input lets such models approach deep-CNN accuracy at a fraction of the encrypted cost.

Core Claim

On multispectral land-cover tasks, the best trade between accuracy and rotation count under homomorphic encryption comes from three design choices taken together:

  1. Band-major packing. Each band gets one ciphertext, and many pixels, possibly from several tiles, share its slots.
  2. A deep per-pixel spectral network. These are 1×1 "convolutions," meaning linear maps across bands at each pixel, interleaved with low-degree polynomial activations. None of them requires a rotation.
  3. A very small spatial budget. At most one shallow spatial layer is applied directly to the input bands, followed by a single pooling step.

This design never appears in prior encrypted-inference work, because on RGB data it would be useless. Three colour values per pixel carry too little information, so spatial convolutions are unavoidable. The novelty lies in the claim that the extra spectral bands substitute for spatial depth, and that this substitution is exactly what homomorphic encryption rewards.

Two identities keep the rotation count small.

The first concerns the spatial layer. A 3×3 spatial filter applied to the raw bands needs only 8 rotations per band ciphertext. The rotated copies can be computed once and reused by every output channel, so the spatial layer costs about $8B$ rotations, where $B$ is the number of bands (13 for Sentinel-2). This does not depend on the hidden width.

The second concerns pooling. The classifier head is linear, and averaging is linear, so the two commute:

$$ W\,\frac{1}{P}\sum_{p=1}^{P} h_p \;=\; \frac{1}{P}\sum_{p=1}^{P} W h_p . $$

Here $h_p$ is the hidden feature vector at pixel $p$, $P$ is the number of pixels in a tile, and $W$ is the head's weight matrix. The server can therefore compute per-pixel class scores in $K$ ciphertexts, one per class, and pool only those. That costs about $K \log_2 P$ rotations. For EuroSAT's 10 classes and 64×64 tiles, this is about 120 rotations in total.

There is an even cheaper option. The server can return the per-pixel scores unpooled, and the client averages them after decryption. This costs zero rotations and gives the client a pixel-level land-cover map as a by-product. It does reveal more of the model's output, and the proposal treats this as an explicit design point in the threat model.

Research Program

Stage 1: plaintext accuracy study. The first stage uses no cryptography. It asks how much spatial depth multispectral classification actually needs, under homomorphic-encryption-compatible constraints.

  • Input. EuroSAT's 13 bands, with the 20 m and 60 m bands resampled to the 10 m grid on the client before encryption. Resampling is free there, because the client holds the plaintext.
  • Model family. We sweep two axes:
  • spectral depth, from 1 to 6 per-pixel layers;
  • spatial budget: none, one 3×3 layer, or two.
  • Activations. Every nonlinearity is a degree-2 polynomial. Pooling is by averaging only.
  • Band subsets. Each configuration is trained on RGB-only, on the ten 10 m and 20 m bands, and on all 13 bands.
  • Output. A plaintext accuracy surface. It tells us, before paying any encryption cost, whether spectral depth really does compensate for missing spatial depth. It also tells us whether this compensation disappears when only RGB is available. We expect it to disappear, which would confirm the mechanism.

Stage 2: encrypted implementation. We implement the selected models in CKKS, the homomorphic scheme for approximate real-number arithmetic.

  • Parameters. 128-bit security, leveled evaluation with no bootstrapping. Squaring activations consume a fixed number of levels, so depth is budgeted in advance.
  • Library. We build on HeLayers tile tensors (Tile Tensors) so that baselines share the same library.
  • Slot use. With 8192 slots per ciphertext, two 64×64 tiles fit in each band ciphertext. Throughput can therefore be reported both per query and amortized per tile.
  • Measurements. Rotations, ciphertext-plaintext multiplications, levels consumed, latency, and ciphertext bytes uploaded and downloaded.

Stage 3: transfer. The same comparison runs on Sat-4, Sat-6 and So2Sat, which Sub-Band Backdoor Attack already uses as multispectral benchmarks. This tests whether the spectral-for-spatial trade holds beyond one dataset, including on classes that depend on spatial layout, such as Highway versus Industrial. We will report per-class accuracy, because we expect the spectral-first design to lose ground specifically on geometry-defined classes. That loss is the honest cost of the approach.

Baselines

Naive reference points. The weakest point is a per-tile band-mean linear classifier evaluated under encryption. It needs only the pooling rotations and shows what the spectrum alone buys with no learned depth. The unencrypted ceiling is a fine-tuned ResNet-50 on EuroSAT, reported at 98.57% overall accuracy in EuroSAT. The file lists this figure under the RGB bands. The same paper reports a bag-of-visual-words SVM at around 70%. We will retrain the plaintext ResNet-50 on our own 13-band split, so that the accuracy gap to our encrypted models is measured on identical data.

Strongest existing encrypted method. This is an encrypted CNN with rotation-aware optimization, run on the same 13-band input:

  • SpENCNN's group-interleaved encoding with sub-block pruning (SpENCNN), which reports up to 19.26× speedup over its HE baseline on CIFAR-10;
  • in the same library, HeLayers' searched packing of a small HE-friendly CNN.

No reported result was found on Lacuna for any encrypted model on EuroSAT or any multispectral dataset. The nearest published points are on other data: Falcon at 76.5% accuracy and 107 seconds on CIFAR-10 (Falcon), and HeLayers' HE-friendly AlexNet at 80.6% accuracy and 300–350 seconds on COVIDx CT-2A (Tile Tensors).

Fairness is enforced as follows:

  • every encrypted model uses the same CKKS security level, machine, thread count and polynomial activation family;
  • every encrypted model gets the same training epochs and hyperparameter search budget.

The encrypted CNNs are tuned in width and depth to their own best accuracy-latency frontier, rather than fixed to a small size. Beating them means one of two things: at matched accuracy (within 0.5 points), at least 5× fewer rotations and lower wall-clock latency; or at matched latency, higher accuracy.

Ablations isolating the key ingredients. Two ablations each remove one ingredient.

  • Packing. The same spectral network is run with pixel-interleaved packing, where bands share slots. Cross-band mixing then needs rotations, and this isolates the contribution of band-major packing.
  • Spectrum. The full sweep is repeated on RGB-only input. If RGB spectral-first models collapse while 13-band ones do not, the gain is attributable to the spectral bands and not to shallow models being generically adequate.

Why not just…?

Why not just run an existing encrypted CNN (SpENCNN or HeLayers) on the resampled 13 bands? This is the most serious competitor. Nothing in the file shows it would fail on accuracy. Those systems optimize the packing of spatial convolutions (SpENCNN, Tile Tensors), but a spatial convolution still pays rotations for every channel it mixes, and more input bands means more channels to pack. Our bet is that the rotation count, not the accuracy, is where they lose. The main baseline comparison settles this directly. If a tuned encrypted CNN reaches our accuracy at comparable latency, the claim is false and we will report it that way.

Why not just compute handcrafted features on the client and send them to an encrypted tree ensemble? Because the client holds the plaintext, it can cheaply compute band means, NDVI-style ratios and texture statistics. The server can then run a non-interactive encrypted decision tree (Non-Interactive Private Decision Tree Evaluation). Random-forest land-cover pipelines can be accurate in plaintext (Sun et al.). This is a real threat, and it also shows that encrypting index computation itself would be pointless, which is why we do not propose it. It has two weaknesses:

  • It fixes the features on the client side, so the server's model reveals which features matter and cannot learn new ones.
  • The file's only EuroSAT evidence on engineered features is the roughly 70% bag-of-visual-words result.

We include this pipeline as a baseline: gradient-boosted or random-forest trees on a standard spectral-statistics feature set, evaluated with the tree protocol. It is compared on accuracy and on latency per tile.

Why not just use RGB with existing tools, since the plaintext ResNet-50 already reaches 98.57% on RGB? Three RGB channels are cheaper to encrypt. However, RGB forces the model to extract its signal from spatial texture, which is exactly the rotation-heavy part. The RGB-only ablation measures this directly. If RGB encrypted CNNs match 13-band spectral-first models at equal rotation budgets, the proposal's premise fails.

Why not just use a hardware enclave or multi-party computation? Enclaves trust vendor hardware and are exposed to side channels (Hardware-assisted Memory Protection). Interactive multi-party protocols need several communication rounds per query (Non-Interactive Private Decision Tree Evaluation), which suits poorly connected ground clients badly. These are legitimate deployment choices. They are orthogonal to the question here, which is how cheap single-round encrypted inference can become on multispectral data.

Decisive Checks

The idea succeeds only if all four of the following hold:

  1. In the plaintext study, 13-band spectral-first models with at most one spatial layer come within about 3 points of our retrained 13-band ResNet-50 on EuroSAT, while their RGB counterparts fall well short.
  2. Under encryption, the per-query rotation count stays in the low hundreds, versus thousands for the tuned encrypted CNN baseline, with wall-clock latency falling accordingly.
  3. The encrypted models match their plaintext twins to within 0.5 points, showing that CKKS approximation error is harmless at this depth.
  4. The client-feature tree baseline does not dominate on both accuracy and latency.

Per-class results on Sat-4, Sat-6 and So2Sat will show where spatial geometry cannot be replaced by spectrum. That boundary is itself a useful finding for anyone deploying encrypted Earth-observation models.