Evaluating LLMs for Automated SEM Powder Characterization Workflows

Stephen Price, Kiran G Judd, Danielle L. Cote, Elke RundensteinerAI4Mat @ NeurIPS 2026

TL;DR

If you ask a large language model (LLM) to crunch raw particle-measurement data from scanning electron microscopy (SEM) images, it will get the math wrong more than half the time. However, if you let computer vision and deterministic scripts handle the number-crunching—and use the LLM simply to retrieve precomputed summaries or route natural-language requests to the right analysis tool—accuracy jumps above 90%.

What Problem Does This Paper Address?

In powder-based additive manufacturing (like metal 3D printing), the size and shape of microscopic powder particles dictate how well the powder flows, deposits, and ultimately how strong the final part will be. Researchers use scanning electron microscopy (SEM) to inspect these powders, and modern computer vision (CV) pipelines can now automatically segment hundreds of individual particles per image and extract their geometric descriptors.

The bottleneck has shifted downstream: turning those raw particle tables into actual materials-science answers still requires a human to manually select, write, or tweak specialized analysis scripts. One study might need particle-size percentiles ($D_{10}$, $D_{50}$, $D_{90}$) from a single image, while another needs cross-image comparisons of particle circularity. The authors ask: can LLMs bridge this gap by interpreting natural-language characterization requests?

Methods

The authors evaluate 13 LLM configurations—six API-accessible GPT models and seven locally hosted open-weight models—across five studies totaling 7,183 tasks per model (93,379 evaluations overall). They compare three distinct strategies for giving LLMs access to SEM-derived morphology data:

  1. Direct Inference from Raw Data: The LLM receives raw per-particle measurements (in text or tabular form) and has to compute the requested statistic itself.
  2. Precomputed-Summary Retrieval: The LLM receives precomputed summary statistics (in text or tabular form) and simply retrieves the right value.
  3. Schema-Guided Tool Routing: Instead of computing anything directly, the LLM interprets the user's request and outputs a structured tool call—selecting the image(s), analysis type, morphology feature, and statistic—which a deterministic tool then executes.
Figure 1: LLM-guided characterization workflow with tool routing. An automated vision pipeline segments SEM images, while the LLM interprets the user request and selects image(s), analysis type, morphology feature, and statistic. Deterministic morphology-extraction and statistical-aggregation tools compute the result, which is returned as a natural-language response.

For tool routing, the authors score both strict matches (exact reference tool and arguments) and accepted matches (functionally equivalent arguments, such as requesting $D_{50}$ instead of median diameter).

Datasets

The evaluation builds on a publicly accessible powder SEM dataset containing 7,324 segmented particles across 132 SEM images and 13 powder types. Particle masks were generated using a DualSight-style two-stage CV pipeline (YOLOv8-Nano for initial detection, followed by Segment Anything Model [SAM] refinement), with Scikit-Image extracting per-particle size and shape descriptors.

For the primary benchmarks, the authors use a 20-image held-out evaluation set spanning all 13 powder types, scoring every LLM response against deterministic ground-truth values.

Key Insights and Ideas

  • LLMs are great librarians, but unreliable calculators: Across all models, retrieving answers from precomputed summaries achieved 92.0% accuracy, compared with just 48.8% when computing from raw particle records. Relaxing the numeric tolerance from 1% to 5% only bumped raw accuracy to 58.7%, showing that the errors aren't just rounding issues.
  • Tool routing works well for bounded tasks: When models were asked to route requests to deterministic tools rather than do math, 10 of 13 configurations scored at least 95.0% accepted routing accuracy.
  • Reproducibility does not equal accuracy: High repeatability can be misleading. For example, Bonsai-8B achieved 100.0% exact-response agreement across repeated runs, yet only 41.8% accuracy—meaning it was consistently wrong.
  • Open-ended morphology selection remains a major hurdle: While models excelled at bounded single-image queries and pairwise comparisons, they struggled when asked to identify the top-3 largest, non-redundant morphology differences between images out of 108 candidate metrics—scoring 35.9% at the morphology-family level and just 5.6% for exact metric selection.

Key Results

LLM performance across characterization tasks

Figure 2: LLM performance across characterization tasks. Left: direct accuracy across raw and processed text and tabular input serializations. Center: accepted and strict analysis-routing accuracy. Right: performance across pairwise, single-image numeric, and top-3 morphology comparisons. Gray points show individual model scores and bars show model-macro averages.
  • Direct Answering: Precomputed summaries yielded 92.0% average accuracy (with several models hitting 100.0% on processed tables and 99.5% on processed text), versus 48.8% on raw records. GPT-5.6-Luna (Medium) led raw-input performance at 90.1% (tables) and 88.0% (text), while Qwen3.6-35B-A3B was the strongest open-weight model at 75.3% averaged across raw formats.
  • Analysis Routing: Models averaged 80.7% strict tool-call accuracy and 89.7% accepted accuracy, with five configurations reaching 100.0% accepted accuracy. Single-image (95.9%) and top-$k$ (96.2%) routing outperformed pairwise routing (83.1%).
  • Comparative Case Study: Pairwise comparison accuracy rose from 72.5% on raw records to 94.3% with precomputed values, whereas exact top-3 metric selection remained at 5.6%.

Limitations and Future Work

The authors note that their evaluation relies on a single SEM dataset and a single characterization pipeline, so performance on independently collected images or alternative analysis workflows remains untested. Looking ahead, they suggest:

  • Expanding evaluations to additional materials and imaging conditions.
  • Comparing schema-guided tool routing against more general-purpose LLM-generated code execution.
  • Further investigating open-ended characterization tasks to better define where LLMs can reliably support autonomous laboratories.

Summary updated

BibTeX
@inproceedings{price2026evaluating,
  author = {Stephen Price and Kiran G Judd and Danielle L. Cote and Elke Rundensteiner},
  title = {{Evaluating LLMs for Automated SEM Powder Characterization Workflows}},
  booktitle = {AI4Mat @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=teLgOBTGpf},
}

Loading related content...

Figure