arXiv:2608.22866cs.CVAug 2026

Manuscript Offprint

arXiv:2608.22866

Toward Sub-1 kB Identity-Preserving Face Compression: A Benchmark of Codecs, a Custom Learned Codec, and Studies of Resolution, Demographic Fairness, Recompression, and Adversarial Robustness

Petr Hurtik, Jakub Sochor

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

A Benchmark of Codecs, a Custom Learned Codec, and Studies of Resolution, Demographic Fairness, Recompression, and Adversarial Robustness

Petr Hurtik and Jakub Sochor

Innovatrics

August 2026

Main findings

ThemeFinding
FeasibilitySub-1 kB identity-preserving compression is achievable: modern codecs keep 112 px EER below ~0.5% on Color FERET/ArcFace at 1024 B (WebP 0.09%, up to 0.61% under EdgeFace-XS); AI-Solutions-KK runs higher (§5).
1024 B rankingJPEG-AI leads identity (Color FERET id-cosine 0.958 at 224 px); Ours-ACCURATE 0.947/FAST 0.942 sit just behind, ahead of AVIF 0.899/WebP 0.893; JPEG 0.610 and JPEG 2000 0.585 collapse.
Operating pointAt FMR= 10-4/1024 B, JPEG-AI, WebP and AVIF give the lowest FNMR; JPEG 2000 is worst (~38% on Color FERET).
The 512 B collapseAt 512 B, AVIF/HEIF/JPEG XL and legacy JPEG collapse to 28–98% FNMR; WebP (6.0%), JPEG-AI (2.9%) and the byte-budgeted learned codecs (Ours-ACCURATE 1.8%, Ours-FAST 6.7%) hold up. CompressAI baselines can't be placed: at n=3,375 impostor pairs, FMR= 10-4 isn't estimable.
Custom codecOurs-ACCURATE (18.7 M params) tracks JPEG-AI on identity: runner-up at the 224 px headline (id-cos 0.947 vs 0.958) but leading at 112 px (0.948 vs 0.930), where it also beats JPEG-AI at 512 B on Color FERET (1.83% vs 2.86% FNMR) and is best on AI-Solutions-KK at 512 B (6.9% vs WebP 24.3%) — confirmed on the held-out CVLFace-IR101 matcher (0.92% vs WebP 2.55%; §7.6).
Model effectThe codec ranking is backbone-invariant (ViT and CNN/IR; Kendall W=0.85, twelve codecs across all fourteen matchers at 112 px, rising to 0.89 without the four EdgeFace-family matchers): absolute EER tracks matcher strength, not codec order, and ACCURATE > FAST holds on the held-out CVLFace-IR101 backbone.
Budget complianceSeveral classical codecs barely reach 512 B at 168/224 px (0–5% fit; WebP up to 31%); JPEG 2000 always fits but is worst on identity — a fit-vs-accuracy tension.
ResolutionDownsampling to 112 px loses almost no identity (AC energy > 0.99, embedding cosine > 0.99 for most matchers, LVFace-L the exception at 0.90) while freeing bits — the operating sweet spot.
Quality ≠ utilityImage quality is an unreliable utility proxy: at 1024 B neither PSNR (ρ=-0.45) nor LPIPS (+0.37) predicts EER (only SSIM/MS-SSIM clear p<0.05, weakly); dropping the two coverage-artefact neural baselines (n=10) makes PSNR/MS-SSIM track firmly (-0.82/-0.92) while LPIPS still fails. At 512 B all predict, DISTS tightest (+0.96); the learned codec wins LPIPS/DISTS even where it trails PSNR/SSIM.
FairnessCompression mildly widens the between-group EER gap: JPEG 2000 amplifies uniform skin-tone disparity 11.2–20.0× on the three independent anchors (+3.4–5.0 pp); every other codec—ours included—adds at most 1.7 pp. Ours-ACCURATE's ArcFace/Color FERET ethnicity disparity (0.42 pp) is mid-band (JPEG-AI 0.26, JPEG 2000 3.62); the KK per-tone ordering is non-monotone, so we claim no clean "darker-skin" gradient (§11).
RecompressionSame-codec and modern-to-modern re-encoding is benign, but some chains (JPEG XL→HEIF/AVIF) spike EER sharply — to be avoided in document pipelines.
AdversarialLossy compression sanitizes no-box (HFC, CLIP, Li-AE) perturbations, but sanitization strength runs opposite identity preservation: at 1024 B JPEG 2000 sanitizes best and is worst on clean identity, while Ours-ACCURATE — strongest at 112 px — is the weakest sanitizer.
SignificanceMost top-modern-codec pairs are statistically significant but practically negligible (ROC-AUC gaps at the 4th decimal; only AVIF≈WebP and HEIF≈JPEG XL fail significance on Color FERET) — operationally interchangeable; all beat JPEG/JPEG 2000 decisively (McNemar/DeLong, BH-FDR).
Hard budgetA binary search over a frozen 64-entry gain table with a self-describing container guarantees ≤ B bytes; a gain-CDF cache makes the learned encode 2.4–5× faster.

