arXiv(opens in a new tab)physics.opticsAug 2026

Manuscript Offprint

arXiv:2608.28877

HALO: A Physics-Aware LLM Agent Framework for Nanophotonic Design

Yubo Zhang, Jinlin Xiang, Zijun Zhao, Yang Zhao, Eli Shlizerman, Arka Majumdar

Abstract

Language models have recently been applied to nanophotonic design, including device generation, optimization, and tool-assisted simulation. However, it remains less clear whether such systems can translate optical objectives into complete simulation-ready designs, execute electromagnetic analysis, and revise decisions from numerical feedback, or how these capabilities should be evaluated reliably across diverse tasks. To address these issues, we introduce HALO, a physics-aware framework that couples language-model planners with a typed, machine-readable design specification, electromagnetic simulation, diagnostic evaluation, and optional reuse of prior failure trajectories in an iterative design loop. We further introduce HALO-Bench, a 52-task benchmark spanning lab-derived, paper-derived, and open-ended nanophotonic design tasks, to evaluate executable design performance under a shared protocol. To study how workflow structure and execution freedom affect scientific agent performance, we compare three planner configurations: a Fixed Structured Workflow, an Autonomous Structured Agent that retains the same simulation interface, and an Autonomous Coding Agent that directly writes and executes simulation code. We find that the Fixed Structured Workflow is consistently the most token-efficient and incurs no observed code- or path-level failures, whereas autonomous coding can achieve higher task success with stronger models at the cost of additional operational failures. Because iterative design may repeatedly encounter similar failure modes, we also study whether prior failed trajectories can be reused to accelerate correction. On targeted cases requiring multiple feedback rounds, retrieved failure feedback reduces the number of iterations to first success and total token use. These findings clarify when scientific agents benefit from explicit interfaces, autonomous execution, and reusable design experience.

Introduction

Language-model systems increasingly plan, use tools, execute code, and revise from feedback (Yao et al. 2022; Schick et al. 2023; Wu et al. 2024). In scientific design, however, these general capabilities are not sufficient: the system needs to translate an objective into an executable representation, run the relevant tools, interpret numerical evidence, and improve within limited evaluation budgets (Chen et al. 2025; Starace et al. 2025).

Nanophotonic design makes this challenge concrete. A short optical goal or device description may omit the geometry, material assignments, illumination settings, solver configuration, design variables, and evaluation metrics required for electromagnetic simulation. Classical inverse-design methods are powerful after this representation and objective have been specified (Molesky et al. 2018), but the upstream conversion from natural-language intent to a simulation-ready problem remains a substantial bottleneck.

We introduce HALO, a physics-aware executable framework that standardizes the conversion from natural-language design intent into a simulation-ready formulation and supports electromagnetic execution, diagnostic evaluation, iterative revision, and optional reuse of prior failed trajectories. In this work, physics awareness means that planner decisions are evaluated and revised through electromagnetic simulation and task-specific physical metrics. For auditability, HALO stores prompts, structured designs or generated code, simulation outputs, scores, evaluator notes, and failure records as design trajectories.

The associated HALO-Bench evaluates this process across Lab-Derived Simulation Tasks, Paper-Derived Tasks, and Open-Ended Tasks. These regimes respectively test whether planners can recover known feasible designs, reconstruct simulation-ready devices from paper descriptions, and improve open-ended designs through iterative feedback.

Our central question is how much workflow and interface structure a scientific planner needs. We compare three planner configurations along two dimensions: workflow orchestration, ranging from fixed execution to autonomous agent control, and simulation access, ranging from a typed machine-readable interface to self-generated simulation code. We find that explicit scientific interfaces improve reliability and token efficiency while providing directly inspectable design records, whereas autonomous coding can achieve higher success with sufficiently capable models. Because some cases require multiple feedback rounds, we also examine whether retrieved failure feedback can accelerate convergence.

Our contributions are:

• HALO, a physics-aware framework for executable and iterative nanophotonic-agent design and evaluation.

• HALO-Bench, a 52-task benchmark spanning Lab-Derived Simulation, Paper-Derived, and Open-Ended nanophotonic design tasks.

∗^{*}These authors contributed equally.

Copyright © 2027, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.

Figure

Figure 1: Overview of the HALO problem formulation. HALO converts an underspecified natural-language optical objective into explicit geometry, material assignments, simulation settings, and evaluation criteria, and iteratively revises the design using simulator feedback.

  • A system-level comparison of planner structure and autonomy, together with a targeted study showing that schema-assisted retrieval of failed trajectories accelerates convergence on delayed-success cases.

References (43)