---
title: 'Selective Encryption: Concepts & Applications'
url: https://www.emergentmind.com/topics/selective-encryption
type: topic
---

# Selective Encryption: Concepts & Applications

Selective encryption is the practice of encrypting only a subset of a representation rather than the entire object. In the literature, the selected subset may consist of syntax elements in a compressed video bitstream, regions of interest in an image, chosen model parameters, gradient coordinates, principal-component features, token spans in text, disclosures in a credential, or cells in an encrypted stream. The stated objectives vary by domain, but recurrent themes are reduction of computation and latency, preservation of format-compliance or constant bitrate, support for hierarchical or attribute-based access control, and explicit privacy–utility tuning in distributed learning systems [2103.14844] [2011.13740] [2105.12344] [2508.04155].

## 1. Definitions and taxonomy

A 2020 survey of selective image encryption distinguishes three orthogonal classification axes: spatial-domain, frequency-domain, and hybrid methods; ROI-based and non-ROI-based methods; and block-based, bit-plane-based, and coefficient-based methods [2011.13740]. In that survey, full-image encryption is described as applying a cryptographic transform to every pixel or coefficient, whereas selective image encryption exploits unequal visual or semantic importance across the representation.

Subsequent work broadens the same idea beyond images. In VVC video coding, selective encryption refers to encrypting only a subset of syntax elements in a compressed bitstream rather than the entire coded data [2103.14844]. In CNN model protection, it refers to encrypting only carefully chosen model parameters so that unauthorized users obtain severely degraded inference while authorized users can receive partial decryption quotas and hence hierarchical service levels [2105.12344]. In federated learning, the selected object is commonly a subset of gradient coordinates or model parameters, with the encryption ratio treated as a tunable variable in the privacy–utility trade-off [2508.04155]. In credential and stream systems, the selected unit may be a disclosure or cell protected under a policy-specific token, so that different requesters recover different cleartext subsets [2505.09034] [1901.10221].

This range of definitions suggests that selective encryption is not tied to a single substrate. What remains stable across domains is the decision to localize cryptographic protection onto information-bearing components that are considered disproportionately important.

## 2. Selection principles and cryptographic mechanisms

The dominant design principle is to hide the greatest perceptual or inferential information with minimal encrypted data. In one VVC scheme, three syntax-element classes are chosen because they carry high visual information entropy: luma Intra Prediction Modes, Motion Vector Differences, and residual signs. The same work reports measured entropies of \(H(\mathrm{IPM}) \approx 5.8\) bits per CU, \(H(\mathrm{MVD}) \approx 3.2\) bits per MV, and \(H(\mathrm{signs}) \approx 1.2\) bits per coefficient sign [2103.14844].

In machine learning, the selection rule is usually expressed as an importance score. A systematic FL study defines a significance-scoring function \(s_i\) over gradient coordinates \(g^{(i)}\), then encrypts only the top-\(p\%\) coordinates:
\[
m_i =
\begin{cases}
1, & \text{if } s_i \text{ is among the top-}pm\text{ scores},\\
0, & \text{otherwise.}
\end{cases}
\]
The same study evaluates four metrics—Sensitivity, Product Significance, Gradient Magnitude, and Parameter Magnitude—and reports that no single strategy is universally optimal across all attack scenarios [2508.04155]. A different CNN-protection line formulates selection as an \(L_0\)-regularized optimization over Bernoulli mask probabilities \(p_i\), then encrypts the top \(\phi^l\) weights per layer after ranking by the learned \(p\)-scores [2105.12344]. HADES instead uses PCA and chooses the smallest \(k\) such that the cumulative explained-variance ratio \(R(k)\ge \tau\), then encrypts \(X_{HE}=X_sV_k\) while leaving the remaining components in plaintext [2606.22928].

