MCP-Enabled LLM for Meta-optics Inverse Design: Leveraging Differentiable Solver without LLM Expertise

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Huang, Yi, Zheng, Bowen, Dong, Yunxi, Tang, Hong, Zhao, Huan, Shawon, S. M. Rakibul Hasan, An, Sensong, Zhang, Hualiang
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866911579033829376
author Huang, Yi
Zheng, Bowen
Dong, Yunxi
Tang, Hong
Zhao, Huan
Shawon, S. M. Rakibul Hasan
An, Sensong
Zhang, Hualiang
author_facet Huang, Yi
Zheng, Bowen
Dong, Yunxi
Tang, Hong
Zhao, Huan
Shawon, S. M. Rakibul Hasan
An, Sensong
Zhang, Hualiang
contents Automatic differentiation (AD) enables powerful metasurface inverse design but requires extensive theoretical and programming expertise. We present a Model Context Protocol (MCP) assisted framework that allows researchers to conduct inverse design with differentiable solvers through large language models (LLMs). Since LLMs inherently lack knowledge of specialized solvers, our proposed solution provides dynamic access to verified code templates and comprehensive documentation through dedicated servers. The LLM autonomously accesses these resources to generate complete inverse design codes without prescribed coordination rules. Evaluation on the Huygens meta-atom design task with the differentiable TorchRDIT solver shows that while both natural language and structured prompting strategies achieve high success rates, structured prompting significantly outperforms in design quality, workflow efficiency, computational cost, and error reduction. The minimalist server design, using only 5 APIs, demonstrates how MCP makes sophisticated computational tools accessible to researchers without programming expertise, offering a generalizable integration solution for other scientific tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2508_10277
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MCP-Enabled LLM for Meta-optics Inverse Design: Leveraging Differentiable Solver without LLM Expertise
Huang, Yi
Zheng, Bowen
Dong, Yunxi
Tang, Hong
Zhao, Huan
Shawon, S. M. Rakibul Hasan
An, Sensong
Zhang, Hualiang
Computational Physics
Optics
Automatic differentiation (AD) enables powerful metasurface inverse design but requires extensive theoretical and programming expertise. We present a Model Context Protocol (MCP) assisted framework that allows researchers to conduct inverse design with differentiable solvers through large language models (LLMs). Since LLMs inherently lack knowledge of specialized solvers, our proposed solution provides dynamic access to verified code templates and comprehensive documentation through dedicated servers. The LLM autonomously accesses these resources to generate complete inverse design codes without prescribed coordination rules. Evaluation on the Huygens meta-atom design task with the differentiable TorchRDIT solver shows that while both natural language and structured prompting strategies achieve high success rates, structured prompting significantly outperforms in design quality, workflow efficiency, computational cost, and error reduction. The minimalist server design, using only 5 APIs, demonstrates how MCP makes sophisticated computational tools accessible to researchers without programming expertise, offering a generalizable integration solution for other scientific tasks.
title MCP-Enabled LLM for Meta-optics Inverse Design: Leveraging Differentiable Solver without LLM Expertise
topic Computational Physics
Optics
url https://arxiv.org/abs/2508.10277