Reading the matcher roster: the four anchor matchers (ArcFace-antelopev2, LVFace-L, TopoFR-R100, EdgeFace-XS) carry every metric in this report; the wider fourteen-model roster appears only in the model-effect panels of Section 5, testing whether the codec ranking depends on the matcher backbone. CVLFace-IR101 is additionally held out as an independent check on the custom codec (Section 7.6).

Table 1: Deployment recommendations distilled from the study. EER figures are Color FERET at 112 px under ArcFace unless stated; FNMR@ 10−410^{-4} figures are the mean across the ArcFace and LVFace-L anchors. Section references give the supporting evidence.

ConstraintRecommendationSupporting evidence
Best identity at 1024 B; software or GPU decode acceptableJPEG-AI or Ours-ACCURATEThese two lead the field and are effectively tied: mean FNMR@10−410^{-4} 2.92% vs 2.93% on the in-the-wild AI-Solutions-KK set and 1.00% vs 1.26% on Color FERET, with overlapping 95% subject-bootstrap CIs on all four anchors of both datasets (§5.3). Which one leads depends on the anchor, not on the codec: Ours-ACCURATE takes three of the four KK anchors, JPEG-AI three of the four Color FERET ones, and on KK at 112 px under ArcFace McNemar cannot separate them at all (χ2=3.2\chi^2=3.2, p=0.074p=0.074; §14). Choose on engineering grounds: JPEG-AI leads identity cosine at 224 px (0.958 vs 0.947, n=64n=64 crops/cell), Ours-ACCURATE decodes 15× faster on GPU (63 vs 959 ms) from an 18.7 M-parameter self-contained model (§6.7). Neither has decoder silicon (§6.6)
1024 B with broad software deployability and royalty-free licensingWebP or AVIFBoth reach EER 0.09% at 1024 B, level with JPEG-AI and ahead of Ours-ACCURATE (0.14%), and they are statistically tied with each other on Color FERET (§14). This row is won on licensing and ubiquity, not on accuracy: WebP (3.1) and AVIF (4.1) sit behind JPEG-AI (1.9) on mean EER rank across the fourteen matchers, with Ours-ACCURATE level with WebP at 3.1 (Figure 45). Pick these when a royalty-free, universally decodable bitstream matters more than the last 0.05 pp
Hard 512 B or sub-800 B operation at the 112 px working resolutionbyte-budgeted learned codec (JPEG-AI or Ours-ACCURATE)classical codecs collapse below ~800 B (§5.5); Ours-ACCURATE is the best codec on the in-the-wild set at 512 B (FNMR@10−410^{-4} 6.9% vs WebP 24.3%; held-out confirmation in §7.6). At 224 px the 512 B ranking inverts: on Color FERET the leaders are separated by less than 0.4 pp (JPEG-AI 3.19%, WebP 3.20%, Ours-FAST 3.24%, JPEG XL 3.53%) with Ours-ACCURATE 5th at 4.23% (§5.3)
Hardware decoder required on legacy/mobile siliconHEIF (patent-encumbered) or JPEG at 1024 B onlyHEVC decode HW is near-universal since ~2015 (§6.6); JPEG holds 0.25% EER at 1024 B but 33.4% at 512 B (§5)
Encode on a bare CPU core in real timeJPEG, JPEG-FzT, or WebPencode 0.26/3.7/4.2 ms per crop; HEIF costs 172 ms and the learned codecs need a GPU for interactive encode (§6.7)
Recompression expected downstream (verified for pre-compressed sources only)Fairness-sensitive deploymentfix one modern codec end-to-end; safe targets WebP/AVIF/HEIF any modern codec except JPEG 2000; Ours-ACCURATE at 512 Bmodern-to-modern chains cost < ~1 pp; forbid JPEG XL→HEIF (+16–21 pp) and JPEG XL→AVIF (+7–13 pp), and any JPEG 2000 chain (§12)JPEG 2000 amplifies the skin-tone disparity 11.2–20.0× (+3.4–5.0 pp) at 1024 B on the three side-stream-independent anchors; all others add at most 1.7 pp. At the harder 512 B point the classical gaps widen sharply (Color FERET ethnicity: JPEG 8.3–12.3 pp, HEIF 7.5–8.4 pp) but Ours-ACCURATE stays lowest (0.4–0.5 pp on the independent anchors; §11.5)
Avoid in all configurationsJPEG 2000; JPEG at ≤512 BJPEG 2000 has the worst identity at every 1024 B operating point and is the worst codec on average, despite always fitting the budget (§5.7); at the tighter 512 B/112 px point legacy JPEG is worse still (33.4% vs 19.5% EER); catastrophic 512 B chains (§12)

