From Prompt to Protocol: Fast Charging Batteries with Large Language Models

Ge Lei, Ferran Brosa Planella, Sterling G. Baird, Samuel J. Cooper
1/14/2026
cs.LGcs.AIeess.SY

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lei2026from,
  title  = {From Prompt to Protocol: Fast Charging Batteries with Large Language Models},
  author = {Ge Lei and Ferran Brosa Planella and Sterling G. Baird and Samuel J. Cooper},
  year   = {2026},
  eprint = {2601.09626},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.09626v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.09626.svg)](https://codeofpaper.com/paper/2601.09626)

Discussion