ChatGPT, run my particle accelerator!

A first step towards a future in which complex scientific systems can be optimised simply by voice input

13-Feb-2025
Computer-generated image

Symbolic image

Do you sometimes find yourself thinking, ‘I wonder what ChatGPT has to say about this’? It has become common practice to consult artificial intelligence (AI) on a wide range of topics and problems. Scientists at DESY and the University of Hamburg have now asked this question with regard to operating an accelerator and have discovered that ChatGPT can help them to run these machines. They recently published their findings in the journal Science Advances.

Machine learning is often used in physics to automate certain routines and tasks. In accelerator physics, an extremely attractive field of application is tuning particle accelerators in real time to ensure that the best performance at all times. A research group led by DESY scientist Jan Kaiser has now demonstrated how this can be done using a special type of machine learning – with the help of ‘large language models’ (LLMs). These AI programmes, which are also behind popular chatbots such as ChatGPT, are trained on huge amounts of data (hence the ‘large’ in the name) and are able to recognise, interpret and generate human language.

The team experimented with 14 different LLMs and used them to control ARES, an experimental electron accelerator at DESY. Their task was to adjust five magnets in such a way that the electron beam from ARES was focused and steered in the best possible way. Instead of ‘coding’ the requirements, however, the scientists described the problem to the LLMs using natural language prompts. The LLMs then suggested how to set the five tuning parameters with the utmost precision, explaining what each value would achieve.

“We were totally surprised at how well some of the LLMs were able to solve the problem,” says Kaiser. “What’s even more fascinating, though, is that they don’t even need to know that they are operating a particle accelerator. So in theory, LLMs can solve any type of optimisation problem, which means that our approach is relevant far beyond the field of accelerator physics.”

Of course, the researchers also encountered certain obstacles during their proof-of-concept investigations. “Just like with human operators, you have to ask the right LLM the right question to get a good solution,” says Annika Eichler (DESY and Hamburg University of Technology), whose research group is responsible for the intelligent control of accelerator systems using AI. The computational power and thus the environmental impact of solving such problem is currently substantial. Furthermore, the systems are still lagging behind other specialised methods. For the time being, LLMs would probably be better serving as advisory ‘co-pilots’ in accelerator control rooms.

“Nevertheless, our work is an important first step towards a future in which complex and highly relevant scientific facilities can be operated simply by asking for the desired result using natural language,” says Eichler.

Original publication

Other news from the department science

Most read news

More news from our other portals

Is artificial intelligence revolutionising chemistry?