Abstract

Storing or transmitting face images under a hard sub-kilobyte budget—for identity documents, smart-card biometrics, and bandwidth-constrained verification—forces a codec to discard most of the signal while keeping the part a face matcher actually reads: identity. Generic image codecs optimize for pixel fidelity, not for the embedding distances that drive verification, so it is unclear which codec, resolution, and setting best preserve identity at ≤\leq1024 bytes, and how this degrades toward an even harder 512-byte point.

This report addresses that gap in three parts. First, we benchmark ten off-the-shelf general and face-specific codecs across resolutions, byte budgets, two datasets (controlled Color FERET and in-the-wild AI-Solutions-KK), and four face-recognition anchor models, with a fourteen-model roster spanning ViT and CNN backbones used to check that the codec ranking is backbone-invariant. Second, we train a custom identity-preserving codec in two variants—a tiny model with no side stream and a larger model with an identity side-stream and a refine head—that enforces the byte budget exactly via a binary search over a frozen gain table and packs a self-describing container. Third, we run four studies: resolution, demographic fairness, compressed-on-compressed recompression, and no-box adversarial robustness.

Sub-kilobyte identity preservation is feasible, but which codec to deploy depends entirely on the budget. At 1024 bytes and the 112 px verification working resolution the problem is close to solved: the modern codecs hold Color FERET equal-error rate under 0.35% on the ArcFace anchor (up to 0.85% on the weakest, EdgeFace-XS), and the choice between them is nearly immaterial. At 512 bytes the field re-sorts. AVIF, HEIF, JPEG XL and legacy JPEG collapse to 28–98% false-non-match rate at FMR= 10−410^{-4}, while WebP, JPEG-AI and the byte-budgeted learned codecs stay out of that band — single digits on Color FERET, and, in the wild, 24.3% for WebP against 6.9% for our accurate variant. That re-sort, not the 1024-byte ranking, is the operational result: a codec chosen at 1 kB is not the codec to deploy at half that.