The cryptographic back-end is correspondingly heterogeneous. Reported primitives include AES-CTR for syntax-element scrambling in VVC [2103.14844], CP-ABE combined with per-tile AES-GCM for 360 video [2505.04466], CKKS-based selective homomorphic encryption for federated tuning [2505.21051], a chaotic Henon map combined with XOR over segmentation masks in medical imaging [2403.04781], and AES-128 plus RSA in selective attribute masking for social-media text [2211.08653]. The field therefore couples a stable selection idea with domain-specific cryptographic realizations.

## 3. Codec-integrated video selective encryption

Compressed video has been a primary site for selective encryption because codec syntax creates sharply uneven information density. One VVC design inserts an SE block immediately before CABAC binarization and encrypts luma IPMs, MVDs, and residual signs using AES-CTR with per-CU IV derivation based on \((\mathrm{globalKey}, \mathrm{CU\ coordinates})\) [2103.14844]. On 8 test sequences under RandomAccess and \(QP=\{22,32,42\}\), that scheme reports a \(2\%\) to \(3\%\) bit rate increase, a runtime overhead of \(+3\%\) to \(+5\%\) encoding time on VVenC, SSIM dropping from \(\approx 0.99\) to \(0.08\), VMAF from \(\approx 99\) to \(\approx 6\), and EDR greater than \(0.9\) for encrypted frames.

A second VVC framework pursues two stricter constraints: format-compliance and constant bitrate. It operates inside the entropy encoder after binarization and before context modeling/arithmetic coding, and limits encryption to bypass-coded suffix bins whose flipping neither changes parsing nor alters total bitstream length [2103.04203]. The encrypted syntax includes transform-coefficient remainders and sign flags, MVD sign and magnitude, merge and triangle direction parameters, chroma intra-prediction candidates, and SAO parameters. Experimental results under VTM 6.0 report an encryption space of \(15\%\) to \(26\%\) of the bitstream, average anchor PSNR at \(QP=17\) dropping from \(44.77\) dB to \(10.17\) dB, SSIM from \(\approx 1.00\) to \(\approx 0.27\), VMAF from \(\approx 99\) to \(\approx 9.3\), and decoder overhead of about \(4.2\%\) at \(QP=17\).

Related HEVC and H.264/AVC work adapts the same general idea to older standards. An H.264/AVC scheme encrypts only I-slice NAL payloads with AES-128 while leaving SPS/PPS and P/B data unmodified, aiming to preserve syntactic compliance, although that paper does not report numerical throughput or distortion results [2201.03391]. A later HEVC ROI framework introduces three tunable levels: Level 1 encrypts only bypass-mode elements with \(0\%\) bitrate overhead, Level 2 adds regular-mode elements with roughly \(2\%\) to \(4\%\) bitrate increase, and Level 3 adds edge-based coefficient scrambling with roughly \(8\%\) to \(10\%\) bitrate increase; the same work reports average ROI IoU values of about \(0.90\) to \(0.95\) [2511.06394].

These codec-specific studies establish that selective encryption is not merely partial post-processing. In standardized video, it is often an intra-codec transformation constrained by syntax validity, entropy-coder behavior, and rate-distortion consequences.

## 4. ROI-centric image, medical, immersive, and remote-sensing systems

In still-image systems, the selected subset is usually an ROI rather than a syntax element. SISA defines a four-stage architecture: RoI detection, prioritization, selective alteration, and metadata embedding. It detects objects using Mask-R-CNN, YOLO, and face/text detectors, then either applies Gaussian blur or AES-CFB encryption to the top-\(k\) regions covering a user-selected area fraction \(L\%\) [2106.11770]. On 1920×1080 images, the reported mean times over 50 runs are 850 ms for full encryption, 460 ms for SISA selective encryption, and 120 ms for SISA blur; decryption time falls from about 900 ms to about 500 ms.

A medical-imaging variant replaces object detectors with 3D segmentation. A binary ROI mask \(M(i,j,k)\) is obtained from a Med3D-pretrained 3D ResNet-50 and thresholded at \(0.5\); only voxels with \(M=1\) are encrypted with a Henon-map-generated transformation matrix through bitwise XOR [2403.04781]. In the reported CT-brain experiments, the ROI fraction is \(\alpha \approx 0.53\), giving a retrieval speed improvement of around \(47\%\) compared with full-image encryption; decryption is lossless with RMSE \(=0\), PSNR \(=\infty\), UQI \(=1.000\), and SSIM \(=1.000\).

