Skip to content
Open access

Using large language models for enhancing accessibility for Monte Carlo photon transport simulations and beyond

Jul 2026 · bioRxiv · 0 citations · 35 references
Medicine Biology

TL;DR

This work investigates the use of LLMs in quantitative biophotonics simulation tools, with a goal of enabling novice users to build complex photon simulations using intuitive natural-language-based problem descriptions and provides a pathway to making complex scientific tools accessible while ensuring the reliability and technical correctness required for rigorous scientific research.

Abstract

Significance Computational modeling and the use of simulation software tools are essential for biomedical optics research. Designing effective simulations often requires in-depth understanding of the underlying physical problems and proper configuration of the software settings, which often constitute key barriers for novice users including students. The rapid emergence of large language models (LLMs) offers new opportunities for natural-language-based interaction, but integrating them with technical software remains challenging because of their limited output reproducibility. Overcoming these limitations would allow more intuitive, efficient, and reproducible interaction between scientists and scientific software. Aim We investigate the use of LLMs in quantitative biophotonics simulation tools, with a goal of enabling novice users to build complex photon simulations using intuitive natural-language-based problem descriptions. Approach We have explored prompt engineering strategies that enable LLMs to bridge the gap between natural language descriptions and advanced simulation software by constraining LLM outputs using a data schema (i.e., format) and a modular component architecture, followed by deterministic validation to ensure correctness and reproducibility of the outputs. Results Using Monte Carlo eXtreme (MCX) – a widely used photon transport simulator – as an example, we showcase the capability of the proposed framework to convert user descriptions to structured simulation inputs. Benchmarked using 33 diverse natural language simulation descriptions, our LLM interface, MCX-LLM, achieves 98% accuracy and 99% repeatability, with an average processing time of 8.96 seconds per prompt. The framework also successfully handles various linguistic styles and diverse simulation settings, achieving a 100% success rate on 20 unconstrained real-world prompts. With only minor adjustments, our LLM interface also produces valid inputs for a finite-element-based diffusion solver to demonstrate generality towards other optical simulators. Conclusions By combining LLMs’ capability for textual data comprehension with structured constraints, this work provides a pathway to making complex scientific tools accessible while ensuring the reliability and technical correctness required for rigorous scientific research. MCX-LLM has been integrated with MCX Cloud accessible at https://mcx.space/cloud.

Read PDF

Similar papers

Book Open access Jul 2026

Moore’s Law for Molecular Dynamics Simulations: An Initial Study

High-performance computing (HPC) is essential to modern molecular dynamics (MD) simulations. While computing capabilities continue to grow, it remains unclear how these advances translate into everyday scientific practice. Additional resources may be used to reduce time-to-solution, improve model fidelity, simulate larger systems, extend simulated time scales, or increase the number of independent runs. Understanding how users allocate increased computational capability is important for future system design. To investigate how MD usage has evolved over time, we analyzed over 400 publications reporting all-atom MD simulations using a large language model (LLM)-based extraction workflow. Thirty of these publications were manually reviewed to develop and validate an expert-guided extraction rubric. Using this rubric, we evaluated several LLM configurations for extracting system size, simulation duration, and number of independent runs. Extraction quality improved across successive model generations, from GPT-4o to GPT-5 and then to GPT-5.4. Within the GPT-5.4 family, accuracy decreased as model size was reduced from GPT-5.4 to GPT-5.4-mini and then to GPT-5.4-nano. However, increasing reasoning effort from medium to high made GPT-5.4-nano performance comparable to GPT-5.4 while reducing cost by nearly an order of magnitude. Based on this result, GPT-5.4-nano with high reasoning effort was selected for extraction across the full dataset. Our initial analysis suggests that MD system sizes and the number of independent runs have not grown substantially over the last two decades, whereas simulation duration shows a clearer, approximately exponential increase. The fitted trend suggests that maximum MD simulation duration doubled approximately every 2.2 years between 2005 and 2025. These results demonstrate the feasibility of AI-assisted meta-analysis for understanding historical trends in scientific computing workloads.

Alexey N. Simakov, Nikolay A. Simakov · 0 citations
Jul 2026

Simulation Code Generation for Fluid Systems using Large Language Models: Benchmarking Models and Prompting Strategies

This study explores how LLMs can be harnessed to automatically translate a neutral graph representation of fluid system models into executable code for two widely adopted simulation environments: the Python library WNTR and the Modelica Standard Library.

Jan Marius Stürmer, Jascha Knack, Tobias Koch et al. · 1 citation
Review Aug 2026

A Comprehensive Review of Large Language Models for Nanophotonics: From Surrogate Modeling to Autonomous Design

Metasurfaces have revolutionized the development of photonic devices by enabling unprecedented precision in light manipulation. However, their design processes are often constrained by computationally expensive simulations and complex high-dimensional design spaces. Although deep learning has accelerated the design process by serving as a surrogate model, it remains constrained by task-specific architectures and lacks universal reasoning capabilities. This review surveys how Large Language Models (LLMs) are adding semantic interfaces, code generation, and tool orchestration to established numerical nanophotonic workflows. We first outline the development from classical neural networks to transformer-based models and their applications in nanophotonic design. We then review the emergence of LLM-related methods in nanophotonics and organize them into two operational modes: surrogate models that treat structure-spectrum mapping as a language task, and agentic systems that have been demonstrated to generate code, orchestrate selected simulation steps, and support closed-loop optimization. Furthermore, to identify future cross-disciplinary opportunities, we briefly explore applications of LLMs in research fields such as materials science and wireless communications. This review concludes by looking ahead to the next generation of multimodal foundation models with physical perception capabilities. In this vision, artificial intelligence is evolving from passive tools into active collaborators, participating in autonomous scientific discovery.

Huanshu Zhang, Kegeng Tang, Lei Kang et al. · 1 citation
Open access Jul 2026

G4DARI: an intuitive graphical interface for Monte Carlo radiation dose calculation using GATE/GEANT4.

GEometry ANd Tracking, version 4 (GEANT4) Dose and Radiation Interaction (G4DARI) is a GEANT4 Application for Tomographic Emission (GATE)/GEANT4 built graphical, Windows-based interface designed to facilitate Monte Carlo dose calculations in computed tomography images of patients, small animals, and phantoms. Developed to remove the programming barrier commonly associated with handling image formats and using GATE and GEANT4 coding, G4DARI integrates Oracle virtual machine (VM) VirtualBox for running the simulation environment and PuTTY for secure communication between the VM and the host system. The interface allows users to perform complete Monte Carlo dose simulations using only mouse interactions, providing a streamlined workflow for clinically relevant simulations, preclinical and research applications, and educational purposes. This manuscript describes the architecture, workflow, and features of G4DARI, from the conversion of Digital Imaging and Communications in Medicine (DICOM) images to dose determination in any region of the digital image. Furthermore, G4DARI is freely available for download, providing users with an accessible platform for running their own dosimetry simulations.

M. Bentourkia · 0 citations
Jul 2026

Integrating Automated Simulation Workflows with 3D Visualization for Virtual Experiments in the Metaverse.

This protocol demonstrates the deployment and use of a locally containerized workflow system that supports the findable, accessible, interoperable, reusable (FAIR) data principles and supports Scalability to high-performance computing (HPC) or cloud resources via Galaxy's Pulsar system.

William Smith, Oliver Woolland, Lee Margetts · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.