[Paper Review] Autonomous Algorithm Discovery for Ptychography via Evolutionary LLM Reasoning
Ptychi-Evolve uses large language models to autonomously discover and evolve regularization algorithms for ptychographic reconstruction, outperforming baselines across three challenging datasets while preserving interpretable algorithm lineage.
Ptychography is a computational imaging technique widely used for high-resolution materials characterization, but high-quality reconstructions often require the use of regularization functions that largely remain manually designed. We introduce Ptychi-Evolve, an autonomous framework that uses large language models (LLMs) to discover and evolve novel regularization algorithms. The framework combines LLM-driven code generation with evolutionary mechanisms, including semantically-guided crossover and mutation. Experiments on three challenging datasets (X-ray integrated circuits, low-dose electron microscopy of apoferritin, and multislice imaging with crosstalk artifacts) demonstrate that discovered regularizers outperform conventional reconstructions, achieving up to +0.26 SSIM and +8.3~dB PSNR improvements. Besides, Ptychi-Evolve records algorithm lineage and evolution metadata, enabling interpretable and reproducible analysis of discovered regularizers.
Motivation & Objective
- Motivate autonomous discovery of regularization strategies for ill-posed ptychographic reconstruction.
- Enable LLM-driven generation and evolution of executable regularizers integrated with Pty-Chi.
- Provide a flexible evaluation and history-tracking pipeline for reproducible discoveries.
- Demonstrate improvements over baseline reconstructions across diverse datasets.
Proposed method
- LLM engine generates executable regularizer code as Python functions compatible with Pty-Chi.
- Semantically-guided crossover and mutation guide evolutionary refinement of regularizers.
- Multi-modal evaluation (ground-truth, human expert, and vision-language model) guides selection.
- History management with metadata enables interpretability and checkpointing.
- Security and input validation ensure generated code is safe to execute in restricted environments.
- Checkpointing and compression maintain tractable discovery over long runs.

Experimental results
Research questions
- RQ1Can autonomous LLM-driven systems discover novel regularization strategies for ptychography beyond manual design?
- RQ2Do semantically-guided evolutionary operations yield more effective regularizers than random recombination?
- RQ3Are discovered regularizers robust across different imaging modalities and artifact types?
- RQ4Does maintaining complete algorithm lineage enable interpretable insights into what works and why?
Key findings
- Discovered regularizers substantially outperform baseline LSQML reconstructions across all three datasets (SSIM improvements up to +0.26 and PSNR up to +8.3 dB).
- X-ray IC shows the largest absolute improvement with an 83% success rate, highlighting the challenge of grid artifacts.
- Apoferritin and multislice datasets achieve strong gains with high success rates (97% and 94%, respectively).
- Top-performing multislice regularizer integrates four gradient components including Charbonnier-TV, gradient exclusion, Gram orthogonality, and spectral masks with contrast-adaptive weighting, yielding notable improvements.
- The framework records complete algorithm lineage and evolution metadata enabling interpretable analyses of effective regularization strategies.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.