[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-119322-en":3,"doc-seo-119322-105":30,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},119322,1374391975076,"Riley","https://ap-avatar.wpscdn.com/avatar/14000253ca4ec9f6853?x-image-process=image/resize,m_fixed,w_180,h_180&k=1783305029341752051",8,"Research & Report","Bridging the gap between machine learning and particle accelerator physics with high-speed, differentiable simulations","Machine learning is increasingly used to advance particle accelerator operations and experiment analysis, but training state-of-the-art models is constrained by limited beam time, high simulation costs, and large-dimensional optimization. This work presents Cheetah, a PyTorch-based high-speed differentiable linear beam dynamics code designed to generate training data efficiently and enable gradient-based optimization. Cheetah reduces simulation times by orders of magnitude and supports accelerator tuning, system identification, and reinforcement learning environments. It demonstrates five applications, including beamline tuning, system identification, physics-informed Bayesian optimization priors, and modular neural network surrogate modeling for space charge effects.","Bridging the gap between machine learning and particle accelerator physics with high-speed, differentiable simulations  \nJan Kaiser, 1,* Chenran Xu,2,† Annika Eichler, 1,3 and Andrea Santamaria Garcia2 1Deutsches Elektronen-Synchrotron DESY, Hamburg, Germany  \n2Karlsruhe Institute of Technology (KIT), Karlsruhe, Germany 3Hamburg University of Technology, 21073 Hamburg, Germany  \n (Received 12 January 2024; accepted 17 April 2024; published 28 May 2024)  \nMachine learning has emerged as a powerful solution to the modern challenges in accelerator physics. However, the limited availability of beam time, the computational cost of simulations, and the high dimensionality of optimization problems pose significant challenges in generating the required data for training state-of-the-art machine learning models. In this work, we introduce Cheetah, a PyTorch-based highspeed differentiable linear beam dynamics code. Cheetah enables the fast collection of large datasets by reducing computation times by multiple orders of magnitude and facilitates efficient gradient-based optimization for accelerator tuning and system identification. This positions Cheetah as a user-friendly, readily extensible tool that integrates seamlessly with widely adopted machine learning tools. We showcase the utility of Cheetah through five examples, including reinforcement learning training, gradient-based beamline tuning, gradient-based system identification, physics-informed Bayesian optimization priors, and modular neural network surrogate modeling of space charge effects. The use of such a high-speed differentiable simulation code will simplify the development of machine learning-based methods for particle accelerators and fast-track their integration into everyday operations of accelerator facilities.  \nDOI: 10.1103/PhysRevAccelBeams.27.054601  \nI. INTRODUCTION  \nFuture particle accelerator experiments will place everincreasing demands on the performance and capabilities of particle accelerator operations and experiment analysis. In order to meet these demands, the research community is increasingly turning to machine learning (ML) methods, which have already demonstrated their ability to push the envelope of what is possible in the field of accelerator science [1–4] .  \nOne of the remaining challenges holding back this line of research is the demand for large amounts of data (including environment interactions) from these methods. Reinforcement learning (RL), for example, has already successfully been used to train intelligent tuning algorithms and controllers that can outperform the currently deployed black-box optimization algorithms and handcrafted controllers [1,5–7] . However, RL methods require many interactions with their target task to train a well-performing policy. For example, 6 000 000 samples were needed in [1] to successfully train a  \n*jan.kaiser@desy.de †[chenran.xu@kit.edu](chenran.xu@kit.edu)  \nPublished by the American Physical Society under the terms of the Creative Commons Attribution 4.0 International license. Further distribution of this work must maintain attribution to the author(s) and the published article’s title, journal citation, and DOI.  \npolicy on a transverse beam tuning task. Orders ofmagnitude larger number of samples are also common with other RL applications [8,9] . The general scarcity of beam time makes collecting experimental data for ML methods, such as RL, a significant bottleneck. Gathering at least partial datasets in simulation can alleviate this problem, but existing accelerator simulation codes have mostlybeen developed with a focus on the design phase of accelerators, where high fidelity and physical correctness are critical, and computing times range from minutes to several hours for one simulation. Consequently, data collection with existing simulation codes becomes impractical with the growing demand for large datasets. In this paper, we introduce Cheetah, a PyTorch-based high-speed differentiable linear b","cbCaieXFYc8AtvXj","https://ap.wps.com/l/cbCaieXFYc8AtvXj","pdf",1349441,1,17,"English","en",105,"# Introduction\n## Challenges in data generation for ML in accelerators\n## Cheetah: PyTorch-based high-speed differentiable simulations\n## Applications and examples of Cheetah usage","[{\"question\":\"Why is bridging machine learning and accelerator physics challenging?\",\"answer\":\"ML methods require large training datasets and many environment interactions, while beam time is scarce and conventional high-fidelity simulations are computationally expensive.\"},{\"question\":\"What is Cheetah and what problem does it address?\",\"answer\":\"Cheetah is a PyTorch-based high-speed differentiable linear beam dynamics code that accelerates simulations by orders of magnitude and provides differentiable models for efficient gradient-based optimization.\"},{\"question\":\"How does Cheetah enable machine learning workflows for accelerators?\",\"answer\":\"It supports fast data collection and integrates with ML tooling, demonstrated through reinforcement learning training, gradient-based beamline tuning, gradient-based system identification, physics-informed Bayesian optimization priors, and surrogate modeling for space charge effects.\"}]","Bridging the gap between machine learning and particle accelerator physics with high-speed, differentiable simulations | PDF",1785723708,43,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":28},"bridging-the-gap-between-machine-learning-and-particle-accelerator-physics-with-high-speed-differentiable-simulations","",{"@graph":36,"@context":85},[37,54,68],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/bridging-the-gap-between-machine-learning-and-particle-accelerator-physics-with-high-speed-differentiable-simulations/119322/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":62,"encodingFormat":61,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-03",true,{"@type":65,"interactionType":66,"userInteractionCount":4},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"Why is bridging machine learning and accelerator physics challenging?","Question",{"text":75,"@type":76},"ML methods require large training datasets and many environment interactions, while beam time is scarce and conventional high-fidelity simulations are computationally expensive.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"What is Cheetah and what problem does it address?",{"text":80,"@type":76},"Cheetah is a PyTorch-based high-speed differentiable linear beam dynamics code that accelerates simulations by orders of magnitude and provides differentiable models for efficient gradient-based optimization.",{"name":82,"@type":73,"acceptedAnswer":83},"How does Cheetah enable machine learning workflows for accelerators?",{"text":84,"@type":76},"It supports fast data collection and integrates with ML tooling, demonstrated through reinforcement learning training, gradient-based beamline tuning, gradient-based system identification, physics-informed Bayesian optimization priors, and surrogate modeling for space charge effects.","https://schema.org",{"og:url":52,"og:type":87,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":89,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,128,131,135],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":46,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":46,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":46,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":136,"doc_module":4,"doc_module_name":46,"category_name":137,"show_sort_weight":106,"slug":138},19,"General","general"]