← Lab /AI/ML

SAMSEM segments IC metal lines with error as low as 0.62% across diverse chips

SAMSEM can generalize metal line segmentation across different ICs with error rates below 6%

AI/ML arXiv 17 Mar 2026 Method Prototype evidence

Published as “SAMSEM -- A Generic and Scalable Approach for IC Metal Line Segmentation”

Why it matters

The low error rates enable more reliable automated netlist extraction, reducing manual effort in hardware assurance workflows.

Summary

SAMSEM reduces metal-line segmentation errors dramatically, achieving an in-distribution ESD error rate of 0.72 % (vs 4.44 % for the best prior method) and an out-of-distribution error rate of 5.53 % (vs 24.77 %). The evidence is based on a 14-IC SEM dataset with thousands of metal lines and comparisons to SAMIC, U-Net, DeepLabV3 and FCN. The paper reports additional limitations such as ground-truth uncertainty and long training times, so the claim is strong but not without caveats.

What they found 2

  1. In-distribution ESD error rate of 0.72 % versus 4.44 % for the best reproduced prior approach

    “We achieve an in-distribution error rate of 0.72 % when fine-tuning and evaluating on seven different ICs, compared to 4.44 % for the best-known approach that we could reproduce.”

  2. Final model trained on all 14 ICs attains 0.62 % ESD error rate

    “This final model achieves an in-distribution error rate of just 0.62 %.”

Caveats 6

  • Using the Betti matching loss increases the number of open circuits while reducing shorts and false positives.
  • Combining the two multi-scale models into a single model slightly degrades out-of-distribution performance (error rate rises by ~0.5 %).
  • Training runtime can span up to five days, limiting extensive hyperparameter exploration.
  • Ground truth is manually annotated; in rare cases annotators could not decide if metal lines were connected.
  • Training runtime up to five days prevented more exhaustive experiments and hyperparameter sweeps.
  • Dataset for 13 of the 14 ICs cannot be released due to legal restrictions.

What’s new here 4

  • Adapts the SAM2 foundation model to IC metal-line segmentation with a multi-scale pipeline.
  • Introduces a topology-based Betti-matching loss to prioritize electrical connectivity over pixel accuracy.
  • Demonstrates strong out-of-distribution generalization to unseen ICs without retraining.
  • Publishes a fine-tuned model and scripts for the community.