HVX-optimized HQC decoding cuts energy consumption by up to 18.13×
Vectorized HQC decoding on Hexagon NPU reduces latency and improves energy efficiency up to 18.13×
Systems arXiv 1 Jun 2026 Method Prototype evidence
Published as “Implementation and Optimization of HQC Decoding on NPU-Integrated Devices”
Why it matters
Mobile NPU-integrated platforms can now decode HQC KEMs with dramatically lower energy and CPU load, making post-quantum key exchange more practical on smartphones and edge devices.
Summary
The optimized HQC decoder on Qualcomm Hexagon/HVX cuts the full HQC-128 decoding cost from 953,763 to 41,471 Pcycles per decode, a 23.00× speedup in simulation, and on a Snapdragon 8 Gen 2 device the batched backend speeds up end-to-end latency by 2.07× (HQC-128) while improving energy efficiency by up to 18.13× and offloading 99.1%-99.7% of host-CPU work. The authors redesigned Reed-Muller and Reed-Solomon kernels for HVX-friendly data layouts, achieving large cycle reductions in the Hadamard transform, peak selection, syndrome computation and error-locator stages. Evidence comes from paired simulator measurements and real-device latency/energy experiments, though the real-device gains are limited by FastRPC overhead and apply only to the decoding stage, not full decapsulation.
What they found 2
- Simulator shows 23.00× speedup for HQC-128 decoding.
“the optimized implementation reduces the full decoding cost from 953,763 to 41,471 Pcycles per decode, corresponding to a 23.00× speedup”
- Host-CPU time per decode is reduced by 99.1%-99.7%.
“it reduces host-side CPU time per decode by 99.1%-99.7%”
Caveats 5
- the real-device NPU numbers should be interpreted as batched cDSP throughput with heavily amortized FastRPC overhead, not as the latency of an API that performs one remote call per decapsulation.
- the speedups reported in this paper are for the decoding stage in isolation, not for end-to-end decapsulation.
- Our optimizations target the concatenated decoding stage of HQC; combining them with an accelerated sparse polynomial product for the full decapsulation path is a natural next step on the same backend.
- Future work, we plan to investigate fully constant-time finite-field arithmetic for all scalar and vector operations, strengthen the side-channel resilience of the backend, integrate a worker-pool cDSP schedule to further amortize host coordination, and extend the same hardware-aware optimization methodology to other code-based and post-quantum cryptographic primitives.
- a single FastRPC boundary crossing (531-553 μs) dominates one isolated decode
What’s new here 4
- First implementation of HQC decoding that targets the Hexagon/HVX vector engine rather than scalar CPUs or FPGA/ASIC designs.
- Redesign of Reed-Muller Hadamard transform and peak-selection to preserve scalar tie-breaking while running fully vectorized.
- Vectorized finite-field arithmetic and shortened-support Chien search for the Reed-Solomon stage on an NPU.
- Demonstrated >18× energy-efficiency improvement and >99% host-CPU offload on a commercial mobile SoC.