Our accurate variant is the strongest codec at the harder point. On the in-the-wild AI-Solutions-KK set at 512 bytes it reaches 6.9% FNMR@ 10−410^{-4} against WebP's 24.3%, and on Color FERET 1.83% against JPEG-AI's 2.86% — confirmed on a held-out matcher independent of the identity side-stream it is trained against. We also report the framing that is least favourable to our codec: measured by median identity-cosine at the 224 px source resolution and 1024 bytes, JPEG-AI leads at 0.958 and our variant is runner-up at 0.947 (AVIF 0.899, classical JPEG 0.610). The ranking inverts at the 112 px working point (0.948 vs 0.930), and image fidelity tells a third story again — our codec trades broadband pixel accuracy (PSNR 28.6 dB against JPEG-AI's 33.3 dB) for identity and perceptual quality. That the three metrics disagree is itself a finding: codec choice for identity has to be validated on verification, not on fidelity. Section 15 records which panels of the study are complete and which extensions remain.

Figure

Figure 1: What one kilobyte looks like. A single Color FERET capture (top left, lossless) and its reconstruction by every codec benchmarked in this report, each encoded to ≤\leq1024 bytes at the 112px verification working resolution. Tile captions give PSNR/SSIM and LPIPS on this crop, not cell medians. JPEG and JPEG 2000 visibly break down; the transform codecs hold structure but soften texture; the learned codecs keep the detail a matcher reads — Ours-ACCURATE reaches LPIPS 0.009, best in the row, while scoring lower on SSIM (0.939 vs 0.959): the perceptual-versus-distortion decoupling of Section 6. The crop is selected — the best-reconstructed of the 300-image subset the CompressAI baselines ran on, chosen so every column is populated. Across the full corpus Ours-ACCURATE trails JPEG-AI on SSIM (0.834 vs 0.920) and leads it on LPIPS (0.012 vs 0.060); the population figures are in Table 33.

Contents

1 Introduction 6
1.1 Motivation and use cases 6
1.2 Problem statement 7
1.3 Goals and scope 7
1.4 Contributions 8
1.5 Report roadmap 9

2 Background and Related Work 9
2.1 General-purpose image codecs 9
2.2 Learned image compression 10
2.3 Face-specific compression 11
2.4 Face-recognition models 12
2.5 Image-similarity and quality metrics 12
2.6 No-box adversarial attacks 13

3 Datasets 14
3.1 Color FERET 14
3.2 AI-Solutions-KK 15
3.3 Alignment and resolutions 16
3.4 Verification pairs 17
3.5 Demographic attributes 17

4 Evaluation Protocol 19
4.1 Face-recognition roster 20
4.2 Verification-accuracy metrics 21
4.3 Reconstruction-quality metrics 22
4.4 Operating points 22
4.5 Statistical methodology 23
4.6 Environment and per-codec settings 24

5 Benchmark of Existing Codecs 25
5.1 Rate-identity trade-off at the byte budget 25
5.2 Equal-error rate across the grid 26
5.3 Operating-point accuracy: FNMR at fixed FMR 29
5.4 Operating points at the 224 px source resolution 39
5.5 The sub-1 kB error floor 42
5.6 Per-matcher consistency 43
5.7 Budget compliance: can the codec even hit the target? 50
5.8 Headline ranking and discussion 54

6 Reconstruction Quality 54
6.1 Full-reference metric matrix 54
6.2 Distortion does not predict identity 55
6.3 Face image quality (FIQ) 57
6.4 Visual comparison 59
6.5 Budget and resolution sweeps 60
6.6 Codec properties and deployment characteristics 61
6.7 Encode and decode speed 62
6.8 Why is JPEG-AI so slow, and can it be sped up? 63

7 A Custom Identity-Preserving Codec 70
7.1 Architecture 70
7.2 Hard byte-budget container 70
7.3 Variable-rate gain and training 71
7.4 Identity side-stream and refine head 73
7.5 Results versus classical and JPEG-AI 75
7.6 Held-out independent-matcher evaluation 76
7.7 Known limitations 77
7.8 Worst-case identity tail 79

8 Trivial and Difficult Samples: What Makes a Face Hard to Compress 79

9 Ablations and Preprocessing 84
9.1 Resolution-information trade-off 84
9.2 Preprocessing, measured through the codec 85
9.3 Alignment tightness 87
9.4 JPEG-FzT radius 89

10 The ISO/IEC 29794-5 Annex E/F parameter tables 91
10.1 How the annex parameters were derived 91
10.2 Protocol 92
10.3 Experiment 1 — are the annex parameters better than ours? 92
10.4 Experiment 2 — is there a better set than either? 93
10.5 Does self-similarity predict verification error? 95
10.6 JPEG-AI 96
10.7 Recommendation to WG 3 97

11 Demographic Fairness 97
11.1 Subgroup equal-error rates 98
11.2 Skin-tone effects 100
11.3 Pose, age, and gender 101
11.4 Disparity summary 102
11.5 Fairness at the tighter 512-byte budget 105
11.6 Differential false-match rate (imposter acceptance) 106

12 Compressed-on-Compressed Recompression 110
12.1 Setup 110
12.2 Delta-EER results 111
12.3 Generalization to AI-Solutions-KK 113
12.4 Worst-case chains 114
12.5 Tighter 512-byte budget 115

13 Adversarial Robustness and Sanitization 116
13.1 Threat model 117
13.2 Attacks 117
13.3 Compression as a defense 118
13.4 Ours-as-defense 122
13.5 Generalization to AI-Solutions-KK 123

14 Statistical Significance 125
14.1 Method recap 125
14.2 Pairwise codec comparisons 125
14.3 Multiple-comparison correction 127
14.4 Significance on AI-Solutions-KK 128
14.5 Rank-based analysis across the matcher roster 130

15 Discussion, Limitations, and Roadmap 131
15.1 What we have established 132
15.2 Limitations and threats to validity 133
15.3 Current pipeline state 134
15.4 Remaining work 135

16 Conclusion 135

17 Artifacts 137

References (39)