Controlling the magnetic field of a magnetic confinement device using neural networks
By employing a plasma confinement neural network with reinforcement learning to generate control signals for magnetic confinement devices, the challenges of plasma confinement and stability are addressed, enhancing the prospects for controlled nuclear fusion.
Patent Information
- Application Number
- JP2024500372
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-07-08
- Filing Date
- 2022-07-08
- Publication Date
- 2025-04-03
- Estimated Expiration
- 2042-07-08
AI Technical Summary
Current magnetic confinement devices, such as tokamaks, face challenges in efficiently controlling the magnetic field to confine and stabilize plasma, which is crucial for achieving controlled nuclear fusion.
The implementation of a plasma confinement neural network that uses reinforcement learning techniques to generate control signals for the magnetic field, allowing for autonomous learning of effective control strategies based on observations of the plasma state.
This approach enables precise control of the magnetic field, improving plasma confinement and stability, and potentially leading to more efficient and sustainable nuclear fusion.
Smart Images

Figure 0007656771000005 
Figure 0007656771000006 
Figure 0007656771000007
Abstract
Description
[Technical field]
[0001] This specification relates to processing data using machine learning models. [Background technology]
[0002] A machine learning model receives inputs and generates outputs, e.g., predicted outputs, based on the received inputs. Some machine learning models are parametric models, which generate outputs based on the received inputs and the values of the parameters of the model.
[0003] Some machine learning models are deep models that use multiple layers of the model to generate an output related to a received input. For example, a deep neural network is a deep machine learning model that includes an output layer and one or more hidden layers that each apply a nonlinear transformation to the received input to generate an output. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] Abdolmaleki et al., “Maximum a Posteriori Policy Optimization”, arXiv:1806.06920, 2018 [Non-Patent Document 2] Volodymyr Minh et al., “Asynchronous methods for deep reinforcement learning,” arXiv:1602.01783v2, 2016 [Non-Patent Document 3] Degrave, J., Felici, F., Buchli, J. et al., "Magnetic control of tokamak plasmas through deep reinforcement learning", Nature 602, pp. 414-419 (2022) Summary of the Invention [Means for solving the problem]
[0005] This specification generally describes a system implemented as a computer program on one or more computers at one or more locations that uses a plasma confinement neural network to generate control signals for controlling a magnetic field to confine a plasma within a chamber of a magnetic confinement device. The magnetic confinement device can be, for example, a tokamak having a toroidal shaped chamber.
[0006] In one aspect, a method is described that is executed by one or more data processing devices to generate a control signal for controlling a magnetic field for confining a plasma in a chamber of a magnetic confinement device. The method includes obtaining, at each of a plurality of time steps, observations that characterize a current state of a plasma in the chamber of the magnetic confinement device, and processing an input including the observations that characterize the current state of the plasma in the chamber of the magnetic confinement device using a plasma confinement neural network. The plasma confinement neural network has a plurality of network parameters and is configured to process the input including the observations according to the network parameters to generate a magnetic control output that characterizes a control signal for controlling the magnetic field of the magnetic confinement device. The method further includes generating a control signal for controlling the magnetic field of the magnetic confinement device based on the magnetic control output.
[0007] In some implementations, the magnetic control output characterizes a respective voltage applied to each of a plurality of control coils of a magnetic confinement device.
[0008] In some implementations, the magnetic control output defines, for each of a plurality of control coils of the magnetic confinement device, a respective score distribution over a set of possible voltages that may be applied to the control coil.
[0009] In some implementations, generating a control signal for controlling the magnetic field of the magnetic containment device based on the magnetic control output includes, for each of a plurality of control coils of the magnetic containment device, selecting a voltage from a respective score distribution over a set of possible voltages that may be applied to the control coil, and generating a control signal for applying the sampled voltage to the control coil.
[0010] The method may further include determining, for each of the plurality of time steps, a time step reward characterizing an error between (i) a current state of the plasma and (ii) a target state of the plasma, and training neural network parameters of the plasma confinement neural network with the reward using reinforcement learning techniques.
[0011] In some implementations, determining the time step reward for one or more of the plurality of time steps includes determining, for each of one or more plasma features characterizing the plasma, a respective error measuring a difference between (i) a current value of the plasma feature at the time step and (ii) a target value of the plasma feature at the time step. The method further includes determining the time step reward based at least in part on the respective error corresponding to each of the one or more plasma features at the time step.
[0012] The method involves, for one or more of the plurality of time steps, determining a time step reward based on respective errors corresponding to each of the plasma characteristics at the time step including determining the time step reward as a weighted linear combination of the respective errors corresponding to the plasma characteristics at the time step.
[0013] In some implementations, a respective target value for each of one or more of the characteristics of the plasma is changed between time steps.
[0014] In some implementations, at each of a plurality of time steps, the input to the plasma confinement neural network includes data defining respective target values for each of the plasma characteristics at the time step in addition to the observations for the time step.
[0015] In some implementations, the characteristics of the plasma include one or more of the stability of the plasma, the plasma current of the plasma, the shape of the plasma, the position of the plasma, the area of the plasma, the number of domains of the plasma, the distance between droplets of the plasma, the elongation of the plasma, the radial position of the center of the plasma, the radius of the plasma, the triangularity of the plasma, or the limit point of the plasma.
[0016] In some implementations, for one or more of the plurality of time steps, determining the time step reward includes determining a respective current value of each of one or more device features characterizing a current state of the magnetic confinement device, and determining the time step reward based at least in part on the respective current value of the one or more device features at the time step.
[0017] In some implementations, the device features include a number of x-points within a chamber of the magnetic confinement device, a respective current in each of one or more control coils of the magnetic confinement device, or both a number of x-points within the chamber of the magnetic confinement device and a respective current in each of one or more control coils of the magnetic confinement device.
[0018] In some implementations, the magnetic confinement device is a simulation of a magnetic confinement device. The method may further include determining, at a last time step of the plurality of time steps, that a physical feasibility constraint of the magnetic confinement device is violated at the time step, and terminating the simulation of the magnetic confinement device in response to determining that a physical feasibility constraint of the magnetic confinement device is violated at the time step.
[0019] In some implementations, determining that a physical feasibility constraint of the magnetic confinement device is violated at the time step includes one or more of the following steps: determining that the density of the plasma at the time step does not meet a threshold value, determining that the plasma current of the plasma at the time step does not meet a threshold value, or determining that the respective current of one or more of the control coils does not meet a threshold value.
[0020] In some implementations, the reinforcement learning technique is an actor-critic reinforcement learning technique. In further implementations, training network parameters of the plasma confinement neural network with the reward includes jointly training the plasma confinement neural network and a critic neural network with the reward using an actor-critic reinforcement learning technique. The critic neural network is configured to process inputs including critic observations of the time steps to generate outputs characterizing a cumulative measure of rewards predicted to be received after the time steps.
[0021] In some implementations, actor-critic reinforcement learning techniques are maximum a posteriori policy optimization (MPO) techniques.
[0022] In some implementations, the actor-critic reinforcement learning technique is a distributed actor-critic reinforcement learning technique.
[0023] In some implementations, the plasma confinement neural network generates an output using fewer computational resources than are required by the critic neural network to generate the output.
[0024] In some implementations, the plasma confinement neural network generates an output with a lower latency than required by the critic neural network to generate the output.
[0025] In some implementations, the plasma confinement neural network has fewer network parameters than the critic neural network.
[0026] In some implementations, the plasma confinement neural network is a feedforward neural network and the critic neural network is a recurrent neural network.
[0027] In some implementations, the critic neural network is configured to process critic observations that have a higher dimensionality and contain more data than the observations processed by the plasma confinement neural network.
[0028] In some implementations, at each of a plurality of time steps, the observations characterizing the current state of the plasma in the chamber of the magnetic confinement device include one or more of a respective magnetic flux measurement obtained from each of the one or more wire loops, a respective magnetic field measurement obtained from each of the one or more magnetic field probes, or a respective current measurement from each of the one or more control coils of the magnetic confinement device.
[0029] In some implementations, the magnetic confinement device is a simulated magnetic confinement device.
[0030] The method may further include, after training the plasma confinement neural network based on controlling the simulated magnetic confinement device using the plasma confinement neural network, using the plasma confinement neural network to control a magnetic field for confining the plasma in a chamber of the real-world magnetic confinement device by processing observations generated from one or more sensors of the real-world magnetic confinement device and using magnetic control outputs generated by the plasma confinement neural network to generate real-world control signals for controlling the magnetic field of the real-world magnetic confinement device.
[0031] In some implementations, the magnetic confinement device is a tokamak and the chamber of the magnetic confinement device has a toroidal shape.
[0032] In some implementations, the plasma is used to generate electrical power through nuclear fusion.
[0033] In a second aspect, one or more non-transitory computer storage media are provided that store instructions that, when executed by one or more computers, cause the one or more computers to perform operations of the method set forth above.
[0034] In a third aspect, there is provided a system including one or more computers and one or more storage devices communicatively coupled to the one or more computers, the one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform operations of the method set out above.
[0035] In a fourth aspect, a method is provided that is executed by one or more data processing devices to generate a control signal for controlling a magnetic field for confining a plasma in a chamber of a magnetic confinement device. The method includes obtaining, at each of a plurality of time steps, observations characterizing a current state of a plasma in the chamber of the magnetic confinement device, and processing an input including the observations characterizing the current state of the plasma in the chamber of the magnetic confinement device using a trained plasma confinement neural network. The trained plasma confinement neural network has a plurality of network parameters and is configured to process the input including the observations in accordance with the network parameters to generate a magnetic control output characterizing a control signal for controlling the magnetic field of the magnetic confinement device. The method further includes generating a control signal for controlling the magnetic field of the magnetic confinement device based on the magnetic control output.
[0036] The trained plasma confinement neural network may be used to control a real-world magnetic confinement device. More specifically, the trained plasma confinement neural network may be used to control a magnetic field for confining a plasma in a chamber of the real-world magnetic confinement device by processing observations generated from one or more sensors of the real-world magnetic confinement device and using the magnetic control output generated by the plasma confinement neural network to generate a real-world control signal for controlling the magnetic field of the real-world magnetic confinement device. In some implementations, the magnetic control output defines, for each control coil, a respective score distribution over a set of possible voltages that may be applied to the control coil. Then, a voltage applied to the control coil may be sampled from the score distribution.
[0037] In some implementations, the plasma confinement neural network is at least partially trained using a simulated magnetic confinement device, i.e., using a simulation of a real-world magnetic confinement device.
[0038] The subject matter described herein can be implemented in particular embodiments to realize one or more of the following advantages.
[0039] Magnetic confinement devices, such as tokamaks, are promising candidates for the generation of sustainable electricity through nuclear fusion. Efficient power generation requires precise manipulation of the magnetic field of the magnetic confinement device to control the shape of the plasma in the chamber of the magnetic confinement device. Controlling the shape of the plasma can be a challenging problem due to, for example, potential instabilities in the plasma.
[0040] The system described herein uses a plasma confinement neural network to implement a control strategy for selecting a control signal for controlling the magnetic field of a magnetic confinement device. The plasma confinement neural network can be trained using reinforcement learning techniques to learn effective control strategies, for example, based on simulated trajectories that characterize the behavior of a simulated magnetic confinement device under the control of the plasma confinement neural network. The system can train the plasma confinement neural network based on rewards specified by control objectives, for example, characterizing desired characteristics of the plasma (e.g., the shape of the plasma) and / or operational constraints on the magnetic confinement device (e.g., the maximum allowable current of the control coil). By training the plasma confinement neural network based on these rewards, the system enables the plasma confinement neural network to autonomously discover novel solutions for achieving the control objectives.
[0041] The system described herein represents a significant departure from existing controller designs, where strict target plasma states are specified and a combination of controllers is designed to first stabilize the plasma and then track the desired plasma state, and tuned by successive loop closures. In contrast to existing controller designs, which require significant development time and manual fine-tuning, the system can autonomously train a plasma confinement neural network by reinforcement learning to learn an effective control strategy. Once the neural network is trained, the system described herein can achieve performance comparable to or better than existing controllers, while allowing for more efficient use of resources (e.g., computational resources). The system can significantly shorten and simplify the process of generating new magnetic field control strategies (i.e., by autonomously learning control strategies using reinforcement learning).
[0042] The system described herein can use actor-critic reinforcement learning techniques to jointly train the plasma confinement neural network together with the critic neural network. The architectural complexity of the plasma confinement neural network is constrained by the operational requirements for generating magnetic control outputs with low latency (e.g., at rates of 10 kHz or greater). In contrast, the critic neural network is only used during training and thus does not have to meet the same operational constraints. Thus, the system can implement a critic neural network with a significantly more complex neural network architecture that allows the critic neural network to learn the dynamics of the magnetic confinement device more accurately, and thus allows the plasma confinement neural network to not only be trained, but also trained in fewer training iterations with improved performance.
[0043] The details of one or more embodiments of the subject matter herein are set forth in the accompanying drawings and the description below. Other features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. [Brief description of the drawings]
[0044] [Figure 1] FIG. 1 illustrates an exemplary magnetic field control system. [Diagram 2] 1 is a flow diagram of an exemplary process for generating control signals using a plasma confinement neural network and training network parameters with rewards. [Diagram 3] FIG. 1 illustrates an example process for determining a reward that may be used to train network parameters of a plasma confinement neural network. [Figure 4] FIG. 13 is a diagram of an example simulation of a magnetic confinement device that may be used during training of a plasma confinement neural network. [Diagram 5] FIG. 1 is a diagram of an exemplary training engine using actor-critic reinforcement learning techniques. [Figure 6] This is a diagram of Tokamak a Configuration Variable (TCV). [Figure 7A] 11A-11C are diagrams of experimental data showing control of multiple plasma features using a magnetic field control system deployed on a TCV. [Figure 7B] 11A-11C are diagrams of experimental data showing control of multiple plasma features using a magnetic field control system deployed on a TCV. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0045] Like reference numbers and designations in the various drawings indicate like elements.
[0046] 1 illustrates an exemplary magnetic field control system 100 that can use a plasma confinement neural network 102 to control the magnetic field of a magnetic confinement device 110. The magnetic field control system 100 is an example of a system implemented as a computer program on one or more computers at one or more locations in which the systems, components, and techniques described below are implemented.
[0047] Controlled nuclear fusion, the fundamental process behind fusion reactors, is a promising solution for sustainable energy. Fusion reactors can generate electricity with little to no radioactive waste using heat generated by fusion reactions occurring in a high-temperature plasma. Aneutronic fusion reactors have the potential to achieve even higher efficiency, as they can generate power directly from charged particles emitted from the plasma. However, one of the most challenging problems in achieving controlled fusion is containing the high-temperature, high-pressure plasma in a suitable chamber. Due to the extreme temperatures (e.g., tens to hundreds of millions of degrees Celsius), the plasma cannot come into direct contact with any surface of the chamber and must be suspended in the vacuum of the chamber, which is further complicated by the inherent instabilities of plasma.
[0048] However, because plasma is an ionized gas that conducts electricity, it generates strong magnetic fields and can therefore be manipulated by strong magnetic fields. Magnetic confinement devices 110, such as tokamaks, utilize a time-varying configuration of the magnetic field to shape and confine the plasma into various plasma configurations. In tokamaks, such as the Tokamak a Configuration Variable (TCV) and ITER, the plasma is typically confined in a toroidal configuration (e.g., doughnut-shaped) that matches the toroidal shape of the chamber. Some other potential candidates for fusion reactor confinement devices 110 are spherical tokamaks (e.g., Mega Ampere Spherical Tokamak (MAST)), stellarators (e.g., Wendelstein 7-X), field-reversed configurations (e.g., Princeton Field-Reversed Configuration (PFRC)), and spheromaks, among others.
[0049] In general, the chamber geometry of the magnetic confinement device 110 constrains the possible plasma configurations. The ultimate goal of the control system 100 is to adjust the magnetic field in the confinement device 110 to establish a stable plasma configuration with the desired plasma current, position, and shape, i.e., to establish plasma equilibrium. At equilibrium, sustained nuclear fusion can proceed. Several aspects of the plasma and the confinement device 110 itself, such as the stability and energy exhaust of the plasma, degradation of the sensors of the confinement device, etc., can be studied at equilibrium, which can be crucial information for research and development.
[0050] Conventional magnetic controllers have typically addressed the high-dimensional, high-frequency, nonlinear problem of plasma confinement using a set of independent single-input, single-output proportional-integral-derivative (PID) controllers that regulate various characteristics of the plasma. The set of PID controllers must be designed to avoid mutual interference and are often further augmented by an outer control loop that performs real-time estimation of the plasma equilibrium. Other types of linear controllers as well as nonlinear controllers have been employed. While these magnetic controllers have been successful in certain circumstances, they require significant engineering effort and expertise whenever the target plasma configuration is changed. Furthermore, a magnetic controller must be designed for each confinement device 110 and its unique set of controls (e.g., a set of control coils), which can be a daunting task as successive generations of confinement devices 110 begin operation.
[0051] Conversely, because the control system 100 utilizes a neural network architecture, it can be configured as a nonlinear feedback controller of any confinement device 110. That is, the plasma confinement neural network 102 can autonomously learn suboptimal control strategies to efficiently command a set of controls, resulting in a significant reduction in design effort compared to conventional magnetic controllers. A single, computationally low-cost control system 100 can replace the complex nested control architecture of magnetic controllers. This approach can have unprecedented flexibility and generality by specifying the control objectives at a high level, which shifts the focus from how the confinement device 110 should be realized to what the confinement device 110 should achieve. An overview of the magnetic field control system 100 is outlined below.
[0052] Referring to the elements of FIG. 1, the plasma confinement neural network 102 includes a set of network parameters 104 that direct how the neural network 102 processes data. Plasma confinement is a highly time-dependent procedure since it may include multiple transient periods, such as an initial plasma formation phase, followed by stabilization to plasma equilibrium, and a final plasma-breakdown phase. Due to inherent instabilities of plasma, the neural network 102 may need to respond on short timescales to correct these instabilities. The control system 100 may be utilized for all stages involved in plasma confinement, although in some implementations the control system 100 is constrained to certain stages. For example, a conventional magnetic control device may handle the initial plasma formation phase, and control may be switched over ("handover") to the control system 100 at a predetermined time.
[0053] Thus, the plasma confinement neural network 102 can be configured to repeatedly process data at each of multiple time steps, which typically correspond to a particular control rate of the confinement device 110. The control rate is essentially the operation speed (e.g., latency) of the confinement device 110. In general, the neural network 102 can be configured for any desired control rate, even variable and non-uniform control rates. As will be described in more detail, the control system 100 can utilize a particular neural network architecture for fast execution, making the control system 100 well suited for deployment as a real-time controller.
[0054] At each time step, the control system 100 executes a control loop. The neural network 102 receives observations 114 that characterize a current state 112 of the plasma in the chamber of the magnetic confinement device 110. A reward 308 may be determined for the time step based on the current plasma state 112. In general, the control system 100 determines the reward 308 by evaluating the current plasma state 112 against a target plasma state 118, which may change between time steps. In this case, the target plasma state 118 may also serve as a set point for the control system 100 at a particular time step.
[0055] The observations 114 are then processed by the neural network 102 according to the network parameters 104 to generate the magnetic control outputs 106. The magnetic control outputs 106 characterize the control signals 108 for adjusting the magnetic field of the magnetic confinement device 110. As a result, the magnetic field can be controlled by the control signals 108 in response to the observations 114 at the time step, which directly affects the evolution of the current plasma state 112. The control system 100 then repeats the control loop for the next time step. The rewards of the time step can be utilized by the training engine 116 to train the network parameters 104 of the neural network 102, for example, using reinforcement learning techniques.
[0056] In some implementations, the control system 100 generates control signals 108 for a simulated magnetic confinement device 110 (depicted in FIG. 4). That is, the control system 100 trains the plasma confinement neural network 102 based on simulated trajectories that characterize the behavior of the simulated confinement device 110. After the plasma confinement neural network 102 is trained based on the simulated trajectories, the control system 100 may be deployed (e.g., compiled into an executable file) to control the real-world magnetic confinement device 110. In particular, the control system 100 may be run “zero-shot” on real-world hardware such that tuning of the neural network 102 is not required after training.
[0057] Optionally, the control system 100 can perform further training of the plasma confinement neural network 102 based on real-world trajectories that characterize the behavior of the real-world magnetic confinement device 110. Training the neural network 102 based on simulated trajectories generated by controlling the simulated confinement device 110 (i.e., instead of the real-world confinement device) can save resources (e.g., energy resources) required to operate the real-world confinement device 110. Training the neural network 102 based on simulated trajectories can also reduce the likelihood that the real-world confinement device 110 will be damaged as a result of an inappropriate control signal 108. The detailed process of generating the control signal 108 and reward 308 required for training is described below.
[0058] FIG. 2 is a flow diagram of an exemplary process 200 for generating a control signal using a plasma confinement neural network having a plurality of network parameters. The control signal controls a magnetic field for confining a plasma in a chamber of a magnetic confinement device. Reference is also made to FIG. 3, which shows an exemplary process 300 for determining a reward that can be used to train a network parameter of a plasma confinement neural network. For convenience, the processes 200 and 300 are described as being performed by a system of one or more computers located at one or more locations. For example, a magnetic field control system appropriately programmed according to the present specification, such as the magnetic field control system 100 of FIG. 1, can perform the processes 200 and 300.
[0059] Referring to FIG. 2, the system obtains (202) observations that characterize the current state of the plasma in the chamber of the magnetic confinement device. In general, the observations include a set of measurements obtained from various sensors and instruments of the magnetic confinement device. Advanced confinement devices can be equipped with numerous sensors, e.g., magnetic field sensors, current sensors, optical sensors and cameras, stress / strain sensors, bolometers, temperature sensors, etc., many of which may be highly correlated with each other. The available measurements may be used by the system to directly and / or indirectly characterize the current plasma state. It should be noted that due to limitations of certain sensors and / or instruments, the system may not be able to obtain all measurements in real time. Nevertheless, these measurements may be used for post-processing (e.g., after the last time step) in conjunction with real-time measurements at certain time steps to evaluate performance. As some specific examples, the observations may include measurements of the magnetic field or flux in the magnetic confinement device, or current measurements from the control coil (i.e., of the current in the control coil).
[0060] The system determines 204 a reward for the time step based at least on the current state of the plasma. The reward may be specified to be minimal to give the system maximum flexibility to achieve the desired outcome. The reward may also penalize the system if it reaches an undesired end state that is outside the operating limits of the containment device, e.g., maximum control coil current / voltage, edge safety factor, etc.
[0061] 3, the reward 308 may indicate whether the plasma characteristics of the current plasma state 112 are comparable to the plasma characteristics of the plasma goal state 118. For example, the plasma characteristics may include plasma stability, plasma current, plasma elongation, etc. Plasma stability may refer to the stability of position, e.g., vertical position, and may be measured by the rate of change of position over time. Plasma current refers to the current in the plasma. For example, plasma elongation in a tokamak may be defined as the plasma height divided by the plasma width. Other plasma characteristics include the shape of the plasma, e.g., the shape of a vertical cross-section of the plasma, the position of the plasma, e.g., the vertical or radial position of the axis or center of the plasma, the area of the plasma, e.g., the cross-sectional area, the number of plasma domains or droplets, a measure of the distance between plasma droplets (if multiple droplets are present), the width of the cross-section of the plasma, e.g., the radius of the (cross-section of the) plasma, which may be defined as half the radial width, the triangle of the plasma, which may be defined as the radial position of the highest point relative to the radial center position (upper triangle) or as the radial position of the lowest point relative to the radial center position (lower triangle) or as the average of the upper triangle and the lower triangle, and the limit point of the plasma, more specifically the distance between an actual limit point, such as a wall of a confinement device or point X, and a target limit point.
[0062] The reward 308 may generally be expressed as a numerical value that characterizes a respective error 416 between the current plasma state 112 and the target plasma state 118. In some implementations, each error 416 measures the difference between one or more current values 410 of the plasma characteristic and one or more target values 412 of the plasma characteristic. The error between the current value 410 and the target value 412 of each plasma characteristic may be characterized by any suitable error metric, e.g., mean square error, absolute difference, etc. Additionally, the reward 308 may be a weighted linear combination of each error 416 corresponding to the plasma characteristic. Proper weighting of the errors 416 in the reward 308 allows the system to emphasize certain plasma characteristics over other characteristics, e.g., plasma current, plasma position, etc.
[0063] A current value 410 of the current plasma state 112 may be determined from a set of measurements included in the observations 114. Due to the strong coupling between the plasma and the magnetic field in the chamber, real-time magnetic field measurements may be particularly effective in characterizing the current plasma state 112. For example, a wire loop may measure the magnetic flux in a confinement device, a magnetic field probe may measure the local magnetic field in the device, and current may be measured in an active control coil. However, it should be noted that certain features of the current plasma state 112 may not be directly observable for a particular confinement device (e.g., the plasma shape and position). These features may be inferred from available measurements, for example, by reconstructing the features from relevant quantities. In some implementations, the system uses a magnetic balance reconstruction (e.g., the LIUQE code) that solves an inverse problem to find a plasma current distribution that respects a force balance (e.g., the Grad-Shafranov equation) that best matches the magnetic field measurements at a particular time step (e.g., in a least-squares sense).
[0064] Alternatively, the target plasma state 118 target value 412 may be specified directly from time-varying and / or static characteristic targets 304. The targets 304 may be specified within physically feasible limits to ensure that the system is not driven towards an unreachable state.
[0065] Target values 412 associated with the target plasma state 118 may also be included as input data to the plasma confinement neural network. As described above, the target values 412 may serve as set points for the system at each time step. Thus, the system may control the plasma evolution by varying the target values 412 at each time step such that the current plasma state 112 is driven toward a plasma state having those particular values. The target values 412 at each time step may correspond to a pre-specified routine or may be specified on the fly, allowing a user to manually control the plasma evolution when the system is deployed.
[0066] The reward 308 may also be based at least in part on current values 408 of one or more device features that characterize a current state of the magnetic confinement device 110. For example, the device features may include the number of X points in the chamber, the respective currents in one or more control coils, etc. In general, the current device values 408 may be obtained from measurements included in the observations 114.
[0067] The component of the reward 308 that corresponds to the current device characteristic value 408 may be determined from a highly nonlinear process. For example, the portion of the reward 308 that is based on the current device characteristic value 408 may be, for example, zero until the control coil current exceeds a limit, at which point it may be a large negative value, etc. Thus, the reward 308 may penalize the system if the containment device falls outside of a desired operating range.
[0068] Returning to Figure 2, the system processes 206 the observations (and possibly target values related to a target plasma state) using the plasma confinement neural network according to the network parameters to generate a magnetic control output, which characterizes a control signal for controlling the magnetic field of the magnetic confinement device.
[0069] The system then generates (208) a control signal for controlling the magnetic field based on the magnetic control output.
[0070] It should be noted that steps (206) and (208) are not necessarily independent processes, since the plasma confinement neural network can also directly output the control signal as the magnetic control output.
[0071] Although other methods are possible, most state-of-the-art magnetic confinement devices operate by passing current through a set of control coils to manipulate the magnetic field. In this case, the system can actuate the control coils by applying a voltage, which changes the amount of current and therefore the resulting magnetic field. The voltage can be provided by a suitable power supply.
[0072] For example, the magnetic control output can specify a respective voltage to be applied to each of the control coils, and the system can generate appropriate control signals to apply the respective voltages to the control coils.
[0073] In some implementations, the magnetic control output characterizes a respective score distribution over a set of possible voltages that may be applied to each of the control coils. In this case, the magnetic control output may specify the mean and standard deviation of the voltages for each score distribution modeled as a Gaussian distribution. The system may then generate appropriate control signals that sample voltages from each score distribution and apply the sampled voltages to each control coil in the system.
[0074] In a further implementation, the system generates control signals that apply the average of the voltages of the score distribution to each control coil of the system, i.e., in a deterministic manner. A stochastic procedure that uses voltages sampled from the score distribution may be desirable only for training purposes so that the system can explore successful control options. This procedure is particularly suitable for running on a simulated magnetic containment device (depicted in FIG. 4) where there is no risk of damaging the containment device if the system explores faulty options. A deterministic procedure that uses the average of the voltages of the score distribution is predictable and may therefore be more suitable for deployment in a real-world magnetic containment device. Furthermore, during training, the deterministic procedure may be monitored in parallel to ensure optimal performance when the system is eventually deployed in a real-world containment device.
[0075] Although the above example describes a voltage actuation approach, the magnetic control outputs could also specify respective currents for the control coils. The system could then track the current as a current controller.
[0076] It should be noted that the exact number, placement, and extent of the control coils will depend on the specific design of the confinement device. For a tokamak, these may include poloidal and toroidal coils to control the poloidal and toroidal magnetic fields, ohmic transformer coils to heat and modulate the plasma, fast coils to generate high-frequency fields, and a variety of other coils that may be used for many different purposes. However, the versatility of plasma confinement neural networks allows the system to autonomously learn suboptimal control strategies for any confinement device, since the control objectives can be specified at a high level, i.e., in terms of the target plasma state objectives.
[0077] The system trains (210) network parameters of the plasma confinement neural network with the reward using a reinforcement learning technique. The system may utilize any suitable reinforcement learning technique to train the network parameters. In general, the system updates the network parameters to optimize the control strategy with respect to the reward that characterizes the trajectory of the plasma and magnetic confinement device. In some implementations, the plasma confinement neural network is jointly trained together with the critic neural network using a reward-based actor-critic reinforcement learning technique (depicted in FIG. 5). In particular, the system may determine the gradient of the reward-dependent reinforcement learning objective function (with respect to the parameters of the plasma confinement neural network and the critic neural network), e.g., using backpropagation. The system may then use the gradient to adjust the current parameter values of the plasma confinement neural network and the critic neural network, e.g., using a suitable gradient descent optimization technique, e.g., RMSprop or Adam's update rule.
[0078] As described above, the system can train the network parameters of the neural network on simulated trajectories of a magnetic confinement device, after which the system can generate control signals for an actual magnetic confinement device, e.g., a tokamak.
[0079] Figure 4 illustrates an example simulator 500 that can simulate the trajectory of a magnetic confinement device 110 for use in training a magnetic field control system, such as the magnetic field control system 100 of Figure 1. The simulator 500 is an example of a system implemented as a computer program on one or more computers at one or more locations in which the systems, components, and techniques described below are implemented.
[0080] The simulator 500 has sufficient physical fidelity to describe the evolution of the current plasma state 112 at each time step while remaining computationally feasible for training. This allows for zero-shot transfer to real-world hardware. Note that the simulator 500 can evolve the plasma on a timescale shorter than the control rate of the confinement device 110, since the control rate corresponds to the latency in generating the control signals 108 in response to the observations 114. The timescale of the simulator 500 is typically specified based on numerical considerations such as convergence, accuracy, and numerical stability.
[0081] In some implementations, the simulator 500 uses a free boundary plasma evolution model to model the effect of the control coil voltage on the plasma, for example, using the FGE software package. As mentioned above, the control coil voltage can be regulated by a control signal 108, which facilitates the interaction of the magnetic field control system 100 with the simulator 500. In the free boundary model, the current in the control coil and the passive conductors evolves under the influence of an externally applied voltage from a power source and induced voltages due to time-varying currents in other conductors and the plasma itself. The conductors can be described by a circuit model in which the resistance is a known constant and the mutual inductance can be calculated analytically.
[0082] Assuming an axisymmetric plasma configuration, the simulator 500 calculates the Lorentz force
[0083]
number
[0084] , i.e., plasma current density
[0085]
number
[0086] and magnetic field
[0087]
number
[0088] The plasma can be modeled using the Grad-Shafranov equation, which arises from the balance between the interaction between the plasma current and the pressure gradient in the plasma, ∇p. p The evolution of can be modeled by simulator 500 using a lumped-parameter equation based on a generalized Ohm's law for magnetohydrodynamics. For this model, the total plasma resistance R p and the total plasma self-inductance L p is a free parameter.
[0089] In some implementations, simulator 500 does not model the transport of radial pressure and current density from heat and current drive sources, although more sophisticated frameworks may include these effects. Instead, simulator 500 models the plasma current I p and two free parameters, namely, (i) the normalized plasma pressure β p , i.e., the ratio of the kinetic pressure to the magnetic pressure, and (ii) a safety factor q at the plasma axis that controls the peakedness of the current density. A The radial profile of the plasma can be modeled as a polynomial whose coefficients are constrained by:
[0090] Plasma evolution parameter R p , L p , β p , and q Acan be varied over a range appropriate to account for uncontrollable experimental conditions in real-world magnetic confinement device 110, and the variations can be identified from experimental data. Other parameters can also be varied as desired. For example, at the beginning of each training simulation, simulator 500 can independently sample parameters from their respective log-uniform distributions. This provides robustness to control system 100 while guaranteeing performance, since system 100 is forced to learn a control strategy that handles all combinations of these parameters.
[0091] The simulator 500 can generate synthetic observations 114 in the form of simulated sensor measurements that mimic measurements from a real-world magnetic containment device 110. The control system 100 can then process the observations 114 to complete a time-stepped control loop. For example, the simulator 500 can generate synthetic magnetic field measurements from each wire loop, magnetic field probe, and control coil included in the simulation. When provided with sufficient data characterizing a particular real-world containment device 110, the simulator 500 can also describe sensor delays and noise, for example, using time delays and Gaussian noise models, and can describe control voltage offsets due to power supply dynamics, for example, using fixed biases and fixed time delays.
[0092] Although the simulator 500 is generally accurate, there are regions where the dynamics of the current plasma state 112 may be poorly represented or the simulation is outside the operating limits of the confinement device 110. The control system 100 can avoid these regions in the simulator 500 by using appropriate rewards and termination conditions. For example, at each time step, the simulator 500 can determine whether the current plasma state 112 and the confinement device 110 are physically feasible (502), i.e., whether they satisfy certain constraints. If these physical feasibility constraints are violated, the simulator 500 can terminate the simulation at the time step (504). The simulator 500 can also penalize the control system 100 with a large negative reward if the control system 100 reaches a termination condition to teach the system 100 to avoid these regions.
[0093] In some implementations, the feasibility constraints may include determining that the plasma density, the plasma current, or the respective current of each of the one or more control coils does not meet a particular threshold. For example, such a threshold may indicate a minimum value below which the control system may be "stuck." Other constraints may be readily implemented.
[0094] FIG. 5 is an example training engine 116 that uses actor-critic reinforcement learning techniques to jointly train the plasma confinement neural network 102 and the critic neural network 306.
[0095] The training engine 116 can train the plasma confinement neural network 102 to generate control signals 108 that increase a “profit” 312. The profit 312 can be generated by the critic neural network 306 by processing critic observations 310 of the plasma confinement neural network 102. The critic observations 310 characterize the control signals 108 that are generated in response to the observations 114 based on rewards 308, as described in detail below. In this case, the profit 312 refers to a cumulative measure of reward, e.g., a discounted expected future measure of reward, such as a time-discounted sum of rewards. The actor-critic reinforcement learning technique can directly or indirectly use the output of the critic neural network 306, i.e., the profit 312, to train the plasma confinement neural network 102. Note that the critic neural network 306 is only needed during training.
[0096] Because plasma physics is incredibly complex, the computational requirements of the training engine 116 are typically high when the simulator 500 is used to model the confinement device 110. This can significantly slow down the data rate compared to a typical reinforcement learning environment, e.g., a computer game. To overcome the lack of data, the training engine 116 can use maximum-posteriori policy optimization (MPO) techniques (Abdolmaleki et al., "Maximum a Posteriori Policy Optimisation", arXiv:1806.06920, 2018, or variations thereof). MPO supports a distributed architecture that can collect data across multiple parallel streams. In general, the distributed architecture allows a global set of network parameters to be defined, for example, in a central memory, for the plasma confinement neural network 102 and the critic neural network 306. Multiple parallel streams (e.g., independent threads, GPUs, TPUs, CPUs, etc.) can run a local training engine 116 using the current set of network parameters. Each stream can then update the global network parameters with the results of the local training engine 116. This approach can significantly speed up the training process of the control system 100.
[0097] The plasma confinement neural network 102 and the critic neural network 306 may each have any suitable neural network architecture that enables them to perform their described functions. For example, their respective architectures may each include any suitable number (e.g., 3, 10, or 100) of any suitable type of neural network layers (e.g., fully connected layers, convolutional layers, recurrent layers, or attention layers) connected in any suitable configuration (e.g., as a linear sequence of layers). By way of example, the plasma confinement neural network 102 may be a forward propagation neural network such as a multi-layer perceptron (MLP), and the critic neural network 306 may be a recurrent neural network including, for example, a LSTM (Long Short Term Memory) layer.
[0098] However, to be suitable as a real-time controller, the neural network 102 / 306 can exploit the inherent asymmetry in the actor-critic architecture to ensure that the trained plasma confinement neural network 102 runs quickly and efficiently once deployed. This asymmetric property is particularly beneficial due to the fact that the critic neural network 306 is only needed during training, allowing the critic 306 to infer underlying states from measurements, handle complex state transition dynamics over different timescales, and evaluate the effects of delays in measurements and actions on the system.
[0099] For example, to ensure low latency output, the plasma confinement neural network 102 can be a feed-forward neural network with a limited number of layers, e.g., four layers. On the other hand, during training, the critic neural network 306 can be a larger recurrent neural network since higher latency output of the critic 306 can be tolerated. As a result, the critic neural network 306 can have many more network parameters than the plasma confinement neural network 102. Furthermore, the critic neural network 306 can process critic observations 310 that are higher dimensional and have more data than the observations 114 processed by the plasma confinement neural network 102. As a result, the critic neural network 306 can be configured to consume more computational resources than the plasma confinement neural network 102.
[0100] The critic observations 310 may include all data pertaining to the control loop of the magnetic field control system 100 for a time step, i.e., the observations 114, the targets 304, and the control signals 108. The critic 306 may process the critic observations 310 along with the rewards 308 determined for the time step to generate a revenue 312. The revenue 312 predicts the cumulative future rewards of the control system 100 at a particular time step.
[0101] After completing the trajectory, the training engine 116 can compare the revenue 312 at each time step to the actual cumulative future reward. The training engine 116 can train the critic neural network 306 to generate a revenue 312 that accurately predicts the cumulative future reward, i.e., by updating the network parameters. Conversely, the training engine 116 can train the plasma confinement neural network 102 to generate a control signal 108 that maximizes the revenue 312 generated by the critic 306. Examples of actor-critic reinforcement learning techniques are described in more detail in conjunction with Volodymyr Minh et al., “Asynchronous methods for deep reinforcement learning,” arXiv:1602.01783v2, 2016.
[0102] FIG. 6 is a rendered image of the Tokamak a Configuration Variable (TCV) 600. The TCV 600 is a research tokamak at the Swiss Plasma Center with a major radius of 0.88 m, a chamber height of 1.50 m, and a chamber width of 0.512 m. The TCV 600 has a versatile collection of control coils that allow a wide range of plasma configurations. The chamber 601 is surrounded by 16 poloidal field coils (8 inner poloidal coils 603-1...8 and 8 outer poloidal coils 604-1...8), 7 ohmic transformer coils (6 ohmic coils in series 605-1...6 and a central ohmic coil 606), and a fast G coil 607. Note that not all control coils of the TCV 600 are depicted in FIG. 6.
[0103] The TCV 600 was utilized to perform an experimental demonstration of the magnetic field control system 100 for confining a plasma 602 within the chamber 601 of the device. A thorough review of the experiments and experiments involving different plasma configurations is provided by Degrave, J., Felici, F., Buchli, J. et al., "Magnetic control of tokamak plasmas through deep reinforcement learning," Nature 602, 414-419 (2022).
[0104] 7A and 7B are experimental data for TCV#70915 showing control of several plasma characteristics using magnetic field control system 100. FIG.
[0105] FIG. 7A shows a dotted target shape of 2 cm radius compared to the post-experiment equilibrium reconstruction (solid line). FIG. 7B shows the time trace of the target compared to the reconstructed observation, where the window of diverted plasma is marked (shaded rectangle). In the initial limited phase (0.1 s to 0.45 s), I p The root-mean-square error (RMSE) of is 0.71kA (0.59% of the target), and the RMSE of the shape is 0.78cm (3% of the half-width of the container). During the diverted phase (0.55s to 0.8s), I p The RMSEs for and shape are 0.28 kA and 0.53 cm (0.2% and 2.1%), respectively, resulting in RMSEs over the entire window (0.1 s to 1.0 s) of 0.62 kA and 0.75 cm (0.47% and 2.9%).
[0106] The control system 100 used 34 wire loops measuring magnetic flux, 38 probes measuring local magnetic fields, and 19 measurements of active control coil currents (augmented with an explicit measure of the current difference between the ohmic coils). Nineteen active control coils, including 16 poloidal coils 603-1...8 and 604-1...8 and three ohmic coils 605-2, 605-3, and 606, were activated to manipulate the plasma 602. The control system 100 consumes the magnetic and current sensors of the TCV 600 at a control rate of 10 kHz. The control strategy generates a reference voltage command at each time step for the active control coils.
[0107] Examples of reward components used in learning to control the TCV 600 are shown in Table 1 below. The configuration of the TCV (characteristic plasma shape) depends on the reward combination used. One or more of these reward components may be similarly combined to determine rewards for training plasma confinement neural networks to control other magnetic confinement devices, e.g., the magnetic fields of other tokamaks.
[0108] [Table 1]
[0109] An exemplary combination of rewards used to obtain the plasma shape of FIG. 7A combines LCFS Distance (good=0.005, bad=0.05), Limit Point (good=0.1, bad=0.2), OH Current Diff (good=50, bad=1050), Plasma Current (good=500, bad=20000), X-point Distance (good=0.01, bad=0.15), X-point Far (good=0.3, bad=0.1), X-point Flux Gradient (good=0, bad=3), X-point Normalized Flux (good=0, bad=0.08), each of which is mapped to a range between “good” and “bad” values, e.g., using a sigmoid function (with the exception of the X-point Flux Gradient, which has a weight of 0.5, using a weight of 1 in the combination). Other combinations of rewards may be used to obtain other shapes (and multiple droplets at different positions may be obtained, for example, by defining multiple targets in terms of R and Z).
[0110] This specification uses the term "configured" in reference to systems and computer program components. One or more computer systems being configured to perform a particular operation or action means that the system has installed thereon software, firmware, hardware, or a combination thereof that, during operation, causes the system to perform the operation or action. One or more computer programs being configured to perform a particular operation or action means that one or more programs contain instructions that, when executed by a data processing device, cause the device to perform the operation or action.
[0111] The embodiments and functional operations of the subject matter described herein can be implemented in digital electronic circuitry, tangibly embodied computer software or firmware, computer hardware, including the structures disclosed herein and their structural equivalents, or a combination of one or more of them. The embodiments of the subject matter described herein can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible non-transitory storage medium for execution by or for controlling the operation of a data processing device. The computer storage medium can be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them. Alternatively or additionally, the program instructions can be encoded on an artificially generated propagated signal, e.g., a machine-generated electrical, optical, or electromagnetic signal, that is generated to encode information for transmission to a receiver device suitable for execution by a data processing device.
[0112] The term "data processing apparatus" refers to data processing hardware and encompasses all kinds of apparatus, devices, and machines for processing data, including, by way of example, a programmable processor, a computer, or multiple processors or computers. The apparatus may also be or further include dedicated logic circuitry, such as an FPGA (field programmable gate array) or an ASIC (application specific integrated circuit). Optionally, in addition to hardware, the apparatus may include code that creates an execution environment for a computer program, such as code that constitutes a processor's firmware, a protocol stack, a database management system, an operating system, or one or more combinations thereof.
[0113] A computer program, which may also be referred to or described as a program, software, software application, app, module, software module, script, or code, can be written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, and can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A program may correspond to a file in a file system, but this is not necessarily the case. A program may be stored in part of a file that holds other programs or data, for example in one or more scripts stored in a markup language document, in a single file dedicated to the program in question, or in multiple organized files, for example in files that store one or more modules, subprograms, or code portions. A computer program may be deployed to be executed on one computer, or on multiple computers that are located in one location or distributed across multiple locations and connected together by a data communication network.
[0114] The term "engine" is used broadly herein to refer to a software-based system, subsystem, or process that is programmed to perform one or more specific functions. Generally, an engine is implemented as one or more software modules or components installed on one or more computers in one or more locations. In some cases, one or more computers are dedicated to a particular engine, and in other cases, multiple engines can be installed and running on the same computer or computers.
[0115] The processes and logic flows described herein may be performed by one or more programmable computers executing one or more computer programs to perform functions by performing operations on input data and generating output. The processes and logic flows may also be performed by special purpose logic circuitry, e.g., FPGAs or ASICs, or a combination of special purpose logic circuitry and one or more programmed computers.
[0116] A computer suitable for executing a computer program can be based on a general-purpose or special-purpose microprocessor or both, or any other type of central processing unit. In general, the central processing unit receives instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a central processing unit for executing or executing instructions, and one or more memory devices for storing instructions and data. The central processing unit and memory can be supplemented by or incorporated in special-purpose logic circuitry. In general, the computer also includes one or more mass storage devices, such as magnetic disks, magneto-optical disks, or optical disks, for storing data, or is operatively coupled to receive data from or transfer data to the mass storage devices, or both. However, the computer may not have such devices. Additionally, a computer may be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a portable storage device, such as a Universal Serial Bus (USB) flash drive, to name just a few.
[0117] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, by way of example, semiconductor memory devices, e.g., EPROM, EEPROM, and flash memory devices, magnetic disks, e.g., internal hard disks or removable disks, magneto-optical disks, and CD-ROM disks and DVD-ROM disks.
[0118] To provide interaction with a user, embodiments of the subject matter described herein can be implemented on a computer having a display device, e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor, for displaying information to the user, and a keyboard and pointing device, e.g., a mouse or trackball, by which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user, e.g., the feedback provided to the user can be any form of sensory feedback, e.g., visual feedback, auditory feedback, or tactile feedback, and the input from the user can be received in any form, including acoustic, speech, or tactile input. In addition, the computer can interact with the user by sending documents to and receiving documents from a device used by the user, e.g., by sending a web page to the web browser of the user's device in response to a request received from the web browser. The computer can also interact with the user by sending text messages or other forms of messages to a personal device, e.g., a smartphone, running a messaging application, and receiving a response message from the user in return.
[0119] A data processing apparatus for implementing machine learning models may also include dedicated hardware accelerator units for handling the often computationally intensive parts of the machine learning training or generation, i.e., inference, workload.
[0120] The machine learning model may be implemented and deployed using a machine learning framework, for example, the TensorFlow framework.
[0121] Embodiments of the subject matter described herein can be implemented in a computing system that includes a back-end component, e.g., as a data server, or includes a middleware component, e.g., an application server, or includes a front-end component, e.g., a client computer having a graphical user interface, web browser, or app through which a user can interact with an implementation of the subject matter described herein, or includes any combination of one or more such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include local area networks (LANs) and wide area networks (WANs), e.g., the Internet.
[0122] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. In some embodiments, a server sends data, e.g., HTML pages, to a user device for the purpose of, e.g., displaying data to a user interacting with the device acting as a client and receiving user input from such a user. Data generated at the user device, e.g., results of user interaction, can be received from the device at the server.
[0123] Although this specification contains many specific implementation details, these should not be considered as limitations on the scope of any invention or what may be claimed, but rather as descriptions of features that may be specific to certain embodiments of a particular invention. Certain features described herein in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may be described above as working in a particular combination, and may even be initially claimed as such, one or more features of the claimed combination may in some cases be deleted from the combination, and the claimed combination may be directed to a subcombination, or a variation of the subcombination.
[0124] Similarly, although operations are illustrated in the figures and recited in the claims in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown, or in sequential order, or that all of the operations shown be performed to achieve a desired result. In certain situations, multitasking and parallel processing may be advantageous. Furthermore, the division of various system modules and components in the above-described embodiments should not be understood as requiring such division in all embodiments, and it should be understood that the described program components and systems may generally be integrated together in a single software product or packaged in multiple software products.
[0125] Specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. For example, the actions recited in the claims can be performed in a different order and still achieve desirable results. By way of example, the processes depicted in the accompanying figures do not necessarily require the particular order depicted, or sequential order, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. [Explanation of symbols]
[0126] 100 Magnetic Field Control System 102 Plasma Confinement Neural Network 104 Network parameters 106 Magnetic control output 108 Control Signals 110 Magnetic confinement devices, fusion reactor confinement devices 112 Current state of plasma, current state of plasma 114 Observation Results 116 Training Engine 118 Plasma target state, target plasma state 200 processes 300 processes 304 Feature Goals 306 Critic Neural Network 308 Reward 310 Critic Observations 312 Revenue 408 Current value of device feature, current device value 410 The current value of one or more of the plasma characteristics 412 One or more target values of plasma characteristics 416 error 500 Simulator 600 Tokamak a Configuration Variable(TCV) 603-1...8 Inner poloidal coil 604-1...8 Outer poloidal coil 605-1...6 Series Ohmic Coil 606 Central Ohmic Coil 607 High Speed G Coil
Claims
1. 1. A method executed by one or more data processing apparatus for generating control signals for controlling a magnetic field for confining a plasma in a chamber of a magnetic confinement device, the method comprising the steps of: obtaining observations characterizing a current state of the plasma within the chamber of the magnetic confinement device; processing inputs including the observations characterizing the current state of the plasma in the chamber of the magnetic confinement device using a plasma confinement neural network, the plasma confinement neural network having a plurality of network parameters and configured to process the inputs including the observations in accordance with the network parameters to generate magnetic control outputs characterizing control signals for controlling the magnetic field of the magnetic confinement device, the magnetic control outputs defining, for each of a plurality of control coils of the magnetic confinement device, a respective score distribution over a set of possible voltages that may be applied to the control coil; and generating the control signal for controlling the magnetic field of the magnetic confinement device based on the magnetic control output.
2. The method of claim 1 , wherein the magnetic control output characterizes a respective voltage applied to each of a plurality of control coils of the magnetic confinement device.
3. generating a control signal for controlling the magnetic field of the magnetic confinement device based on the magnetic control output, for each of the plurality of control coils of the magnetic confinement device, selecting a voltage from the respective score distribution over the set of possible voltages that may be applied to the control coil; and generating a control signal for applying the sampled voltage to the control coil.
4. A method executed by one or more data processing devices for generating control signals for controlling a magnetic field for confining a plasma in a chamber of a magnetic confinement device, the method comprising the steps of: obtaining observations characterizing a current state of the plasma within the chamber of the magnetic confinement device; for each of the plurality of time steps, determining a reward for that time step that characterizes an error between (i) the current state of the plasma and (ii) a target state of the plasma; processing inputs including the observations characterizing the current state of the plasma in the chamber of the magnetic confinement device using a plasma confinement neural network, the plasma confinement neural network having a plurality of network parameters and configured to process the inputs including the observations in accordance with the network parameters to generate magnetic control outputs characterizing control signals for controlling the magnetic field of the magnetic confinement device; generating the control signal for controlling the magnetic field of the magnetic confinement device based on the magnetic control output; and training neural network parameters of said plasma confinement neural network with said reward using reinforcement learning techniques.
5. For one or more of the plurality of time steps, determining the reward for the time step comprises: determining, for each of one or more plasma features characterizing the plasma, a respective error measuring a difference between (i) a current value of the plasma feature at that time step and (ii) a target value of the plasma feature at that time step; and determining the reward for the time step based at least in part on the respective errors corresponding to each of the one or more plasma characteristics at the time step.
6. determining, for one or more of the plurality of time steps, the reward for the time step based on the respective errors corresponding to each of the plasma characteristics at the time step; The method of claim 5 , comprising determining the reward for the time step as a weighted linear combination of the respective errors corresponding to the plasma characteristics at the time step.
7. The method of claim 5 , wherein a respective target value for each of one or more of the plasma characteristics is varied between time steps.
8. 6. The method of claim 5, wherein at each of the plurality of time steps, the input to the plasma confinement neural network includes data defining a respective target value for each of the plasma characteristics at the time step in addition to the observations for the time step.
9. 6. The method of claim 5, wherein the characteristics of the plasma include one or more of: a stability of the plasma, a plasma current of the plasma, a shape of the plasma, a position of the plasma, an area of the plasma, a number of domains of the plasma, a distance between droplets of the plasma, an elongation of the plasma, a radial position of a plasma center, a radius of the plasma, a triangular angle of the plasma, or a limit point of the plasma.
10. For one or more of the plurality of time steps, determining the reward for the time step comprises: determining a respective current value of each of one or more device features characterizing a current state of the magnetic confinement device; and determining the reward for the time step based at least in part on the respective current values of the one or more device features at the time step.
11. 11. The method of claim 10, wherein the device features include a number of X points in the chamber of the magnetic confinement device, a respective current in each of one or more control coils of the magnetic confinement device, or both the number of X points in the chamber of the magnetic confinement device and the respective current in each of the one or more control coils of the magnetic confinement device.
12. the magnetic confinement device is a simulation of a magnetic confinement device, and the method comprises, at a last time step of the plurality of time steps: determining that a physical feasibility constraint of the magnetic confinement device is violated at the time step; and terminating the simulation of the magnetic confinement device in response to determining that the physical feasibility constraints of the magnetic confinement device are violated at the time step.
13. 13. The method of claim 12, wherein determining that the physical feasibility constraints of the magnetic confinement device are violated at the time step comprises one or more of the following steps: determining that a density of the plasma at the time step does not meet a threshold value; determining that a plasma current of the plasma at the time step does not meet a threshold value; or determining that a respective current in each of one or more of the control coils does not meet a threshold value.
14. The reinforcement learning technique is an actor-critic reinforcement learning technique, and the step of training the network parameters of the plasma confinement neural network with the reward comprises:
5. The method of claim 4, further comprising: jointly training the plasma confinement neural network and a critic neural network with the reward using the actor-critic reinforcement learning technique, the critic neural network being configured to process inputs including critic observations of the time step to generate outputs characterizing a cumulative measure of reward predicted to be received after the time step.
15. The method of claim 14 , wherein the actor-critic reinforcement learning technique is a maximum-posteriori optimization (MPO) technique.
16. The method of claim 14 , wherein the actor-critic reinforcement learning technique is a distributed actor-critic reinforcement learning technique.
17. 15. The method of claim 14, wherein the plasma confinement neural network generates an output using fewer computational resources than are required by the critic neural network to generate an output.
18. 15. The method of claim 14, wherein the plasma confinement neural network generates an output with a lower latency than required by the critic neural network to generate an output.
19. The method of claim 14 , wherein the plasma confinement neural network has fewer network parameters than the critic neural network.
20. 15. The method of claim 14, wherein the plasma confinement neural network is a feedforward neural network and the critic neural network is a recurrent neural network.
21. 15. The method of claim 14, wherein the critic neural network is configured to process critic observations that have a higher dimensionality and contain more data than the observations processed by the plasma confinement neural network.
22. A method executed by one or more data processing devices for generating control signals for controlling a magnetic field for confining a plasma in a chamber of a magnetic confinement device, the method comprising the steps of: obtaining observations characterizing a current state of the plasma in the chamber of the magnetic confinement device, wherein at each of the plurality of time steps, the observations characterizing the current state of the plasma in the chamber of the magnetic confinement device include one or more of a respective magnetic flux measurement obtained from each of one or more wire loops, a respective magnetic field measurement obtained from each of one or more magnetic field probes, or a respective current measurement from each of one or more control coils of the magnetic confinement device; processing inputs including the observations characterizing the current state of the plasma in the chamber of the magnetic confinement device using a plasma confinement neural network, the plasma confinement neural network having a plurality of network parameters and configured to process the inputs including the observations in accordance with the network parameters to generate magnetic control outputs characterizing control signals for controlling the magnetic field of the magnetic confinement device; and generating the control signal for controlling the magnetic field of the magnetic confinement device based on the magnetic control output.
23. A method executed by one or more data processing devices for generating control signals for controlling a magnetic field for confining a plasma in a chamber of a magnetic confinement device, the magnetic confinement device being a simulated magnetic confinement device, the method comprising: obtaining observations characterizing a current state of the plasma within the chamber of the magnetic confinement device; processing inputs including the observations characterizing the current state of the plasma in the chamber of the magnetic confinement device using a plasma confinement neural network, the plasma confinement neural network having a plurality of network parameters and configured to process the inputs including the observations in accordance with the network parameters to generate magnetic control outputs characterizing control signals for controlling the magnetic field of the magnetic confinement device; and generating the control signal for controlling the magnetic field of the magnetic confinement device based on the magnetic control output.
24. training the plasma confinement neural network based on controlling the simulated magnetic confinement device using the plasma confinement neural network; 24. The method of claim 23, further comprising using the plasma confinement neural network to control the magnetic field for confining a plasma in a chamber of the real-world magnetic confinement device by processing observations generated from one or more sensors of a real-world magnetic confinement device and using a magnetic control output generated by the plasma confinement neural network to generate a real-world control signal for controlling a magnetic field of the real-world magnetic confinement device.
25. The method of claim 1 , wherein the magnetic confinement device is a tokamak and the chamber of the magnetic confinement device has a toroidal shape.
26. The method of claim 1 , wherein the plasma is used to generate power by nuclear fusion.
27. One or more non-transitory computer storage media storing instructions that, when executed by one or more computers, cause the one or more computers to perform the operations of the respective methods recited in any one of claims 1 to 26.
28. One or more computers; and one or more storage devices communicatively coupled to the one or more computers, the one or more storage devices storing instructions that, when executed by the one or more computers, cause the one or more computers to perform operations of the respective methods described in any one of claims 1 to 26.
29. 1. A method executed by one or more data processing apparatus for generating control signals for controlling a magnetic field for confining a plasma in a chamber of a magnetic confinement device, the method comprising the steps of: obtaining observations characterizing a current state of the plasma within the chamber of the magnetic confinement device; processing inputs including the observations characterizing the current state of the plasma in the chamber of the magnetic confinement device using a trained plasma confinement neural network, the trained plasma confinement neural network having a plurality of network parameters and configured to process the inputs including the observations in accordance with the network parameters to generate magnetic control outputs characterizing control signals for controlling the magnetic field of the magnetic confinement device, the magnetic control outputs defining, for each of a plurality of control coils of the magnetic confinement device, a respective score distribution over a set of possible voltages that may be applied to the control coil; and generating the control signal for controlling the magnetic field of the magnetic confinement device based on the magnetic control output.
Citation Information
Patent Citations
Intense laser element laser damage threshold prediction method and system based on multi-mode in-situ test and medium
CN111678919A
Controlling method and device for plasma position and shape in nuclear fusion device
JP1994109882A
Method for generating general-purpose learned model
JP2020038699A
Reduction of the Coulomb barrier for interacting reactants
JP2020519892A
Machine learning in fusion reactors
JP2020525983A