arXiv · 2609.28926
Teaching an LLM agent to fit XRR curves with X-Ray Calc 3
Abstract
The structure of a periodic multilayer X-ray mirror is obtained by fitting its X-ray reflectivity (XRR) curve, and the result depends on how the operator normalizes and trims the curve, frees parameters, and accepts a fit. The manual of the fitting program and the papers describing its engine leave these decisions to the operator, whose practice is tacit, so the fitting stays with the expert. To solve this problem, we proposed to develop a skill for a large language model (LLM) agent via elicitation: the expert's decisions were recorded during fitting and written as thirteen steps and a 22-item report template. The agent runs X-Ray Calc 3 through a Model Context Protocol (MCP) tool server. Fresh sessions, each given the skill, one curve, and a nominal design, were scored against fits the expert had withheld, under six tolerances fixed beforehand. The skill was developed on XRR curves of Co/C mirrors and of Ru/C mirrors from a public data deposit. The final version of the skill was tested on W/B4C multilayers. It was demonstrated that the skill recovered the mean period within 0.3 Å of the expert's fits and the period drift through the stack on both W/B4C specimens, and the W and B4C thicknesses within 1 Å on one of them.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Oleksiy V. Penkov, Jingjing Peng, Haoyu Fu. 2026-09-24. Teaching an LLM agent to fit XRR curves with X-Ray Calc 3. https://arxiv.org/abs/2609.28926
Cite the original work for its findings. Save a collection to share your selection of sources.