Introduction
In the domain of Integrated Circuit (IC) design, Logic Locking (LL) has emerged as a vital defense mechanism to protect intellectual property from unauthorized reverse engineering and piracy. By inserting key-dependent logic into a circuit, designers ensure that the hardware functions correctly only when the precise activation key is provided. Despite its importance, the field faces a significant hurdle: a pervasive reproducibility crisis.
As illustrated in the data above, less than 10% of state-of-the-art logic locking research papers published over the last five years have released their source code. This "semantic gap" between high-level technical descriptions and functional hardware code forces researchers to spend months manually reconstructing complex obfuscation schemes, often leading to errors or inconsistent implementations. LockForge is introduced as the first multi-agent Large Language Model (LLM) framework designed to bridge this gap by automatically converting research PDFs into verified, executable code.
Methodology: The LockForge Pipeline
LockForge treats the translation of research papers to code not as a simple generation task, but as a multi-stage reasoning process. The framework utilizes a four-stage pipeline to ensure high fidelity and functional correctness:
- Forethought: The process begins with an LLM "Coder" ingesting the target PDF. The agent extracts a structured plan, identifying the core hardware concepts and the intended logic locking behavior.
- Implementation: The Coder generates initial Python code and performs "smoke tests" on small-scale circuit benchmarks to verify basic executability and syntax.
- Refinement Loop: This stage involves "content mining," where the agent generates a detailed BCSRP checklist (Behavioral, Conceptual, Structural, Reproducibility, and Penalty) based on the paper's text. The agent then iteratively patches the code until it satisfies these self-derived criteria.
- Validation: To eliminate self-grading bias, LockForge employs Role Isolation. Two independent LLMs—the "Judge" and the "Examiner"—evaluate the output. The Judge scores the code against the BCSRP checklist, while the Examiner poses reference-grounded True/False questions to ensure the implementation accurately reflects the paper's specific logic rather than producing a generic hallucination.
Evaluation and Key Results
The framework was evaluated using 10 seminal logic locking papers, covering a wide range of techniques including SAT-hard schemes (CAS-Lock), FSM-gated schemes (Harpoon), and point-function schemes (SFLL-HD). These were tested against standard circuit benchmarks such as ISCAS-85, ITC-99, and MCNC.
Key findings from the study include:
- Reasoning-Centric Success: The authors observed that standard coding LLMs often fail at hardware-specific tasks. Success requires "reasoning" models, such as the latest ChatGPT-5 (Thinking) or Gemini-2.5 Pro, which can bridge abstract concepts with concrete netlist manipulations.
- High Fidelity and Parity: LockForge significantly outperformed existing commercial and academic paper-to-code platforms. For schemes where reference code was available, the LockForge-generated code achieved parity in functional correctness and similarity scores.
- The Necessity of Content Mining: Ablation studies confirmed that without the BCSRP checklist refinement stage, LLMs frequently produced code that was syntactically correct but missed critical security mechanisms described in the source text.
Conclusion and Future Work
LockForge represents a major step toward solving the reproducibility crisis in hardware security. By automating the reconstruction of logic locking schemes, it provides a standardized foundation for future research. While the current framework excels at functional reproduction, future work will focus on integrating automated security validation—such as SAT or removal attacks—to verify if the generated code provides the security resilience claimed by the original authors. The team has released all 10 implementations and benchmarks to the research community to foster open and verifiable hardware security research.
Summary updated