AMAM-128: A Segmentation Benchmark for Annotated Metallic Alloy Microstructures

Inbal Cohen, Idan Zvi Friedberg, Yael Templeman, Ofer Beeri, Julien Robitaille, Francis Quintal Lauzon, Shai Avidan, Gal OrenAI4Mat @ NeurIPS 2026

TL;DR

Teaching AI to segment microscopic structures in metals—like steel and cast iron—is usually tested on narrow, overly clean datasets, making it hard to tell if a model truly understands microstructures or is just tuned to one specific lab setup. AMAM-128 is a new, compact "stress benchmark" of 128 expert-refined micrograph–mask pairs spanning multiple alloys, magnifications, and real-world imaging flaws. Evaluating 45 different segmentation methods reveals that no approach comes close to mastering it, and performance swings wildly depending on the material and imaging regime.

What Problem Does This Paper Address?

Automated microstructure segmentation is a cornerstone of quantitative metallography and AI-driven materials discovery. If you want to predict how a metal will behave, you first need to map out its internal phases—things like ferrite, pearlite, dendrites, or graphite flakes.

The catch? Real-world metallography is messy. Changing the alloy family, heat treatment, magnification, or even how a sample was etched completely changes what the image looks like. On top of that, real micrographs come with scratches, pores, stains, reflective glare, and mounting edges. Existing benchmarks often flatten these shifts into a single pooled dataset or lack strict one-to-one image–mask pairing. Even powerful general-purpose foundation models (like Meta's Segment Anything Model, or SAM) struggle with texture-heavy metal boundaries and surface artifacts.

Methods

Rather than proposing a new neural network, the authors built a controlled comparison benchmark and tested 45 existing segmentation approaches across three protocol tracks (grouped into four reporting categories):

  1. Classical vision (10 methods): Including Random Forests (RF), Support Vector Machines (SVM), watershed, and clustering.
  2. Supervised deep learning (29 methods): Split into general-purpose architectures (14, e.g., U-Net) and metallography-oriented models (15, e.g., Metal-MAnet).
  3. Foundation and edge-based models (6 methods): Including prompt-free SAM ViT-Base.

To create the ground-truth masks, domain experts used an iterative, model-assisted workflow: providing representative micrographs, adding sparse click-level labels, running dense AI segmentation, and manually reviewing and correcting the outputs until accepted.

Figure 1: AMAM annotation and refinement workflow. From left to right, domain experts provide representative micrographs, create sparse click-level supervision, run model-assisted dense segmenta- tion1, and iteratively review and correct predictions. Accepted masks are then frozen into the paired benchmark release.

A few key rules keep the evaluation honest:

  • Subset-macro averaging: Every subset counts equally, preventing larger subsets from drowning out smaller ones.
  • Subset-native labels: Phase taxonomies aren't forced into an invalid global merge; each subset keeps its own valid class set.
  • Protocol-specific scoring: RF/SVM and deep models are fit and evaluated on all 128 pairs (measuring in-corpus fit, not out-of-distribution transfer), with deep models run across 5 random seeds (17–21). Classical (non-RF/SVM) and foundation/edge models use per-image Hungarian label alignment, while deep models do not—meaning cross-track numbers are descriptive rather than a single like-for-like leaderboard.

Datasets

The paper introduces AMAM-128, a curated corpus of 128 expert-refined image–mask pairs with no unpaired samples. It spans:

  • 2 material families (steel and cast iron) and 4 process conditions.
  • 6 subsets across four nominal magnifications (x5 to x50): 4130 steel (x10/x20), 5884 armor steel (x5/x10/x20/x50), 418 printed 17-4 PH (x5 and x20), and 6280 gray cast iron (x10 and x20).
  • 13 local class slots covering 9 distinct phase names, including ferrite/pearlite, dendrite/interdendritic structures, graphite flakes, and printed-alloy grain patterns.
  • Real-world imperfections: Scratches, pores, inconsistent etching, stains, and micro-hardness indentations.
Figure 2: Representative AMAM-128 image–mask pairs from four distinct regimes. Top row: 4130 steel (x10/x20 family) and 6280 cast iron x10 (original/mask pairs). Bottom row: 5884 armor steel (x5/x10/x20/x50 family) and printed 17-4 PH x5 (original/mask pairs). The diversity in texture scale, boundary sharpness, and phase morphology illustrates why regime-aware benchmarking is necessary.

Key Insights and Ideas

  • Nobody saturates the benchmark: Even when supervised models are fit directly on the 128 pairs, every single model family leaves massive room for improvement.
  • Regime sensitivity is huge: Across the four group leaders, the gap between a model's best and worst subset ranges from 0.348 to 0.549 mIoU. Models remain tightly tethered to local texture scales and imaging conditions.
  • Fine-grained deep rankings are mostly noise: Among supervised deep models, the median run-to-run standard deviation across 5 seeds is 0.0260 mIoU, whereas the median gap between adjacent models' 5-run means is just 0.00346 mIoU—a 7.5x ratio. In other words, random seed luck outweighs the difference between neighboring architectures.
  • Predictable failure zones: Models consistently trip up on ambiguous ferrite/pearlite and dendrite boundaries, sparse artifacts (pores/scratches), and reflective high-contrast regions.

Key Results

Because label handling differs across tracks, the authors report group-local leaders (in Subset-Macro mIoU) rather than crowning a single global winner:

  • Classical: 0.607 mIoU (Random Forest)
  • Deep-General: 0.573 ± 0.023 mIoU (U-Net with EfficientNet-B0)
  • Deep-Metallography: 0.578 ± 0.006 mIoU (Metal-MAnet RGB+Sobel with EfficientNet-B0)
  • Foundation/Edge: 0.417 mIoU (SAM ViT-Base, prompt-free)
Figure 3: Reporting-group score distributions over all 45 tested methods (10 classical, 14 deep- general, 15 deep-metallography, 6 foundation/edge). Deep points are five-run means over seeds 17–21; classical and foundation/edge points are seed-17 estimates. Left: the score distribution of each reporting group. Right: four independent within-group orderings, one per reporting group, each plotted against within-group position with its group-local leading value marked and a dashed within-group reference at complete overlap (1.0). Because label handling differs across protocol tracks (Appendix J), the four facets are not a single like-for-like leaderboard and no global best method is identified; positions are comparable only within a facet. Full per-method metrics and deep run-to-run spread are reported in Table 1.

Limitations and Future Work

  • Compact and in-corpus: With 128 total pairs (and subsets as small as $n = 10$), AMAM-128 is a diagnostic stress test, not a large training corpus or an out-of-distribution (OOD) benchmark.
  • Missing OOD and uncertainty checks: The current release does not include held-out OOD splits, inter-annotator agreement scores, or per-subset confusion matrices, and five-run variability is only measured for deep models.
  • Imperfect ground truth: Even expert-refined masks retain documented local annotation uncertainty in a few difficult regions.

For future work, the authors recommend adding explicit cross-material and magnification-shift OOD transfer tracks, running multi-seed evaluations for all stochastic pipelines, and conducting independent annotation audits.

Summary updated

BibTeX
@inproceedings{cohen2026amam,
  author = {Inbal Cohen and Idan Zvi Friedberg and Yael Templeman and Ofer Beeri and Julien Robitaille and Francis Quintal Lauzon and Shai Avidan and Gal Oren},
  title = {{AMAM-128: A Segmentation Benchmark for Annotated Metallic Alloy Microstructures}},
  booktitle = {AI4Mat @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=PR7odPliaL},
}
Figure