Reinforcement Learning for Hardware Trojan Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional methods for detecting hardware Trojans in System-on-Chip (SoC) designs are inefficient due to high computation complexity and low detection accuracy, particularly in large designs with rare trigger conditions, making it difficult to ensure trustworthy computing.

Innovation Solution

A novel logic testing framework using reinforcement learning that combines controllability and observability analysis with stochastic reinforcement learning to improve trigger coverage and reduce test generation time, leveraging the Sandia Controllability/Observability Analysis Program (SCOAP) measurements and dynamic simulation to generate effective test patterns.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional simulation-based validation using millions of test vectors is used, then detection coverage is improved, but computation complexity increases exponentially

Engineering Contradiction:
Improvedetection coverageVSAvoidcomputation complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent replaces traditional simulation-based validation (mechanical exhaustive testing) with reinforcement learning-based test generation (intelligent adaptive testing). The RL agent learns optimal test patterns by interacting with the circuit model, substituting brute-force simulation with intelligent search that achieves high detection coverage without exponential computation complexity.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The reinforcement learning agent performs self-learning and self-optimization to generate effective test patterns. The agent autonomously explores the input space, learns from observations of circuit responses, and adapts its strategy to maximize Trojan detection coverage, eliminating the need for external manual test case generation.

Inventive Principle:
Principle #25Self-service

2Adaptability or versatility

If traditional test generation approaches are used, then scalability is improved, but detection accuracy deteriorates

Engineering Contradiction:
ImprovescalabilityVSAvoiddetection accuracy
Core Design Contradiction:
Adaptability or versatilityVSMeasurement precision

Solution Approach 1:

The patent changes the fundamental parameters of test generation by using reinforcement learning algorithms that can adapt to different circuit complexities. The RL framework adjusts its exploration and exploitation strategies based on the specific circuit under test, maintaining high detection accuracy across various SoC sizes and complexities without requiring manual parameter tuning.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The reinforcement learning approach incorporates feedback loops where the agent observes circuit responses to test patterns and uses this information to update its policy. This feedback mechanism enables the system to learn from previous attempts and improve detection accuracy iteratively, adapting to the specific characteristics of each circuit design.

Inventive Principle:
Principle #23Feedback

3Measurement precision

If more test vectors are generated to improve detection accuracy, then trigger coverage is improved, but test generation time increases

Engineering Contradiction:
Improvetrigger coverageVSAvoidtest generation time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent introduces dynamic test generation where the reinforcement learning agent adapts its testing strategy in real-time based on observed circuit behavior. The agent dynamically adjusts its search focus toward regions of input space that are more likely to trigger Trojans, rather than uniformly distributing test vectors, thereby achieving high trigger coverage more efficiently.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The reinforcement learning agent performs preliminary exploration to identify promising test patterns before finalizing the complete test set. By pre-learning which input regions are most suspicious based on circuit analysis and previous observations, the system can prioritize test generation efforts and reduce overall test generation time while maintaining high detection accuracy.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12079334B2Hardware trojan detection using reinforcement learning
Publication Date: 2024.09.03 UNIV OF FLORIDA RESEARCH FOUNDATION INC
  • US12079334B2 patent drawing
  • US12079334B2 patent drawing
  • US12079334B2 patent drawing

AI summary

The present disclosure provides systems and methods for test pattern generation to detect a hardware Trojan. One such method includes determining, by a computing device, a set of initial test patterns to activate the hardware Trojan within an integrated circuit design; evaluating nodes of the integrated circuit design and assigning a rareness attribute value and a testability attribute value associated with respective nodes of the integrated circuit design; and generating a set of additional test patterns to activate the hardware Trojan within the integrated circuit design using a reinforcement learning model. The set of initial test patterns is applied as an input along with rareness attribute values and testability attribute values associated with the nodes of the integrated circuit, and the reinforcement learning model is trained with a stochastic learning scheme to identify optimal test patterns for triggering nodes of the integrated circuit design.