TL;DR
Can a general-purpose Large Language Model act like an experimental manufacturing engineer, running physical-style trials to map out safe operating parameters from scratch? This paper shows that while out-of-the-box LLMs are terrible at guessing good welding settings on the first try, putting them in a closed feedback loop allows them to design sequential experiments and map out complex process windows just as accurately as specialized machine-learning algorithms—all without any task-specific training.
What Problem Does This Paper Address?
Every car body is held together by thousands of resistance spot welds—overlapping metal sheets fused by a jolt of electrical current under clamping force. If you use too little current or time, the weld is weak (undersized); use too much, and molten metal violently spits out (expulsion). Between these failure modes lies a "Goldilocks" zone of current and time combinations known as the weld lobe.
Whenever a factory changes sheet thickness, material, or equipment, welding engineers have to map this lobe all over again through tedious, expensive trial-and-error welding. Meanwhile, LLMs have proven great at summarizing factory manuals, but we don't know if they can handle quantitative, sequential decision-making on the shop floor when they lack specific data about a new setup. Can an LLM autonomously explore an unfamiliar parameter space and map a process window on its own?
Methods
Instead of pairing an LLM with a traditional optimization algorithm, the authors hand the entire experimental loop over to the LLM (evaluating Gemma 12B, Claude Sonnet 5.5, and GPT-5.6).
Here is how the iterative process lobe exploration works:
- Setup: The LLM gets a plain-text prompt describing the materials, equipment, electrode force, and what qualifies as an acceptable weld (e.g., minimum pull strength without expulsion).
- Loop: Across a single 30-turn conversation, the LLM predicts the current boundaries of the weld lobe and proposes the next trial schedule (a specific current and time).
- Feedback: A virtual welding laboratory—a continuous response surface mathematically reconstructed from real experimental data—evaluates the proposed schedule and returns the weld class (undersized, acceptable, or expulsion) plus quantitative strength or nugget size where available.
The authors benchmark this zero-training LLM loop against two specialized ML baselines trained on synthetic lobes: a Bayesian experimental design loop (information-gain selection + Bayesian estimation) and a reinforcement learning loop (PPO + Deep Sets). They also test Retrieval-Augmented Generation (RAG), lobe interpolation/extrapolation across clamping forces, and visual weld inspection from photographs.
Datasets
- Reference Weld Lobes (Virtual Lab): Eleven weld lobes constructed from four open-access studies covering aluminum–steel joints (Shin et al.), 316L stainless steel (Kim et al.), 980 MPa cold-rolled steel (Choi et al.), and CP1000 steel (Morales-Sánchez et al.).
- RAG Corpus: Twelve separate open-access spot-welding papers covering process monitoring, parameter effects, and control.
- Visual Inspection: The Resistance Spot Welding Insights dataset, featuring paired front-and-back surface photographs and physical measurements for 495 steel welds.
Key Insights and Ideas
- Zero-shot guessing fails; feedback loops shine: Ask an LLM for a good welding schedule cold, and it misses the mark at least two-thirds of the time. Put that exact same model in a 30-trial feedback loop, and it rivals bespoke Bayesian and RL algorithms—without needing predefined geometric priors or synthetic training pipelines.
- Reading the manual doesn't replace running the experiment: Adding domain literature via RAG gave a tiny boost in the first five trials for larger models, but offered no consistent advantage by trial 30 (and actually hurt Gemma and Claude slightly). Physical feedback trumps textbook theory when equipment specifics vary.
- Decoupling exploration from estimation reveals hidden bottlenecks: By replaying LLM-chosen trials through ML estimators (and vice versa), the authors found why smaller models struggle. Gemma actually picks fairly informative experiments—when a Bayesian estimator reads Gemma's trial history, accuracy jumps from 0.695 to 0.792—meaning Gemma's main bottleneck is interpreting its own data, whereas Claude excels at both picking trials and mapping boundaries.
- Physics-aware transfer: Given two lobes mapped at different clamping forces, LLMs can reasonably interpolate (and even extrapolate) what the lobe looks like at a third force with zero new trials.
Key Results
Lobe accuracy is scored using mean interval Intersection over Union (IoU)—where 1.0 means the predicted safe current ranges perfectly overlap the true lobe across welding times.
- Closed-Loop Exploration (30 trials, no RAG): Claude Sonnet 5.5 reached 0.902 IoU, GPT-5.6 hit 0.821, and Gemma 12B reached 0.695. Remarkably, Claude edged out both specialized ML baselines: Bayesian IG (0.871) and PPO + Deep Sets (0.769), noting that LLMs also utilized quantitative feedback where available while ML baselines used weld classes only.
- Zero-Trial Schedule Generation: Without trial feedback, at most 33.3% of LLM-recommended schedules landed inside the acceptable lobe (0% for Gemma without RAG, 27.3% for Claude and GPT).
- Cross-Force Lobe Transfer: Predicting a lobe at an unseen electrode force from two explored lobes yielded mean IoUs of 0.762 (Claude), 0.677 (GPT), and 0.588 (Gemma), peaking above 0.80 for Claude and GPT when interpolating between bracketing forces.
- Image-Based Inspection: Providing 24 labeled example photos slashed LLM quantitative prediction errors dramatically—pull-force Mean Absolute Error dropped from 794–969 N down to 201–286 N (beating a 24-example CNN at 419 N, though a full 5-fold cross-validated CNN still led at 141 N and 90.9% accuracy).
Limitations and Future Work
- Clean virtual physics: The virtual lab interpolates smooth curves from published data, omitting real-world headaches like experimental scatter, electrode tip wear, and thermal drift.
- Disconnected vision and control: Visual weld inspection was tested offline on a separate image dataset, so it remains unknown how camera misclassification errors might compound inside an active exploration loop.
- Training data overlap: Because the reference lobes come from public papers, prior exposure during LLM pretraining cannot be completely ruled out—though terrible zero-trial IoUs (0.128–0.188) strongly suggest the models aren't simply reciting memorized lobes.
- Next steps: Connecting LLMs directly to physical robotic welding cells, cameras, and destructive/non-destructive sensors to test live closed-loop exploration under real shop-floor noise.
Summary updated