3 Dec 2026, Thu

Beyond Stepwise Transformation: MILP Model for Low-Area Implementations of Linear Layers

The team of researchers—comprising Pengju Zhao, Qun Liu, Jingwen Chen, Chenhao Jia, and Meiqin Wang from Shandong University, alongside Qingyuan Yu from the State Key Laboratory of Space Information System and Integrated Application—focuses on a critical challenge in modern lightweight cryptography. In resource-constrained environments such as Internet of Things devices, RFID tags, and embedded systems, hardware area consumption is a paramount concern. Low-area linear layers play an essential role in achieving the efficiency required for these applications.

Across various semiconductor gate libraries, multi-input XOR gates are widely recognized as effective tools for reducing the physical area occupied by linear circuits. However, identifying the optimal lower-area implementations utilizing XOR gates with different input sizes has historically presented a complex combinatorial challenge. Finding configurations that minimize hardware costs while preserving correct logical functionality requires navigating a vast design space.

Previously, researchers sought to address this complexity through heuristic approaches. Notably, at ToSC 2022, Liu et al. proposed a stepwise framework designed to construct lower-area implementations. Their method systematically built circuits utilizing n+1-input XOR gates derived from pre-existing implementations composed of n-input XOR gates. While this stepwise strategy offered a structured path toward optimization, the new research from the Shandong University team points out a fundamental limitation inherent in the approach.

According to the authors of Paper 2026/3077, restricting the design process to a strictly stepwise transformation can constrain the overall search space. By building exclusively upon prior iterations of n-input circuits, the heuristic method may inadvertently bypass deeper, more globally optimal circuit topologies that do not conform to the sequential stepwise progression. Consequently, certain lower-area implementations remain undiscovered under the constraints of previous frameworks.

To overcome these boundaries, the research team developed a comprehensive mixed-integer linear programming, or MILP, model. Unlike the preceding stepwise methodologies, the newly proposed model begins its evaluation from a baseline XOR2 circuit. It then systematically searches for lower-area implementations incorporating two-, three-, and four-input XOR gates simultaneously within a pre-defined candidate space.

The MILP model functions by jointly selecting candidate coefficient vectors and admissible XOR implementations. This coordinated selection process ensures the formation of a valid acyclic circuit that strictly preserves the required mathematical outputs while minimizing the total physical area according to specified gate costs. By treating the selection of multi-input gates as a unified optimization problem rather than a segmented sequence, the model can explore more diverse structural configurations.

To demonstrate the efficacy of their new model, the researchers conducted extensive evaluations comparing its performance against prior methodologies. They first re-evaluated the benchmark implementations previously reported by Liu et al., applying the MILP-based model to representative linear layers. The results yielded lower-area implementations for the vast majority of these tested layers, demonstrating an immediate advantage over the earlier stepwise framework.

A prominent benchmark in symmetric-key cryptography is the Advanced Encryption Standard, or AES, specifically its MixColumns operation. When applied to the AES MixColumns transformation using the STM 130 nm standard cell library, the new MILP model successfully generated an implementation requiring merely 236.99 gate equivalents, commonly referred to as GE. This figure marks an improvement over the previous best result of 243 gate equivalents achieved by earlier methods, illustrating the practical hardware savings enabled by the holistic optimization approach.

Beyond standard benchmarks, the research team tested their MILP model on a much larger and more complex dataset comprising over 5,000 thirty-two by thirty-two maximum distance separable matrices. These matrices, originally proposed by Li et al. at ToSC 2019, serve as rigorous test cases for linear layer optimization in cryptographic designs.

When applied to this extensive collection of maximum distance separable matrices, the MILP-based model achieved substantial area reductions. On average, the model decreased the required hardware area by up to approximately 28 percent compared to the initial baseline XOR2 circuits. Furthermore, it achieved an additional average area reduction of about 8 percent when compared against previous stepwise multi-input XOR implementations.

These comparative evaluations underscore the core finding of the research: that jointly optimizing two-, three-, and four-input XOR gates within a unified search space provides a significantly more powerful strategy than stepwise transformation. By allowing the optimization algorithm to freely mix different input-size XOR gates based on global cost functions rather than localized transitions, designers can squeeze additional efficiency out of cryptographic hardware components.

The introduction of this MILP-based model provides cryptographers and hardware engineers with an advanced automated tool for lightweight cryptographic design. As demand continues to grow for secure, low-power hardware capable of operating efficiently under strict resource limitations, optimization techniques of this nature offer valuable pathways for reducing silicon area without compromising cryptographic security.

Leave a Reply

Your email address will not be published. Required fields are marked *