HybMT: Hybrid Meta-Predictor based ML Algorithm for Fast Test Vector Generation

Shruti Pandey, Jayadeva, Smruti R. Sarangi

TL;DR

This paper introduces HybMT, a novel hybrid meta-predictor ML algorithm that significantly accelerates test vector generation for VLSI circuits. By intelligently combining multiple prediction models, HybMT achieves substantial speedups over commercial tools and existing ML approaches without compromising fault coverage, making it a promising step towards more efficient hardware testing.

What Problem Does This Paper Address?

Testing Very Large Scale Integration (VLSI) circuits for "stuck-at faults" is a critical but computationally expensive process. These faults occur when a circuit line is permanently stuck at either a logic '0' or '1'. The goal of Automatic Test Pattern Generation (ATPG) is to find input patterns that can detect these faults. This problem is known to be NP-Hard, meaning that finding optimal solutions becomes exponentially harder as circuit size increases. While traditional ATPG algorithms like PODEM have been around for decades, their efficiency is challenged by the ever-growing complexity of modern circuits. Recent research has explored using Machine Learning (ML) to speed up this process, but these ML-based methods have largely been confined to older benchmark circuits and haven't consistently outperformed commercial ATPG tools in terms of speed and accuracy. This paper aims to bridge this gap by developing an ML-driven ATPG algorithm that can handle large, modern circuits and compete with, or even surpass, commercial solutions.

Methods

The core of HybMT is a two-level prediction system built upon an optimized version of the PODEM algorithm. PODEM uses a recursive backtracking strategy to find test vectors. HybMT augments this by introducing a custom 2-level predictor that helps decide which input net of a logic gate needs to be set to a specific value to achieve a desired output.

The first level consists of two "lower-level" predictors:

  • A bespoke neural network (HybNN): This is a novel fully connected feed-forward neural network with a skip connection, designed to learn complex relationships between circuit features and the probability of avoiding backtracking.
  • A Support Vector Regressor (SVR): A well-established machine learning model for regression tasks.

The second level is the HybMT meta-predictor itself. This is a Random Forest Classifier (RFC) that learns to select the best performing lower-level predictor (HybNN or SVR) for each specific circuit net at runtime. This meta-predictor uses a set of input features derived from the circuit structure and testability measures.

Key input features used by the predictors include:

  • Controllability/Observability Program (COP) values: Probabilities of setting or observing a net's value.
  • Sandia Controllability/Observability Analysis Program (SCOAP) values: Measures of the difficulty in controlling or observing a net.
  • Distance from the Primary Input (PI): How far a net is from the circuit's inputs.
  • Gate Type: The type of logic gate the net is connected to.
  • Fanout: The number of logic gate inputs driven by a net.

The ground truth for training these models is generated by running PODEM and recording the probability of avoiding backtracking for each net.

Datasets

The paper uses two main sets of benchmark circuits:

  • ISCAS'85 benchmark circuits: These are older, well-established circuits used for training and initial experiments.
  • EPFL benchmark circuits: These are newer, significantly larger (up to 70x larger than ISCAS) arithmetic circuits used for evaluating the performance of HybMT against commercial tools and the baseline ML algorithm.

Key Insights and Ideas

  • The power of meta-prediction: The most significant insight is that no single ML model consistently outperforms others across all circuit types. A meta-predictor that intelligently chooses the best model for a given situation (like HybMT) can achieve superior performance.
  • SCOAP one controllability is king: Feature importance analysis reveals that SCOAP one controllability is the most critical feature for guiding decision-making in the meta-predictor. This highlights the importance of understanding how easily a net can be set to logic '1' for effective test generation.
  • Global circuit view matters: Generating ground truth labels at the circuit level, rather than just for individual faults, leads to better results. This suggests that understanding the overall circuit structure is crucial for effective ML-based ATPG.
  • Skip connections combat vanishing gradients: The inclusion of skip connections in the HybNN architecture is crucial for enabling deeper networks and preventing the vanishing gradient problem, leading to better learning.

Key Results

  • Speedup over commercial tool: HybMT achieves a 56.6% speedup over a commercial ATPG tool on the EPFL benchmark circuits, while maintaining comparable fault coverage.
  • Speedup over state-of-the-art ML: HybMT demonstrates a 126.4% speedup over the best existing ML-based algorithm (reference [1]) on the EPFL benchmarks, with equal or better fault coverage.
  • Performance on ISCAS'85: HybMT reduces the CPU time of PODEM by 26.8% over the baseline for the ISCAS'85 benchmark circuits.
  • HybNN's effectiveness: The proposed HybNN model alone shows a 20.4% reduction in CPU time compared to the baseline.
  • High accuracy of meta-predictor: The HybMT meta-predictor achieves an average 99% 5-fold cross-validation accuracy for selecting the best lower-level predictor.
  • Reduced backtraces/backtracks: HybMT significantly reduces the number of backtraces and backtracks compared to the baseline, directly contributing to the speedup.

Limitations and Future Work

  • Current benchmark limitations: The authors acknowledge that current ML-based methods, including their own, are still primarily evaluated on older ISCAS'85 benchmarks. They aim to extend their work to handle even larger circuits and those with sequential elements.
  • Increasing expressive power: The authors plan to increase the expressive power of their models by raising the test size to train size ratio (from 70x to 100x) and explore larger circuits with sequential elements.
  • Global circuit view for better heuristics: The paper concludes that a global circuit-level view is essential for learning better backtracing heuristics, suggesting that properly designed neural networks are key. Future work will likely focus on further enhancing these global learning capabilities.

Summary updated

BibTeX
@inproceedings{pandey2024hybmt,
  author = {Shruti Pandey and Jayadeva and Smruti R. Sarangi},
  title = {{HybMT: Hybrid Meta-Predictor based ML Algorithm for Fast Test Vector Generation}},
  booktitle = {ASPDAC},
  year = {2024},
  doi = {10.1109/asp-dac58780.2024.10473922},
}
Figure