Immersive 360° streaming introduces an additional spatial-adaptive dimension. An ABE-based tiled framework defines encryption levels \(L=0,1,2,3\) over \(\{I,P,B\}\)-frame subsets and a viewport-adaptive policy \(P(v)\) based on tile importance weights \(w_i(v)\) [2505.04466]. On CloudLab, the reported cache CPU savings relative to HTTPS are \(36\%\) to \(60\%\) for HTTP-ABE-allI+P and \(31\%\) to \(47\%\) for HTTP-ABE-MajorP, with L2 caches seeing up to \(63\%\) savings and authorized-client VMAF remaining comparable to HTTPS at about \(90\) to \(95\).

A different remote-sensing line emphasizes attack-driven evaluation rather than only throughput. Tilewise Domain-Separated Selective Encryption derives per-tile subkeys using HKDF with explicit domain separation and evaluates reconstruction probes under chosen-plaintext attack settings [2602.23772]. That work reports that standard image-cipher metrics such as ciphertext entropy, histogram uniformity, correlation, NPCR, and UACI do not preclude transfer attacks, and shows reduced cross-tile transfer under per-tile separation, particularly for the linear probe.

## 5. Model and update protection in deep learning and federated learning

Selective encryption has become a central efficiency device in ML security because full cryptographic protection of model parameters or gradients is often computationally heavy. In CNN protection, Probabilistic Selection Strategy learns importance scores for weights and Distribution Preserving Random Mask encrypts the selected set while preserving layer-wise Gaussian statistics. On VGG19, the reported result is that merely encrypting \(8\%\) of convolutional-layer parameters reduces accuracy to \(\approx 10\%\), whereas competing strategies require about \(40\%\) encrypted; the same framework also supports \(M=5\) hierarchical service levels with accuracy recovery in discrete steps [2105.12344].

In federated learning, several works formalize selective encryption as partial protection of gradient or parameter coordinates. A 2025 study defines the selectively encrypted gradient \(\tilde g\) by encrypting indices in a set \(S\) with ratio \(\alpha=|S|/n\), proves a Bayesian Cramér–Rao lower bound on reconstruction error, and derives spectral perturbation bounds showing that covariance-spectrum distortion scales as \(O(\alpha)\) [2509.20476]. Its experiments on LeNet, MobileNetV3, and ResNet-18 report increasing reconstruction MSE as \(\alpha\) grows, with no recovery at \(\alpha=1.0\).

A complementary empirical study evaluates significance metrics against optimization-based and analytical inversion attacks on LeNet, CNN, BERT, and GPT-2, and identifies gradient magnitude as a generally effective metric against optimization-based inversions while also reporting that no single selective-encryption strategy is universally optimal across all attack scenarios [2508.04155]. That conclusion is echoed by a growing diversification of system designs. FAS encrypts only a small \(\eta\)-fraction of high-risk parameters with FHE and protects the rest through differential privacy and bitwise scrambling, reporting up to \(90\%\) speedup over applying FHE to all parameters [2501.12911]. SHE-LoRA selectively encrypts negotiated subsets of sensitive LoRA columns under CKKS and reports reductions of \(94.901\%\) in communication overhead and \(99.829\%\) in encryption computation overhead relative to its baseline [2505.21051]. HADES encrypts only PCA-selected features under multiparty homomorphic encryption, trains a plaintext branch on the remaining features, and reports accuracy matching vanilla FL within \(0.2\%\) to \(0.5\%\) together with up to \(4\times\) bandwidth savings [2606.22928]. TT-SEAL moves the same logic into TT-decomposed edge models, encrypting \(4.89\%\) to \(15.92\%\) of parameters while reducing the AES share of end-to-end latency from \(58\%\) to \(2.76\%\) on ResNet-18 [2602.22238].

