Fast chaos indicator from auto-differentiation for dynamic aperture optimization

J. Qiang, J. Wan, A. Qiang, Y. Hao · 2025

Read Fast chaos indicator from auto-differentiation for dynamic aperture optimization by J. Qiang, J. Wan, A. Qiang, Y. Hao (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2510-25196.txt.

Introduction

Ji Qiang, Jinyu Wan, Allen Qiang, and Yue Hao use auto slope math to flag chaos in beam paths fast, for use in ring design. To widen the safe zone of a beam ring, teams must know where paths turn wild. Their flag is the size of the tangent map, drawn from tracked paths run in a form that can be sloped by code.

In many cases, one or a few turns of the ring give enough of a read, they show. That cuts the cost of the wild check by a lot next to long runs. As a case, the flag drove the safe zone tune of a known light source ring design. Fast chaos reads can speed each design pass.

Catalog record

CREATORJ. Qiang, J. Wan, A. Qiang, Y. Hao
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE20 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2510-25196

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Fast chaos indicator from auto-differentiation for dynamic aperture optimization J. Qiang, J. Wan, A. Qiang, Y. Hao Abstract Automatic differentiation provides an efficient means of computing derivatives of complex functions with machine precision, thereby enabling differentiable simulation. In this work, we propose the use of the norm of the tangent map, obtained from differentiable tracking of particle trajectories, as a computationally efficient indicator of chaotic behavior in phase space. In many cases, a one - turn or few - turn tangent map is sufficient for this purpose, significantly reducing the computational cost associated with dynamic aperture optimization. As an illustrative application, the proposed indicator is employed in the dynamic aperture optimization of an ALS - U lattice design. 1 INTRODUCTION The dynamic aperture (DA) is a critical parameter in the design of circular particle accelerators, as it defines the region within which a charged particle remains stable over a specified number of turns. Particles whose initial positions extend beyond the DA boundary are lost from the system. A conventional approach to determining the DA involves tracking a large number of macroparticles with different initial positions over many turns [ 1 , 2 , 3 , 4 , 5 ] . The initial positions of the outermost stable macroparticles after tracking are then used to delineate the DA boundary. While accurate, this brute - force method is computationally intensive and time - consuming, making it a challenge for efficient DA optimization. In recent years, machine learning–based approaches have been proposed to accelerate DA optimization [ 6 , 7 , 8 , 9 ] . These methods construct a surrogate model from a relatively small set of training data, which is then employed to guide the search for configurations yielding a larger DA during the optimization process. The surrogate model is iteratively updated as optimization progresses, thereby improving its predictive accuracy. Although effective in reducing computation time, the performance of these methods depends strongly on the quality and representativeness of the initial training data, and they may require retraining for lattices exhibiting substantially different dynamical behavior. Other efficient methods, such as frequency map analysis (FMA) and the reversibility error method (REM), have also been studied in the accelerator community to accelerate DA estimation [ 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 ] . In the FMA approach, changes in the particle trajectory frequency, quantified as the tune diffusion rate, are employed as indicators of chaotic motion. A large tune diffusion rate corresponds to strongly chaotic behavior. In the REM approach, a particle is tracked forward for a specified number of turns and then tracked backward to its initial time or longitudinal coordinate. The separation between the initial and final phase - space coordinates provides a measure of sensitivity to perturbations from numerical round - off errors. For regular trajectories, this separation grows as a power law with respect to the number of steps, whereas for chaotic trajectories it grows exponentially. Automatic differentiation (AD) is a computational technique that enables the efficient evaluation of derivatives of complex functions with respect to a given set of parameters, without resorting to numerical approximation or symbolic differentiation. In the artificial intelligence and machine learning (AI/ML) community, AD has been widely employed for training the parameters of neural networks [ 18 , 19 , 20 ] . More recently, AD has found applications in particle accelerator physics, where it has been utilized to quantify the sensitivity of simulation results to accelerator lattice parameters and to expedite optimization procedures [ 21 , 22 , 23 , 24 , 25 ] . In particle dynamical systems, a hallmark of chaotic trajectories is the pronounced sensitivity of the final particle position to small variations in the initial coordinates. This sensitivity can be quantified by computing the derivatives of the final positions with respect to the initial coordinates, which form the Jacobian matrix (also referred to as the tangent map). Using AD, these derivatives and the corresponding tangent map can be obtained directly during simulation with machine precision. In this work, we propose employing the norm of the tangent map, computed via differentiable particle tracking, as a fast and reliable indicator of chaotic trajectories. By exploiting one - turn or few - turn tangent matrices, this method significantly reduces computation time while maintaining accuracy, thereby enabling more efficient DA optimization. The remainder of this paper is organized as follows. Section 2 introduces the forward mode of automatic differentiation. Section 3 describes the tangent map norm indicator. Section 4 presents a benchmark example based on the Hénon–Heiles potential. Section 5 demonstrates the application of the proposed fast indicator to dynamic aperture optimization. Finally, Section 6 summarizes the conclusions. 2 Forward mode automatic differentiation The automatic differentiation (AD) module used in this study is based on the Truncated Power Series Algebra (TPSA) method but is limited to first derivatives [ 26 ] . This restriction substantially reduces the computational complexity of the arithmetic operations and decreases execution time by orders of magnitude, while also simplifying the module’s implementation. In the artificial intelligence and machine learning (AI/ML) community, this approach is equivalent to the dual - number implementation of forward - mode AD [ 27 ] . In TPSA, the computation of a function’s derivatives with respect to its variables is reformulated as the evaluation of the function on a vector - like TPSA variable according to predefined algebraic rules. For a function f(x_{1},x_{2},\ldots,x_{n}) with n independent variables and its first derivatives, we define a TPSA vector variable F=\left(f,f_{x_{1}},f_{x_{2}},\ldots,f_{x_{n}}\right), where f is the function value and f_{x_{i}}\equiv\partial f/\partial x_{i} is the partial derivative with respect to variable x_{i} . For the independent variable x_{i} , the corresponding TPSA vector is X_{i}=\left(x_{i},0,0,\ldots,1,\ldots\right), where the value 1 appears at the (i+1)^{\mathrm{th}} element, indicating the derivative with respect to x_{i} . The elementary operations for two TPSA vectors F and G are defined as follows: Addition: F+G=\left(f+g,\;f_{x_{1}}+g_{x_{1}},\;f_{x_{2}}+g_{x_{2}},\ldots,f_{x_{n}}+g_{x_{n}}\right), (1) Multiplication: FG=\left(fg,\;gf_{x_{1}}+fg_{x_{1}},\;gf_{x_{2}}+fg_{x_{2}},\ldots,gf_{x_{n}}+fg_{x_{n}}\right), (2) Division: \frac{F}{G}=\left(\frac{f}{g},\;\frac{f_{x_{1}}g-g_{x_{1}}f}{g^{2}},\;\frac{f_{x_{2}}g-g_{x_{2}}f}{g^{2}},\;\ldots,\;\frac{f_{x_{n}}g-g_{x_{n}}f}{g^{2}}\right), (3) Function mapping: h(F)=\left(h(f),\;h_{f}f_{x_{1}},\;h_{f}f_{x_{2}},\ldots,h_{f}f_{x_{n}}\right), (4) where h_{f}\equiv\partial h/\partial f . By implementing these operational rules, we define a specialized TPSA vector data type along with corresponding arithmetic and standard mathematical functions. In the differentiable particle - tracking program, the particle phase - space coordinates—normally stored as double - precision variables—are instead declared using this data type. As a result, the Jacobian matrix, or tangent map, is obtained automatically through the simulation without requiring separate derivative calculations. 3 Norm of tangent map as chaos indicator For a particle moving inside an accelerator, the long-term behavior of its trajectory can be characterized using the maximal Lyapunov exponent [ 28 ] . For regular motion, the separation between two initially nearby particles grows linearly with respect to the distance s when averaged over long distances. For chaotic motion, the separation grows exponentially with s , i.e., ||\Delta\zeta(s)||\propto||\Delta\zeta(0)||\,\exp(\lambda s), (5) where ||\Delta\zeta(0)|| denotes the initial separation, ||\Delta\zeta(s)|| the separation after traveling a distance s , and \lambda the maximal Lyapunov exponent. This exponent is formally defined as \lambda=\lim_{s\to\infty}\,\lim_{\Delta\zeta(0)\to 0}\frac{1}{s}\ln\left(\frac{||\Delta\zeta(s)||}{||\Delta\zeta(0)||}\right). (6) The evolution of the deviation vector \Delta\zeta(s) can be expressed in terms of the tangent map (Jacobian matrix) M(s) as \Delta\zeta(s)=M(s)\,\Delta\zeta(0). (7) Thus, the relative separation becomes \frac{||\Delta\zeta(s)||}{||\Delta\zeta(0)||}=\frac{||M(s)\Delta\zeta(0)||}{||\Delta\zeta(0)||}. (8) Here,

Read the complete text