Programming manufacturing robots with imperfect AI

LLMs as tuning experts for FDM print configuration selection

Instead of relying on an AI model to output a full print configuration, we use an LLM as a constrained decision-maker inside an evidence-driven optimization loop. A toolpath-based evaluator returns a scalar objective and structured diagnostics, which the LLM uses to propose parameter edits that steer Bayesian optimization.

78% of objects: best configuration
90% of objects: within 5% of best
0% likely-to-fail cases

Results on 100 Thingi10k objects. “Best” is among the listed methods; likely-to-fail cases use the evaluator's feasibility-veto criterion.

Method

A modular LLM-guided optimization loop

Given part geometry and user objectives, we cast print configuration selection as a diagnosis-driven optimization problem. Soft guidance biases selection toward configurations consistent with the proposed changes, while hard constraints restrict the next step to modifying only the implicated parameters.

Overview of the modular LLM-guided optimization loop for FDM 3D print configuration selection. An evaluator computes objective value Obj(x) and structured diagnostics, an LLM proposes corrective changes, and a compiler maps these changes to guidance (V(x), I) used for optimization. Lighter boxes denote example intermediate outputs.
1

Evaluator

Runs the slicer and returns a scalar score for optimization, feasibility vetoes, and issue-level penalties.

2

LLM guidance generator

Uses structured diagnostics and admissible actions to identify one primary issue and propose directional or categorical parameter changes.

3

LLM guidance compiler

Converts the selected actions into a soft-violation score V(x) and an implicated-parameter set I.

4

Guided optimization

Downweights candidates that contradict the guidance and freezes parameters outside I while optimizing over I.

Qualitative physical validation

Qualitative validation with physical prints

All quantitative comparisons use our evaluator because a standard scoring metric is not available. For qualitative validation, we physically print a subset of objects using each method's recommended print configuration.

Qualitative comparison of toolpath previews and photos of 3D prints for three representative parts across methods. Our method uses GPT-5.2 (medium reasoning) guidance. Numbered callouts mark key print issues and configuration changes. Preview colors follow the legend.
Part A

Overhang curling

The default and ChatGPT configurations leave the overhang unsupported and it curls, while our method adds support beneath it to avoid the defect.

Part B

Stringing and bonding

The ChatGPT and unguided optimization configurations produce stringing between separated posts, whereas our method avoids this defect and improves bonding by choosing a lower layer height.

Part C

Delamination risk

The default configuration is flagged for delamination risk, while our method chooses a different orientation and increases perimeters to strengthen the part.

Video

Project overview

Citation

Cite this work

@misc{samani2026programming,
  title         = {Programming Manufacturing Robots with Imperfect AI:
                   LLMs as Tuning Experts for FDM Print Configuration Selection},
  author        = {Samani, Ekta U. and Atkeson, Christopher G.},
  year          = {2026},
  eprint        = {2603.22118},
  archivePrefix = {arXiv},
  primaryClass  = {cs.RO},
  doi           = {10.48550/arXiv.2603.22118}
}