Saved in:
Bibliographic Details
Main Authors: Lei, Ge, Planella, Ferran Brosa, Baird, Sterling G., Cooper, Samuel J.
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2601.09626
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915729966628864
author Lei, Ge
Planella, Ferran Brosa
Baird, Sterling G.
Cooper, Samuel J.
author_facet Lei, Ge
Planella, Ferran Brosa
Baird, Sterling G.
Cooper, Samuel J.
contents Efficiently optimizing battery charging protocols is challenging because each evaluation is slow, costly, and non-differentiable. Many existing approaches address this difficulty by heavily constraining the protocol search space, which limits the diversity of protocols that can be explored, preventing the discovery of higher-performing solutions. We introduce two gradient-free, LLM-driven closed-loop methods: Prompt-to-Optimizer (P2O), which uses an LLM to propose the code for small neural-network-based protocols, which are then trained by an inner loop, and Prompt-to-Protocol (P2P), which simply writes an explicit function for the current and its scalar parameters. Across our case studies, LLM-guided P2O outperforms neural networks designed by Bayesian optimization, evolutionary algorithms, and random search. In a realistic fast charging scenario, both P2O and P2P yield around a 4.2 percent improvement in state of health (capacity retention based health metric under fast charging cycling) over a state-of-the-art multi-step constant current (CC) baseline, with P2P achieving this under matched evaluation budgets (same number of protocol evaluations). These results demonstrate that LLMs can expand the space of protocol functional forms, incorporate language-based constraints, and enable efficient optimization in high cost experimental settings.
format Preprint
id arxiv_https___arxiv_org_abs_2601_09626
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle From Prompt to Protocol: Fast Charging Batteries with Large Language Models
Lei, Ge
Planella, Ferran Brosa
Baird, Sterling G.
Cooper, Samuel J.
Machine Learning
Artificial Intelligence
Systems and Control
Efficiently optimizing battery charging protocols is challenging because each evaluation is slow, costly, and non-differentiable. Many existing approaches address this difficulty by heavily constraining the protocol search space, which limits the diversity of protocols that can be explored, preventing the discovery of higher-performing solutions. We introduce two gradient-free, LLM-driven closed-loop methods: Prompt-to-Optimizer (P2O), which uses an LLM to propose the code for small neural-network-based protocols, which are then trained by an inner loop, and Prompt-to-Protocol (P2P), which simply writes an explicit function for the current and its scalar parameters. Across our case studies, LLM-guided P2O outperforms neural networks designed by Bayesian optimization, evolutionary algorithms, and random search. In a realistic fast charging scenario, both P2O and P2P yield around a 4.2 percent improvement in state of health (capacity retention based health metric under fast charging cycling) over a state-of-the-art multi-step constant current (CC) baseline, with P2P achieving this under matched evaluation budgets (same number of protocol evaluations). These results demonstrate that LLMs can expand the space of protocol functional forms, incorporate language-based constraints, and enable efficient optimization in high cost experimental settings.
title From Prompt to Protocol: Fast Charging Batteries with Large Language Models
topic Machine Learning
Artificial Intelligence
Systems and Control
url https://arxiv.org/abs/2601.09626