Submitted:
22 August 2025
Posted:
22 August 2025
You are already at the latest version
Abstract

Keywords:
1. Introduction
- (1)
- Formulate MRD code construction as a constrained combinatorial optimisation problem over .
- (2)
- Design a finite-field PSO variant with rank-aware velocity clamping, adaptive penalties, and structured seeding from Gabidulin codes.
- (3)
- Provide a theoretical analysis of the PSO-guided search process in the MRD code context, including its adaptability to high-dimensional and nonlinear search spaces.
- (4)
- Release an open-source Python implementation to support reproducibility and to facilitate further exploration of MRD code existence in uncharted parameter regimes.
2. Related Work
2.1. Evolution and Recent Advances in Rank Metric and MRD Code Constructions
2.2. Heuristic, Learning-Based, and Automated Searches for MRD Codes
3. Algebraic Background
3.1. Rank Metric
3.2. Singleton Bound and Singleton-like Bound
3.3. Maximum Rank-Distance (MRD) Codes
3.4. Gabidulin Codes
3.5. Optimisation Viewpoint for MRD Construction
3.6. Remark on computational complexity
4. Theoretical Framework
4.1. Particle Swarm Optimisation
4.2. Problem Formulation
4.3. Objective Function
4.4. Search Space and Constraints
4.5. Representation and Initialisation
4.6. Theoretical Adaptability of PSO
- High-dimensional exploration: Generator matrices over can be large, making the search space exponential in . PSO’s population-based search can maintain coverage across many distant regions simultaneously.
- Nonlinear, discrete landscape: The rank-distance function is highly non-smooth and discrete. Probabilistic velocity updates allow PSO to traverse such landscapes without relying on gradient information.
- Convergence control: By adjusting w, , , and velocity clamping, the algorithm can trade exploration for exploitation, mitigating premature convergence to sub-optimal matrices.
- Global optimality considerations: While PSO does not guarantee global optima, the combination of structured seeding, adaptive penalties, and rank-based diversity control reduces the risk of stagnation in poor local optima.
4.7. Parameter Roles and Selection
- S: swarm size, typically scaled with problem dimension .
- : maximum iterations, influencing total search effort.
- w: inertia weight, controlling momentum. Larger w promotes exploration, while smaller w promotes convergence.
- : cognitive and social coefficients, balancing attraction to personal vs global bests.
- : velocity-rank clamp, limiting disruptive changes to generator matrices.
4.8. PSO Algorithm for MRD Code Construction
5. Proposed PSO-Guided Construction Method
5.1. Initialisation
- Fix a normal basis of .
- Fill a array with uniformly random elements.
- Map each m-tuple of -coefficients to a field element .
- If full -rank is not achieved, repeat.
5.2. Fitness Evaluation
- maximise ,
- then maximise the second-smallest rank (proxy for the second generalised rank weight),
- then minimise the Hamming weight of G to favour sparsity.
5.3. Velocity and Position Update
- Addition is over , component-wise.
- Random scalars , define per-entry probabilities of applying cognitive/social terms.
- Velocity rank is clamped to to avoid destructive changes.
5.4. Constraint Handling
- Penalty: subtract when , with increasing periodically to discourage persistent infeasibility.
- Repair: if , iteratively replace dependent rows with random full-rank rows.
5.5. Termination Criteria
- ,
- a particle attains and meets all secondary criteria,
- no global-best improvement for iterations, .
5.6. Algorithm Summary
| Algorithm 1:Finite-Field PSO for MRD Code Construction |
|
5.7. Implementation and Reproducibility
- Exact reproduction of finite-field PSO updates, rank clamping, and probabilistic velocity application.
- Configurable seeding, penalty scheduling, and repair.
- Parameter exposure for systematic study.
- Deterministic mode via random seed control for reproducibility.
5.8. Computational Complexity
5.8.0.1. Per-particle fitness evaluation.
- Forming in : .
- Unfolding via : in .
- Rank computation over : from (22).
5.8.0.2. Per-particle PSO update.
5.8.0.3. Repair and feasibility checks.
5.8.0.4. Total per-iteration cost.
5.8.0.5. Memory complexity.
5.8.0.6. Remarks.
- For moderate , is the main bottleneck.
- Low-rank velocity factorisation (26) can yield substantial speed-ups in large regimes.
6. Discussion
6.1. Advantages of the PSO Approach
- Scalability: Handles larger problem sizes by tuning swarm size N, inertia weight w, and evaluation frequency. Complexity analysis in Section 5.8 shows that low-rank velocity factorisation can substantially mitigate the rank-computation bottleneck.
- Adaptability: Can seamlessly incorporate domain knowledge, such as Gabidulin-based seeding, without constraining the search to a narrow solution family.
- Exploratory Capability: Maintains population diversity, balancing the discovery of new code structures with the refinement of promising candidates in the inherently non-convex MRD search landscape.
6.2. Limitations and Challenges
- Combinatorial Explosion: The search space scales exponentially with , making convergence more challenging as problem size increases.
- Fitness Evaluation Cost: Computing in (20) for all non-zero is expensive, with complexity analysis in Section 5.8 confirming that rank evaluation dominates runtime for most parameter sets.
- No Global-Optimality Guarantee: As with other metaheuristics, PSO yields high-quality solutions but cannot guarantee global optimality; algebraic verification remains essential.
- Initialisation Sensitivity: Poor diversity in the initial swarm can lead to premature convergence, underscoring the value of structured seeding.
6.3. Future Work
- Parallelisation: Use GPU and distributed architectures to accelerate velocity updates and rank evaluations, as suggested by the complexity model in Section 5.8.
- Applied Evaluation: Deploy discovered codes in network coding, distributed storage, or AI-driven MRD evaluation frameworks [27] to assess performance under realistic channel models.
- Quantum-Inspired Optimisation: Investigate PSO variants leveraging quantum principles for potential acceleration in discrete combinatorial search spaces.
7. Conclusion
Acknowledgments
References
- Delsarte, P. Bilinear forms over a finite field, with applications to coding theory. Journal of Combinatorial Theory, Series A 1978, 25, 226–241. [Google Scholar] [CrossRef]
- Gabidulin, E.M. Theory of codes with maximum rank distance. Problems of Information Transmission 1985, 21, 1–12. [Google Scholar]
- Gabidulin, E.M. Rank Codes; TUM.University Press: Technical University of Munich, Arcisstrasse 21, 80333 Munich, 2021. [Google Scholar] [CrossRef]
- Kshevetskiy, A.; Gabidulin, E. The new construction of rank codes. In Proceedings of the Proceedings. International Symposium on Information Theory, 2005, 2005. ISIT 2005; pp. 2105–2108. [Google Scholar] [CrossRef]
- Sheekey, J. A new family of linear maximum rank distance codes. Advances in Mathematics of Communications 2016, 10, 475–488. [Google Scholar] [CrossRef]
- Lunardon, G.; Trombetti, R.; Zhou, Y. Generalized twisted Gabidulin codes. Journal of Combinatorial Theory, Series A 2018, 159, 79–106. [Google Scholar] [CrossRef]
- Csajbók, B.; Marino, G.; Polverino, O.; Zullo, F. Maximum scattered linear sets and MRD-codes. Journal of Algebraic Combinatorics 2017, 46, 193–213. [Google Scholar] [CrossRef]
- Alfarano, G.N.; Neri, A.; Zullo, F. Maximum flag-rank distance codes. Journal of Combinatorial Theory, Series A 2024, 207, 105908. [Google Scholar] [CrossRef]
- Csajbók, B.; Marino, G.; Polverino, O.; Zhou, Y. MRD codes with maximum idealizers. Discrete Mathematics 2020, 343, 111985. [Google Scholar] [CrossRef]
- Cuéllar, M.; Gómez-Torrecillas, J.; Lobillo, F.; Navarro, G. Genetic algorithms with permutation-based representation for computing the distance of linear codes. Swarm and Evolutionary Computation 2021, 60, 100797. [Google Scholar] [CrossRef]
- Azouaoui, A.; Belkasmi, M. Efficient Dual Domain Decoding of Linear Block Codes Using Genetic Algorithms. Journal of Electrical and Computer Engineering 2012. [Google Scholar] [CrossRef]
- Choukroun, Y.; Wolf, L. Learning linear block error correction codes. In Proceedings of the Proceedings of the 41st International Conference on Machine Learning.
- Huang, L.; Zhang, H.; Li, R.; Ge, Y.; Wang, J. AI Coding: Learning to Construct Error Correction Codes. IEEE Transactions on Communications 2020, 68, 26–39. [Google Scholar] [CrossRef]
- Gao, Y.; Liu, H.; Wang, X.; Zhang, K. On an artificial neural network for inverse scattering problems. Journal of Computational Physics 2022, 448, 110771. [Google Scholar] [CrossRef]
- Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the Proceedings of ICNN’95-International Conference on Neural Networks. [CrossRef]
- van Zyl, J.P.; Engelbrecht, A.P. Set-Based Particle Swarm Optimisation: A Review. Mathematics 2023, 11, 2980. [Google Scholar] [CrossRef]
- Hamming, R.W. Error Detecting and Error Correcting Codes. The Bell System Technical Journal 1950, 29, 147–160. [Google Scholar] [CrossRef]
- Sheekey, J. connections. In Combinatorics and Finite Fields; Schmidt, K.U., Winterhof, A., Eds.; De Gruyter: Berlin, Boston, 2019; pp. 255–286. [Google Scholar] [CrossRef]
- Bartoli, D.; Giulietti, M.; Marino, G.; Polverino, O. Maximum Scattered Linear Sets and Complete Caps in Galois Spaces. Combinatorica 2018, 38, 255–278. [Google Scholar] [CrossRef]
- Bartoli, D.; Csajbók, B.; Montanucci, M. On a conjecture about maximum scattered subspaces of Fq6×Fq6. Linear Algebra and its Applications 2021, 631, 111–135. [Google Scholar] [CrossRef]
- Napp, D.; Pinto, R.; Santana, F.; Vela, C. On the construction of MRD convolutional codes. Linear and Multilinear Algebra 2024, 72, 2653–2673. [Google Scholar] [CrossRef]
- Shi, M.; Krotov, D.S.; Özbudak, F. Constructing MRD codes by switching. Journal of Combinatorial Designs 2024, 32, 219–237. [Google Scholar] [CrossRef]
- Chen, H. New Explicit Good Linear Sum-Rank-Metric Codes. IEEE Transactions on Information Theory 2023, 69, 6303–6313. [Google Scholar] [CrossRef]
- Martínez-Peñas, U. New constructions of MSRD codes. Computational and Applied Mathematics 2024, 43, 195. [Google Scholar] [CrossRef]
- Borello, M.; Zullo, F. Geometric dual and sum-rank minimal codes. Journal of Combinatorial Designs 2024, 32, 238–273. [Google Scholar] [CrossRef]
- Liu, X.; Zhang, J.; Wang, G. Constructions and List Decoding of Sum-Rank Metric Codes Based on Orthogonal Spaces over Finite Fields. arXiv:2507.16377, 2025. 27 pages, 1 table. https://arxiv.org/abs/2507.16377.
- Chen, J.; Xiong, J.; Wang, Y.; Xin, Q.; Zhou, H. Implementation of an AI-based MRD Evaluation and Prediction Model for Multiple Myeloma. Frontiers in Computing and Intelligent Systems 2024, 6, 127–131. [Google Scholar] [CrossRef]
- Clerc, M.; Kennedy, J. The particle swarm—explosion, stability, and convergence in a multidimensional complex space. IEEE Transactions on Evolutionary Computation 2002, 6, 58–73. [Google Scholar] [CrossRef]
- Trelea, I.C. The particle swarm optimization algorithm: convergence analysis and parameter selection. Information Processing Letters 2003, 85, 317–325. [Google Scholar] [CrossRef]
- Shi, Y.; Eberhart, R.C. Parameter selection in particle swarm optimization. In Proceedings of the Proceedings of the 7th International Conference on Evolutionary Programming VII. [CrossRef]
- Dehghani, B. PSO-Guided Construction of MRD Codes in Rank Metric, 2025. GitHub repository containing implementation and documentation. Available at https://github.com/behnamde/pso_mrd.
- Hostetter, M. Galois: A performant NumPy extension for Galois fields, 2020. GitHub repository containing implementation and documentation. Available at https://github.com/mhostetter/galois.
| Approach Type | Key Examples | Strengths | Limitations | Applicability to Unexplored Regimes |
|---|---|---|---|---|
| Algebraic constructions | Gabidulin [2]; Twisted Gabidulin [5]; Generalized Twisted Gabidulin [6]; Geometric/scattered subspace [7,19,20] | Exact MRD guarantee when applicable; solid theory | Limited to specific ; beyond known families can be intractable | Low: restricted by proven existence results |
| Other metaheuristics | Genetic algorithms [10,11] | Flexible search in discrete spaces; can add constraints | May need heavy tuning; convergence speed varies | Medium: adaptable yet can struggle in high dimensional rank-metric spaces |
| Learning-based / AI methods | Neural code design [12]; inverse problem ML [14] | Learns patterns from data; can generalize | Needs training data; no exact MRD guarantees in general | Medium: depends on data quality and diversity |
| Proposed PSO-guided approach | This work | No need for closed-form structure; rank-aware constraints; adaptive exploration and exploitation; seeding from known MRD codes | No formal global optimality proof; fitness evaluation cost | High: can target regimes without known algebraic constructions |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).