journal article·2025-02-14Open access

Optimizing Lattice Basis Reduction Algorithm on ARM V8 Processors

Ronghui Cao, Julong Wang, Liming Zheng, Jincheng Zhou, Haodong Wang, Tiaojie Xiao, Chunye Gong

Applied Sciences· Volume 15· Issue 4

Abstract

The LLL (Lenstra–Lenstra–Lovász) algorithm is an important method for lattice basis reduction and has broad applications in computer algebra, cryptography, number theory, and combinatorial optimization. However, current LLL algorithms face challenges such as inadequate adaptation to domestic supercomputers and low efficiency. To enhance the efficiency of the LLL algorithm in practical applications, this research focuses on parallel optimization of the LLL_FP (LLL double-precision floating-point type) algorithm from the NTL library on the domestic Tianhe supercomputer using the Phytium ARM V8 processor. The optimization begins with the vectorization of the Gram–Schmidt coefficient calculation and row transformation using the SIMD instruction set of the Phytium chip, which significantly improve computational efficiency. Further assembly-level optimization fully utilizes the low-level instructions of the Phytium processor, and this increases execution speed. In terms of memory access, data prefetch techniques were then employed to load necessary data in advance before computation. This will reduce cache misses and accelerate data processing. To further enhance performance, loop unrolling was applied to the core loop, which allows more operations per loop iteration. Experimental results show that the optimized LLL_FP algorithm achieves up to a 42% performance improvement, with a minimum improvement of 34% and an average improvement of 38% in single-core efficiency compared to the serial LLL_FP algorithm. This study provides a more efficient solution for large-scale lattice basis reduction and demonstrates the potential of the LLL algorithm in ARM V8 high-performance computing environments.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Embedded Systems Design Techniques · Parallel Computing and Optimization Techniques · Advanced Algorithms and Applications

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Computer and Communication Engineering, Changsha University of Science and Technology, Changsha 410073, China

College of Electronic Science, National University of Defense Technology, Changsha 410073, China

College of Computing, National University of Defense Technology, Changsha 410073, China

National Supercomputer Center in Tianjin, Tianjin 300457, China

Funding

National Natural Science Foundation of Key Program and the National Natural Science Foundation of Youth Program

References (25)

Show source-provided references
1. Factoring polynomials with rational coefficients
2. Ajtai, M. (1996, January 22–24). Generating hard instances of lattice problems. Proceedings of the Twenty-Eighth Annual ACM Symposium on Theory of Computing, Philadelphia, PA, USA.10.1145/237814.237838 ↗
3. Albrecht, M.R., Ducas, L., Herold, G., Kirshanova, E., Postlethwaite, E.W., and Stevens, M. (2019). The general sieve kernel and new records in lattice reduction. Annual International Conference on the Theory and Applications of Cryptographic Techniques, Springer International Publishing.10.1007/978-3-030-17656-3_25 ↗
4. Small solutions to polynomial equations, and low exponent RSA vulnerabilities10.1007/s001459900030 ↗
5. Cheng, Y., Diakonikolas, I., Ge, R., and Woodruff, D.P. (2019, January 25–28). Faster algorithms for high-dimensional robust covariance estimation. Proceedings of the Conference on Learning Theory, PMLR, Phoenix, AZ, USA.
6. Eisenträger, K., Hallgren, S., Kitaev, A., and Song, F. (2014, January 1–3). A quantum algorithm for computing the unit group of an arbitrary degree number field. Proceedings of the Forty-Sixth Annual ACM Symposium on Theory of Computing, New York, NY, USA.10.1145/2591796.2591860 ↗
7. On the sphere-decoding algorithm I. Expected complexity10.1109/TSP.2005.850352 ↗
8. Chockalingam, A., and Rajan, B.S. (2014). Large MIMO Systems, Cambridge University Press.10.1017/CBO9781139208437 ↗
9. The generalized basis reduction algorithm10.1287/moor.17.3.751 ↗
10. Geometric rescaling algorithms for submodular function minimization10.1287/moor.2020.1064 ↗
11. Lattice basis reduction: Improved practical algorithms and solving subset sum problems10.1007/BF01581144 ↗
12. Boosted KZ and LLL algorithms10.1109/TSP.2017.2708020 ↗
13. Aono, Y., Wang, Y., Hayashi, T., and Takagi, T. (2016, January 8–12). Improved progressive BKZ algorithms and their precise cost estimation by sharp simulator. Proceedings of the Advances in Cryptology-EUROCRYPT 2016: 35th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Vienna, Austria. Proceedings, Part I 35.10.1007/978-3-662-49890-3_30 ↗
14. Neumaier, A., and Stehlé, D. (2016, January 19–22). Faster LLL-type reduction of lattice bases. Proceedings of the ACM on International Symposium on Symbolic and Algebraic Computation, Waterloo, ON, Canada.10.1145/2930889.2930917 ↗
15. Luo, Y., and Qiao, S. (2011, January 16–18). A parallel LLL algorithm. Proceedings of the Fourth International C* Conference on Computer Science and Software Engineering, Montreal, QC, Canada.10.1145/1992896.1992908 ↗
16. A Parallel Jacobi-Type Lattice Basis Reduction Algorithm
17. Tian, Z., and Qiao, S. (2013, January 6–10). An enhanced Jacobi method for lattice-reduction-aided MIMO detection. Proceedings of the 2013 IEEE China Summit and International Conference on Signal and Information Processing, Beijing, China.10.1109/ChinaSIP.2013.6625293 ↗
18. Efficient greedy LLL algorithms for lattice decoding10.1109/TWC.2016.2523513 ↗
19. Performance evaluation analysis and empirical research of parallel computing software for heterogeneous systems
20. Efficient Parallel Implementation of Matrix Multiplication for Lattice-Based Cryptography on Modern ARM Processor10.1155/2018/7012056 ↗
21. Effective implementation of matrix-vector multiplication on Intel’s AVX multicore processor. Computer Languages
22. TensorCrypto: High throughput acceleration of lattice-based cryptography using tensor core on GPU10.1109/ACCESS.2022.3152217 ↗
23. Research on cycle optimization technology for SIMD vectorization
24. The accuracy of floating point summation10.1137/0914050 ↗
25. Gong, C., Chen, X., Lv, S., Liu, J., Yang, B., Wang, Q., Bao, W., Pang, Y., and Sun, Y. (2021, January 18–22). An efficient image to column algorithm for convolutional neural networks. Proceedings of the 2021 International Joint Conference on Neural Networks (IJCNN), Shenzhen, China.10.1109/IJCNN52387.2021.9533579 ↗