Across these systems, selective encryption functions less as a single algorithm than as a budgeted allocation mechanism: cryptographic effort is concentrated on coordinates, features, columns, or TT cores judged to have the highest privacy sensitivity or robustness relevance.

## 6. Access control, selective disclosure, and encrypted streams

A separate line of work treats selective encryption as a mechanism for fine-grained release semantics rather than primarily a workload reduction device. Secure Selective Stream considers a multi-writer setting in which mutually untrusted data sources upload encrypted rows into a public stream while a Data Owner issues tokens that permit subscribers to select and decrypt only authorized cells [1901.10221]. The construction is built from Amortized Orthogonality Encryption and yields ciphertext size proportional to the unencrypted data, with encryption and decryption linear in the row size.

In credentials, a CP-ABE extension of SD-JWT encrypts each disclosure \(D_i\) under its own policy \(A_i\), places the resulting ciphertexts into a Holder-signed bundle, and allows a Verifier to recover only those disclosures whose attributes satisfy the corresponding policies [2505.09034]. The reported measurements show near-linear behavior in the number of disclosures: SD-JWT generation remains roughly constant at 4–6 ms, while encryption rises from 150.5 ms for 5 disclosures to 561.4 ms for 20, and decryption from 137.9 ms to 488.8 ms.

Selective attribute masking in text applies the same principle at token level. In #maskUp, a transformer-based NER pipeline identifies sensitive entities, AES-128 encrypts only the tagged spans, and RSA protects the per-user symmetric key for authority-side recovery [2211.08653]. On 30 real-world posts, that work reports encryption time dropping from 2038.5 ms for full-message AES to 211.6 ms for selective masking, with memory use falling from 1.406 kB to 0.553 kB.

These systems demonstrate that selective encryption can encode authorization structure directly into the cryptographic object. The selected subset is not merely the “important” subset in an information-theoretic sense; it is the subset that a policy intends to reveal, with the remainder left opaque.

## 7. Evaluation criteria, misconceptions, and open directions

Evaluation practice is highly domain-dependent. Media papers emphasize perceptual and coding metrics such as PSNR, SSIM, VMAF, EDR, NPCR, UACI, bitrate overhead, cache hit rate, and rebuffer ratio [2103.14844] [2505.04466]. Learning papers use reconstruction MSE, LPIPS, ROUGE-1, Wasserstein embedding distance, substitute-model accuracy, transfer ratios, and end-to-end runtime or bandwidth [2508.04155] [2602.22238]. Access-control systems emphasize token correctness, latency scaling with the number of disclosures or stream cells, and the asymmetry between public ciphertext access and authorized cleartext recovery [1901.10221] [2505.09034].

One recurring misconception is that strong ciphertext randomness metrics are sufficient evidence of security. Remote-sensing results explicitly argue that entropy, histogram uniformity, correlation, NPCR, and UACI do not preclude structural transfer attacks when secret-dependent transformations are reused across tiles or frames [2602.23772]. Another misconception is that a single significance metric is universally optimal; federated-learning evaluations instead report architecture- and attack-dependent behavior, with gradient magnitude effective in many optimization-based settings but not universally best [2508.04155].

Open problems reported across the literature include side-channel attacks that may infer encrypted-index sets in model protection [2105.12344], adaptive \(\alpha\) scheduling and hybrid quantum-resilient HE strategies in FL [2509.20476], multi-key or threshold HE as an alternative to single-key assumptions in federated tuning [2505.21051], stronger ML-based distinguishers and authenticated encryption in remote sensing [2602.23772], and efficiency improvements for CP-ABE in real-time selective disclosure [2505.09034]. This suggests that the central research question is no longer whether partial encryption can be efficient, but under what threat models, syntax constraints, and policy semantics a reduced encrypted subset remains a defensible security boundary.

Source: https://www.emergentmind.com/topics/selective-encryption