# Learning Electromagnetic Metamaterial Physics With ChatGPT

arXiv: https://arxiv.org/abs/2404.15458 · HTML: https://mlsanity.com/paper/2404.15458/

## Key facts

- Cited by 6 papers in the map (data through 14 Oct 2026).
- Builds on 19 of its 64 references that are in the map.
- First posted on arXiv 23 Apr 2024.

## Builds on (most cited first, 19 of 19)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [Language Models are Few-Shot Learners](https://mlsanity.com/paper/2005.14165/) (2020)
- [Chain-of-Thought Prompting Elicits Reasoning in Large Language Models](https://mlsanity.com/paper/2201.11903/) (2022)
- [Visual Instruction Tuning](https://mlsanity.com/paper/2304.08485/) (2023)
- [Large Language Models are Zero-Shot Reasoners](https://mlsanity.com/paper/2205.11916/) (2022)
- [A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions](https://mlsanity.com/paper/2311.05232/) (2023)
- [A Survey on Evaluation of Large Language Models](https://mlsanity.com/paper/2307.03109/) (2023)
- [An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning](https://mlsanity.com/paper/2308.08747/) (2023)
- [Interpretable Machine Learning: Fundamental Principles and 10 Grand Challenges](https://mlsanity.com/paper/2103.11251/) (2021)
- [LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Tasks](https://mlsanity.com/paper/2206.06565/) (2022)
- [14 Examples of How LLMs Can Transform Materials Science and Chemistry: A Reflection on a Large Language Model Hackathon](https://mlsanity.com/paper/2306.06283/) (2023)
- [Beyond Sparsity: Tree Regularization of Deep Models for Interpretability](https://mlsanity.com/paper/1711.06178/) (2017)
- [Deep neural networks for the evaluation and design of photonic devices](https://mlsanity.com/paper/2007.00084/) (2020)
- [Global optimization of dielectric metasurfaces using a physics-driven neural network](https://mlsanity.com/paper/1906.04157/) (2019)
- [MeLM, a generative pretrained language modeling framework that solves forward and inverse mechanics problems](https://mlsanity.com/paper/2306.17525/) (2023)
- [A neural operator-based surrogate solver for free-form electromagnetic inverse design](https://mlsanity.com/paper/2302.01934/) (2023)
- [OptoGPT: A Foundation Model for Inverse Design in Optical Multilayer Thin Film Structures](https://mlsanity.com/paper/2304.10294/) (2023)
- [Inverse deep learning methods and benchmarks for artificial electromagnetic material design](https://mlsanity.com/paper/2112.10254/) (2021)
- [Deep learning-based design of broadband GHz complex and random metasurfaces](https://mlsanity.com/paper/2110.12999/) (2021)

## Built on by (most cited first, 6 of 6)

- [A multi-agentic framework for real-time, autonomous freeform metasurface design](https://mlsanity.com/paper/2503.20479/) (2025)
- [Chat to Chip: Large Language Model Based Design of Arbitrarily Shaped Metasurfaces](https://mlsanity.com/paper/2509.24196/) (2025)
- [A Self-Evolving Agentic Framework for Metasurface Inverse Design](https://mlsanity.com/paper/2604.01480/) (2026)
- [Data driven approaches in nanophotonics: A review of AI-enabled metadevices](https://mlsanity.com/paper/2510.00283/) (2025)
- [VortexChat: An agentic framework for autonomous multi-objective integrated photonic design](https://mlsanity.com/paper/2608.20688/) (2026)
- [Towards a universal meta-optics solver via large language models](https://mlsanity.com/paper/2608.26417/) (2026)

## Abstract (arXiv)

Large language models (LLMs) such as ChatGPT, Gemini, LlaMa, and Claude are trained on massive quantities of text parsed from the internet and have shown a remarkable ability to respond to complex prompts in a manner often indistinguishable from humans. For all-dielectric metamaterials consisting of unit cells with four elliptical resonators, we present a LLM fine-tuned on up to 40,000 data that can predict the absorptivity spectrum given a text prompt that only specifies the metasurface geometry. Results are compared to conventional machine learning approaches including feed-forward neural networks, random forest, linear regression, and K-nearest neighbor (KNN). Remarkably, the fine-tuned LLM (FT-LLM) achieves a comparable performance across large dataset sizes with a deep neural network. We also explore inverse problems by asking the LLM to predict the geometry necessary to achieve a desired spectrum. LLMs possess several advantages over humans that may give them benefits for research, including the ability to process enormous amounts of data, find hidden patterns in data, and operate in higher-dimensional spaces. This suggests they may be able to leverage their general knowledge of the world to learn faster from training data than traditional models, making them valuable tools for research and analysis.
