MillBill: A Machining Agent with Geometric Feedback
Organizations: Lomonosov Moscow State University · AXXX, Moscow, Russia · Innopolis University · FusionBrain Lab
Abstract
Turning a CAD model into a machining program requires both process knowledge and geometric precision. Language models can generate such workflows by writing geometry and toolpath code for each part, but this makes numerical execution part of the model's task. We introduce MillBill, an agent that separates machining decisions from their geometric execution and verification. Given a boundary-representation part, stock, and material, a locally hosted, mid-sized open model proposes operations and cutting parameters for indexed three-axis machining. A geometric harness generates toolpaths, simulates material removal, and returns feedback for plan refinement. Setup planning accounts for what the available cutters can physically reach, rather than visibility alone. We evaluate the resulting programs by the fraction of the target surface area within the specified tolerance after simulated machining. With Qwen3.8-27B, MillBill outperforms frontier-model approaches that construct their own geometry and toolpath workflows on the evaluated machining tasks. Code: https://github.com/kulibinai/millbill
Figures & tables
| Method | Scored | Gouge | Excess | |
|---|---|---|---|---|
| CNC-Net [ 53 ] | 99/100 | 42.3 | 31.11 | 26.6 |
| Code-writing agent | ||||
| Qwen3.8-27B | 82/100 | 7.9 | 38.99 | 53.5 |
| Opus 5.5 | 100/100 | 83.0 | 4.76 | 12.3 |
| GPT-6 Astra | 99/100 | 94.3 | 1.50 | 4.2 |
| MillBill (ours) | 100/100 | 97.4 | 0.54 | 2.1 |
| Variant | Gouge | Excess | |
|---|---|---|---|
| MillBill (full) | 97.4 | 0.54 | 2.1 |
| Reference plan (no LLM) | 97.0 | 0.77 | 2.2 |
| Fixed setup | 66.4 | 0.58 | 33.1 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Type | MFInstSeg classes |
|---|---|
| hole | through hole, blind hole |
| triangular, rectangular and 6-sided pockets; circular-end pocket; triangular, rectangular and 6-sided passages; O-ring | |
| slot | triangular, rectangular and circular through slots; rectangular blind slot; v and h circular-end blind slots |
| step | rectangular, 2-sided and slanted through steps; triangular, circular and rectangular blind steps |
| chamfer | chamfer |
| fillet | round |
| Parameter | Value |
|---|---|
| Model | Qwen3.8-27B, FP8 |
| Temperature / thinking | 0 / off |
| Max. output tokens | 8192 |
| ReAct iter.: retrieval sub-agents | 5 / 5 / 3 |
| ReAct iter.: sequence, tools | 5, 5 |
| Tolerance | 0.1 mm |
| Metric | MillBill | Astra | Opus | Qwen | CNC-Net |
|---|---|---|---|---|---|
| Scored parts | 100 | 99 | 100 | 82 | 99 |
| Initial stock | |||||
| Within tolerance (%) | 9.3 | 9.3 | 9.3 | 10.6 | 41.8 |
| Gouge area (%) | 0.00 | 0.00 | 0.00 | 0.00 | 0.02 |
| Excess area (%) | 90.7 | 90.7 | 90.7 | 89.4 | 58.2 |
| Gouge proxy (cm 3 ) | 0.00 | 0.00 | 0.00 | 0.00 | 0.01 |
| Method | Scored | ||||
|---|---|---|---|---|---|
| CNC-Net | 99/100 | 38.3 | 42.3 | 47.7 | 57.3 |
| GPT-6 Astra | 99/100 | 90.2 | 94.3 | 95.3 | 95.6 |
| Opus 5.5 | 100/100 | 78.9 | 83.0 | 86.0 | 88.2 |
| MillBill | 100/100 | 89.3 | 97.4 | 98.0 | 98.1 |
| Part | Setups | CNC-Net | Qwen | Opus | Astra | MillBill | Part | Setups | CNC-Net | Qwen | Opus | Astra | MillBill |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| p00089 | 6 | 48.6 | – | 89.2 | 87.9 | 95.2 | p03332 | 6 | 59.1 | 4.9 | 71.9 | 88.6 | 91.0 |
| p00114 | 4 | 58.6 | 0.3 | 95.1 | 95.1 | 93.5 | p03369 | 4 | 55.5 | – | 94.8 | 97.6 | 98.2 |
| p00178 | 6 | 15.8 | – | 83.6 | 82.3 | 90.0 | p03383 | 4 | 50.6 | 0.1 | 48.2 | 100.0 | 99.8 |
| p00431 | 6 | 58.1 | 0.0 | 94.3 | 98.5 | 99.4 | p03500 | 4 | 27.1 | – | 98.3 | 100.0 | 99.7 |
| p00445 | 1 | 47.7 | 50.0 | 97.2 | 99.3 | 96.6 | p03502 | 4 | 42.7 | 0.1 | 98.8 | 98.8 | 99.8 |
| p00486 | 4 | 50.0 | 0.2 | 89.7 | 100.0 | 99.2 | p03548 | 6 | 20.8 | 0.0 | 73.6 | 99.2 | 97.8 |
Manufacturing
Manufacturing research develops methods and systems to design, plan, automate, monitor, and improve industrial production.
See all 87 papers