Adaptive partial scanning transmission electron microscopy with reinforcement learning
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
기본 정보
- 저자
- DOI
- 10.1088/2632-2153/abf5b6
- 저널
- Machine Learning Science and Technology
- 발행년도
- 2021
- 발행기관
- IOP Publishing
- 피인용수
- 12
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1088/2632-2153/abf5b6
- 토픽
- Advancements in Photolithography Techniques
- OpenAlex ID
- W3150666581
평가 내용
- 관련도
- 사업분야
- 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 33,032자
본문 펼치기
섹션 본문 65문단 · 32,172자
(제목 없음)
1Compressed sensing is applied to scanning transmission electron microscopy to decrease electron dose and scan time. However, established methods use static sampling strategies that do not adapt to samples. We have extended recurrent deterministic policy gradients to train deep LSTMs and differentiable neural computers to adaptively sample scan path segments. Recurrent agents cooperate with a convolutional generator to complete partial scans. We show that our approach outperforms established algorithms based on spiral scans, and we expect our results to be generalizable to other scan systems. Source code, pretrained models and training data is available at https://github.com/Jeffrey-Ede/Adaptive-Partial-STEM.Detailed actor, critic and generator architecture is shown infig. S1. Actors and critics have almost identical architecture. The difference is that actor fully connected layers output action vectors, whereas critics output losses. In most of our experiments, actors and critics are deep LSTMs 64 . However, we also augment deep LSTMs with dynamic external memory to create DNCs 41 in some of our experiments. Configuration details of actor and critic components shown infig. S1afollow. Controller (Deep LSTM): A two-layer deep LSTM with 128 hidden units in each layer. To reduce signal attenuation, we add skip connections from inputs to the second LSTM layer and from the first LSTM layer to outputs. Weights are initialized from truncated normal distributions and biases are zero initialized. In addition, we add a bias of 1 to the forget gate to reduce forgetting at the start of training 40 . Access (External Memory): Our DNC implementation is adapted from Google Deepmind's 41, 93 . We use 4 read heads and 1 write head to control access to external memory, which has 16 slots with a word size of 64.
Introduction
2Most scan systems sample signals at sequences of discrete probing locations. Examples include atomic force microscopy 1 , computerized axial tomography 2, 3 , electron backscatter diffraction 4 , scanning electron microscopy 5 , scanning Raman spectroscopy 6 , scanning transmission electron microscopy 7 (STEM) and X-ray diffraction spectroscopy 8 . In STEM, the high current density of electron probes produces radiation damage in many materials, limiting the range and type of investigations that can be performed 9,10 . In addition, most STEM signals are oversampled 11 to ease inspection and decrease sub-Nyquist artefacts 12 . As a result, compressed sensing 13 algorithms have been developed to decrease STEM probing. In this paper, we introduce a new approach to STEM compressed sensing where a scan system learns to adapt partial scans 14 to samples by reinforcement learning 15 (RL).
3Established compressed sensing strategies include random sampling [16][17][18] , uniformly spaced sampling 17,[19][20][21] , sampling based on a model of a sample 22,23 , partials scans with fixed paths 14 , dynamic sampling to minimize entropy [24][25][26][27] and dynamic sampling based on supervised learning 28 . Complete signals can be extrapolated from partial scans by an infilling algorithm, estimating their fast Fourier transforms 29 or inferred by an artificial neural network 14,21 (ANN). The best sampling strategy varies, for example, uniformly spaced sampling is often better than spiral paths for oversampled STEM images 14 . However, hand-crafted strategies have a limited ability to leverage a physical understanding to optimize sampling. As proposed 14 , we have therefore developed ANNs to adapt scan paths to signals. This is motivated by the universal approximator theorem 30 , which proves that ANNs can learn to represent 31 the best sampling strategy to arbitrary accuracy.
4Exploration of STEM images is a finite-horizon partially observed Markov decision process 32,33 (MDP) with sparse losses. A partial scan can be constructed from path segments sampled at each step and a loss is based on the accuracy of a completion generated from the partial scan. Most scan systems support custom scan paths or can be augmented with a field programmable gate array 34,35 (FPGA) to support custom scan paths. However, there is a delay before a scan system can execute or is ready to receive a new command. Total delay can be reduced by using fewer steps with larger path segments. Decreasing steps could also reduce distortions due to errors in probing positions 34 . In addition, command executions could be delayed by ANN inference. However, delay can be minimized by using a lightweight ANN or by inferring commands while previous commands are executing.
5MDPs can be optimized by recurrent neural networks (RNNs) based on long short-term memory 36,37 (LSTM), gated recurrent unit 38 (GRU) or other cells. LSTMs and GRUs are popular as they solve the vanishing gradient problem 39 and have consistently high performance 40 . Small RNNs are computationally inexpensive and are often applied to MDPs as they can learn to extract and remember state information to inform future decisions. To solve dynamic graphs, an RNN can be augmented with dynamic external memory to create a differentiable neural computer 41 (DNC). A loss, L t , at step t in a MDP with T steps can be given by Bellman's equation,
6where γ ∈ [0, 1) discounts future losses. RL equations are often presented in terms of rewards, r t = −L t ; however, losses are an equivalent representation that avoids complicating our calculations with minus signs. Loss backpropagation through time 42 (BPTT) enables RNNs can be trained by gradient descent 43 46 and playing score-based computer games 47,48 . Nevertheless, these losses can be backpropagated to agent parameters by sampling actions from a differentiable probability distribution 44,49 , or by introducing a differentiable surrogate 50 or critic 51 to predict losses that can be backpropagated. Alternatives to gradient descent, such as simulated annealing 52 and evolutionary 53 algorithms, can also optimize agents for non-differentiable loss functions. However, gradient descent typically achieves better results with less computation for large ANNs.
Training
7In this section, we outline our training environment, ANN architecture and learning policy. Our ANNs were developed in Python with TensorFlow 54 . Detailed architecture and learning policy is in supplementary information. In addition, source code and pretrained models are available via GitHub 55 , and training data is available 11, 56 . Figure 1. An abstract 8×8 partial scan with T = 5 straight path segments. Each segment has P = 3 probing positions separated by d = 2 1/2 px and their starts are labelled by step numbers, t. Partial scans are selected from STEM images by sampling pixels nearest probing positions.
Environment
8To create partial scans from STEM images, an actor, µ, infers L2 normalized vectors, µ(h t ), based on a history, h t = (o i 1 , a 1 , ..., o t − 1 , a t−1 ), of previous actions, a, and observations, o. To encourage exploration, µ(h t ) is rotated to a t by Ornstein-
9where we chose θ = 0.1 to decay noise to ε avg = 0, σ = 0.2 to scale a standard normal distributed Wiener variate, W , and ε 0 = 0. O-U noise is linearly decayed to zero throughout training. Correlated O-U exploration noise is recommended for continuous control tasks optimized by deep deterministic policy gradients 47 (DDPG) and recurrent deterministic policy gradients 48 (RDPG). Nonetheless, follow-up experiments with TD3 59 and D4PG 60 have found that uncorrelated Gaussian noise can produce similar results. An action, a t , is the direction to move to observe a path segment, o t , relative to the position at the end of the previous segment. Partial scans are constructed from complete histories of actions and observations, h T . A simplified partial scan is shown in fig. 1. In our experiments, partial scans, s, are constructed from T = 20 straight path segments selected from 96×96 STEM images. Each segment has P = 20 probing positions separated by d = 2 1/2 px and positions can be outside an image. The pixels in the image nearest each probing position are sampled, so a separation of d ≥ 2 1/2 prevents probing positions in a segment from sampling the same pixel. A separation of d < 2 1/2 would allow a pixel to sampled more than once by moving diagonally, potentially incentifying orthogonal scan motion to sample more pixels.
10Selecting a subset of STEM image pixels to be partial scans to train ANNs for compressed sensing follows earlier work 14,21,61 . It is cheaper and more practical than preparing a large, carefully partitioned and representative dataset 62,63 containing partial scan and full image pairs, and selected pixels have realistic noise characteristics as they are from an experimental images. Nevertheless, selecting a subset of pixels does not account for probing location errors varying with scan shape 34 . We use publicly available datasets containing 19769 32-bit 96×96 images cropped or downsampled from full images 11,56 . Cropped images were blurred by a symmetric 5×5 Gaussian kernel with a 2.5 px standard deviation to decrease any training loss variation due to varying noise characteristics. Finally, images, I, were linearly transformed to normalized images, I N , with minimum and maximum values of −1 and 1, respectively. To test performance, images were split, without pre-shuffling, into training sets containing 15815 images and test sets containing 3954 image. Details of and scripts used to prepare datasets are available with both static and interactive dataset visualizations 11 .
Architecture
11Training configurations of actor, µ, target actor, µ , critic, Q, target critic, Q , and generator, G, networks are shown in fig. 2. Our actor and critic are computationally inexpensive deep LSTMs 64 or DNCs to minimize latency, and our generator is convolutional neural network 65,66 . As shown in fig. 2a, a recurrent actor selects sequences of actions and path segments that are added to an experience replay 67 , R, containing 25000 sequences. Partial scans, s, are constructed from histories sampled from the replay to train a generator shown in fig. 2b to completes partial scans, I i G = G(s i ). A new experience is added to the replay once every four training iterations. The actor and generator cooperate to minimize generator losses, L G , and are the only networks needed for inference.
12Generator losses are not differentiable w.r.t. actions used to render partial scans; ∂ L G /∂ a t = 0. Similar to RDPG 48 , we therefore introduce recurrent critics to predict losses that can be backpropagated to actors, as shown in fig. 2c. Actors and critics have the same architecture, except actors have two outputs for actions whereas critics have one output for losses. Target networks 47, 68 track live actor and critic networks to stabilize learning. In RDPG, live and target ANNs separately replay experiences. However, we propagate target ANN states to live ANNs as target states are more stable than live states, it models inference with a target actor, and it does not require additional computation.
Learning Policy
13To train actors to cooperate with a generator to complete partial scans, we developed cooperative recurrent deterministic policy gradients (CRDPG) (algorithm 1). This is an extension of RDPG to an actor that cooperates with another ANN to minimize its loss. We train our networks by ADAM 69 optimized gradient descent for M = 10 6 iterations with a batch size, N, of 32. We use constant learning rates η µ = 0.0007 and η Q = 0.0010 for the actor and critic, respectively. For the generator, we use an exponentially decayed cyclic 70 learning rate,
14where m ∈ [0, M] is the iteration number, c = M/9 is the cycle period, and x mod y is the remainder of the division of x by y.
15Training takes one day with an i7-6700 CPU and a GTX 1080 Ti GPU. The generator learns to minimize mean squared errors (MSEs), L G , between scan completions, G(s ), and normalized target images, I N . Similar to our earlier work 14, 21, 61, 71 , we apply a random combination of flips and 90 • rotations, mapping s → s and I N → I N , to augment training data by a factor of eight. Following Mnih et al 68 , we restrict loss support by clipping losses to 4, the maximum possible MSE for generated intensities in [−1, 1],
16Generator losses decrease as performance improves, and they can change due loss spikes 61 , learning rate oscillations 70 or other phenomena. Normalizing losses can improve RL 72 , so we divide generator losses for actor training by their running mean,
3/20
17Algorithm 1 Cooperative recurrent deterministic policy gradients (CRDPG).
18Initialize actor, µ(h t ), critic, Q(a t , h t ), and generator, G(s i ), networks with parameters ω, θ and φ , respectively. Initialize target networks, µ and Q , with parameters ω ← ω, θ ← θ , respectively. Initialize replay buffer, R. Initialize average generator loss, L avg . for episode m = 1, M do Initialize empty history, h 0 .
19(append observation and previous action to history). Select action, a t , by computing µ(h t ) and applying exploration noise, ε t . end for
20, from generator losses, L i G , and over edge losses, E i t ,
21where δ is the Dirac delta function.
22Compute target values, (y i 1 , ..., y i T ), using recurrent target networks
23where α ∈ [0, 1] weights the contribution of supervised and reinforcement losses. Compute critic update (using BPTT)
24Compute actor update (using BPTT)
25Compute generator update
26Update the actor, critic and generator by gradient descent. Update the target networks and average generator loss
27end for 4/20 where we chose β L = 0.997 and L G → L G /L avg . Heuristically, an optimal policy does not go over image edges as there is no information there in our training environment. To accelerate convergence, we therefore added a small loss penalty, E t = 0.1, at
5/20
28step t if an action results in a probing position being over an image edge. The total loss at each step is
29where the Dirac delta function δ , adds the sparse normalized generator loss at the final step, T .
30To estimate discounted future losses, Q rl t , for RL, we use a target actor and critic,
31where we chose γ = 0.97. Target networks stabilize learning and decrease policy oscillations [73][74][75] . Our target actor and critic have trainable parameters ω and θ , respectively, that track live parameters, ω and θ , by soft updates 47 ,
32where we chose β ω = β θ = 0.9997. We tried hard updates 68 , where target networks are periodic copies of live networks; however, we found that soft updates result in faster convergence and more stable training. Supervised losses, Q super t , can also be computed with Bellman's equation,
33We found that minimizing Q rl t results in lower final losses than Q super t . However, Q super t resulted in faster convergence at the start of training, especially in early experiments before our learning policy was optimized. Model-free RL algorithms, such as Q-learning and its variants, often performs poorly in the early stages of training while critics unlearn biased estimates of state-action value functions 76 . As a result, we balance both reinforcement and supervised losses,
34where α = (max(10 5 ) − m)/10 5 starts with supervised losses at m = 0 and linearly changes to reinforcement losses by m = 10 5 .
35The critic learns to minimize mean squared differences, L Q , between predicted and target losses and the actor learns to minimize losses, L µ , predicted by the critic:
Experiments
36In this section, we present examples of adaptive partial scans and select learning curves for architecture and learning policy experiments. Importantly, we show that adaptive scans outperform established methods that use static spiral scans. Additional sheets of examples for both adaptive and spiral scans, experiments, and test set errors for each experiment are in supplementary information.
37Examples of 1/23.04 px coverage partial scans, target outputs and generator completions are shown in fig. 3 for 96×96 crops from test set STEM images. They show both adaptive and spiral scans after flips and rotations to augment data for the generator. The first action always selects a path segment from the middle of image in the direction of a corner. Actors use the first observation, and following observations, to inform where to sample the remaining T − 1 = 19 path segments. Actors adapt scan paths to the environment. For example, if an image contains regular atoms, actors will cover a large area to see if there is a region where that changes. Alternatively, if an image contains continuous regions, actors explore near image edges and far away to find region boundaries.
38Learning curves for adaptive scans with an LSTM based actor and static spiral scans in fig. 4a show that adaptive scans outperform spirals. Spirals scans are an established method for compressed sensing and are a special case of adaptive scans. Spirals were created from the same straight path segments, starting from the centre of a STEM images, and are the largest spirals that fit in images. We also tried augmenting our LSTM with dynamic external memory to form a DNC. We thought that recording state information to external memory could reduce actor memory attenuation to improve navigation. However, we found that DNCs and LSTMs have similar performance in our experiments. Nevertheless, we expect that DNCs might outperform LSTMs on scans with more path segments.
39Most STEM signals are imaged at several times their Nyquist rates 11 . To investigate adaptive STEM performance on signals imaged close to their Nyquist rates, we downsampled STEM images to 96×96. Learning curves in fig. 4b show that losses are lower for oversamples STEM crops. Following, we investigated if MSEs vary for training with different loss metrics by adding a Sobel loss, L S , to generator losses. Our Sobel loss is
40where S x and S y compute horizontal and vertical Sobel derivatives 77 , and we chose λ S = 0.2 to weight contribution to the total loss. Learning curves in fig. 4b learning stability and decreases final errors in fig. 4c, similar to previous experiments where normalization improves learning 72 . Nevertheless, normalization does not guarantee stability. For example, losses for training with normalization increase near 2.5 × 10 5 iterations. We expect that training could be further improved by gradient clipping 39 , inputting remaining steps 80 and other refinements to architecture and learning policy. To train actors by BPTT, we differentiate critic loss predictions w.r.t. actor parameters by the chain rule,
41Differentiating w.r.t. actions computed during replays follows Spielberg's RDPG implementation 81 . However, ∂ Q(h i t , a i t )/∂ µ(h i t ) is replaced with a derivative w.r.t. replayed actions, ∂ Q(h i To train adaptive scans systems to outperform established methods based on static spiral scans, we developed CRDPG. This is an extension of RDPG 48 , which is based on DDPG 47 . However, alternatives to DDPG, such as TD3 59 and D4PG 60 , arguably achieve higher performance, and we expect they could form the basis of a future training algorithm. In addition, we expect that architecture and learning policy could be improved by AdaNet 82 , Ludwig 83 , or other automatic machine learning 84 algorithms. In particular, adaptive scan losses are decreasing at the end of our experiments, so we expect that performance could be improved by increasing the number of training iterations.
42Our scan systems sample straight path segments that cannot go over image edges. Straight segments simplify development. Nevertheless, actors could learn to output additional parameters to describe curves, multiple successive path segments, or sequences of discontinuous probing positions. Actions could also be restricted, for example, to avoid actions that may cause high probing position errors. Training environments could be modified to allow actors to sample pixels over image edges by loading images larger than partial scan regions. This would model adaptive scans where the actor is allowed to sampled pixels outside a scan region, which could improve performance. However, using larger images would increase data loading and processing time.
43We expect the main limitation of experimental adaptive partial STEM to be distortions caused by probing position errors. Errors depend on scan shapes 34 and accumulate for each path segment. Non-linear scan distortions can be corrected by comparing pairs of orthogonal raster scans 85,86 , and we expect this method can be extended to partial scans. However, orthogonal scans complicate measurement by restring scan paths to two half scans to avoid doubling electron dose on beamsensitive materials. This is an unwanted restriction and iterative corrections based on image pairs are unsuitable for live applications. As a result, we propose that the generator should be trained to correct distortions. Another limitation is that our generators do not lot learn to remove STEM noise 87 . However, we expect that generators can learn to remove noise from single noisy examples 88 .
44We propose that a cyclic generator 89 could learn to correct distortions by translating between partial scans and raster scans. A detailed method is provided in supplementary information. This may be the most practical approach as it uses unpaired raster and partial scans. Moreover, partial scans could be generated from raster scans by applying simulated distortion fields. Another approach is training a RNN to predict position errors based on an understanding of scan system dynamics. However, we believe this approach is less practical as it would be specific to a scan system and any errors in probing position error predictions would accumulate for each segment.
45Not all scan systems support non-raster scan paths. However, most scan controllers can be augmented with an FPGA to perform custom scans 34,35 . Recent versions of Gatan Digital Micrograph support Python 90 , so our Python/TensorFlow based ANNs can be directly applied to scan systems. Alternatively, an actor could be synthesized on the scan controlling FPGA 91,92 to minimize latency. There could be hundreds of path segments in a partial scan, so lightweight and parallelizable actors are essential to minimize latency. As a result, we have developed actors based computationally inexpensive RNNs, which can remember state information to inform decisions. Alternatively, a partial scan could be updated at each step for a CNN based actor to infer actions. However, a CNN is less practical than an RNN as most CNNs require more computation.
Conclusions
46We have developed CRDPG to train actors to cooperate with generators to complete STEM images from adaptive scans. Our approach outperforms established methods based on static spiral scans. We expect adaptive scans to decrease scan time and enable new beam-sensitive applications. As a result, we have made our source code, pretrained models, training datasets, and details of experiments available to encourage further investigation. We expect our results to be generalizable to scan systems in all areas of science and technology. Figure S1. Actor, critic and generator architecture. a) An actor outputs action vectors whereas a critic predicts losses. Dashed lines are for extra components in a DNC. b) A convolutional generator completes partial scans.
47Fully Connected: A dense layer linearly connects inputs to outputs. Weights are initialized from a truncated normal distribution and there are no biases.
48The actor and critic cooperate with a convolutional generator, shown in fig. S1b, to complete partial scans. Our generator is constructed from convolutional layers 94 and skip-3 residual blocks 95 .
49Conv d, wxw, Stride, x: Convolutional layer with a square kernel of width, w, that outputs d feature channels. If the stride is specified, convolutions are only applied to every xth spatial element of their input, rather than to every element. Striding is not applied depthwise.
50Trans Conv d, wxw, Stride, x: Transpositional convolutional layer with a square kernel of width, w, that outputs d feature channels. If the stride is specified, convolutions are only applied to every xth spatial element of their input, rather than to every element. Striding is not applied depthwise. + : Circled plus signs indicate residual connections where incoming tensors are added together. Residuals help reduce signal attenuation and allow a network to learn perturbative transformations more easily.
51Convolutional layers are followed by ReLU 96 activation then batch normalization 97 . Residual connections are added between activation and batch normalization. Convolutional weights are Xavier 98 initialized and biases are zero initialized. We apply L2 regularization 99 to decay generator parameters by a proportion, λ = 10 −5 , at each training step
S2 Additional Experiments
52In this section, we present additional learning curves for some of our architecture and learning policy experiments are in fig. S2. Learning curves show that cyclic generator learning rates decrease losses, performances for ranges of architecture and learning policy hyperparameters, and the effect of optimizing a generator to minimize maximum loss regions. Test set errors for these experiments, and experiments in the main article, are tabulated in table S1.
53Learning curves for both exponentially decayed and exponentially decayed cyclic 70 generator learning rate schedules are in fig. S2a. They show that multiplying by cyclic decay envelopes accelerates convergence and decreases final losses. Cyclic learning rates often improve training; however, they can also produce oscillations in ANN losses 70 . We were concerned that oscillations would destabilize training as actors learn to predict generator losses. Nevertheless, losses steadily decay for training with normalized generator losses. Augmenting reward functions with subgoal based heuristic rewards can accelerate RL by making problems more tractable 100 . As a result, we add small losses when actors sample probing positions over image edges. Heuristically, samples at image edges yield less information as they have fewer neighbours. Edge losses accelerated convergence in early experiments, before architecture and learning policy were optimized. However, their benefit is less clear in later experiments shown in fig. S2b as actors can learn that edge pixels are less valuable. We find that adding a small penalty, E ≤ 0.1, for sampling pixels at image edges decreases errors, whereas larger penalties destabilize learning.
54Actors are controlled by a two-layer LSTM with n h = 128 hidden units in each cell. To accelerate convergence and decrease computation, LSTM units can be augmented by a linear projection layer with n p < 3n h /4 units 101 . Learning curves in fig. S2c show training with n p = 64, n p = 32 and no projections. Decreasing the number of projection units accelerates convergence; however, it also increases final losses. Further, training becomes increasingly prone to instability as n p increases. As a result, we do not use projection layers in our other experiments.
55In the main article, we show that adding a Sobel loss can decrease MSEs. As a result, we also experimented with other loss functions, such as the maximum MSE of a 5×5 region. Learning curves in fig. S2d show that MSEs result in faster convergence than maximum region losses; however, both loss functions result in similar final MSEs. We expect that MSEs calculated with every output pixel result in faster convergence than maximum region errors as more pixels inform gradient calculations. We expect that a better approach to minimize maximum errors is to use a higher order loss function, such as absolute cubic differences. If training with a higher-order loss function is unstable, it could be stabilized by adaptive learning rate clipping 102 .
56Calculating supervised future losses with Bellman's equation, rather than reinforcement losses with target networks, accelerated convergence, especially in early experiments before architecture and learning policy was optimized. Learning curves for full supervision, supervision linearly decayed to zero in the first 10 5 iterations, and no supervision are shown in fig. S2e. We find that supervised losses did less to accelerate convergence after we refined our architecture and learning policy. However, reinforcement learning based losses continue to result in lower final losses with lower variance c.f. table S1.
57Although experience replay buffer sizes near 10 6 are popular, reinforcement learning can be sensitive to replay buffer size 67 . However, learning curves in fig. S2d do not show a clear relationship between final errors and the size of our replay buffer or the average number of times each history is replayed from it. We did find that increasing replay buffer size and decreasing average number of replays decrease small learning curve oscillations [73][74][75] with a period of about 2000 iterations. However, the size of oscillations does not appear to affect performance.
58Generator learning rate optimization is shown in fig. S3. To find the best initial learning rate for ADAM optimization, we increased the learning rate until training became unstable, as shown in fig. S3a. We performed the learning rate sweep over 10 4 iterations to avoid results being complicated by losses rapidly decreasing in the first couple of thousand. The best learning rate was then selected by training for 10 5 iterations with learning rates within a factor of 10 from a learning rate 10× lower than
16/20
59where training became unstable, as shown in fig. S3b. We performed initial learning rate sweeps in fig. S3a for both ADAM and stochastic gradient descent 43 (SGD) optimization. We chose ADAM as it is less sensitive to hyperparameter choices than SGD, and ADAM is recommended in the RDPG paper 48 .
S3 Test Set Errors
60Test set errors for every graph in the main text and supplementary information are tabulated in table S1. However, they should be interpreted with caution as learning was unstable in some of our experiments.
Figure
61Label Mean Std Dev Figure fig. 4 and fig. S2, and have the same labels in figure legends.
S4 Distortion Correction
62We expect that experimental adaptive partial STEM will be limited by probing position errors. Nevertheless, we propose that cyclic generators 89 could be trained to correct position errors. To be clear, this section is intended to be starting point for future research. It outlines a method to train cyclic generators that could be refined or improved upon. Let I partial and I raster be unpaired partial scans and raster scans, respectively. A binary mask, M, can be constructed to be 1 at nominal probing positions in I partial and 0 elsewhere. We introduce generators G p→r (I partial ) and G r→p (I raster , M) to map from partial scans to raster scans and from raster scans to partial scans, respectively. A mask should be input to the partial generator for it can output an image with an accurate distortion field as distortions depend on scan shapes 34 . Finally, we introduce discriminators D partial and D raster are trained to distinguish between real and generated partial scans and raster scans, respectively, and predict losses that can be used to train generators to create realistic images. In short, partial scans could be mapped to raster scans by minimizing losses L GAN p→r = D raster (G p→r (I partial )) (S1) where L p→r and L p→r are total losses to optimize G p→r and G p→r , respectively. A scalar, b, balances adversarial losses and cycle-consistency losses.
S5 Additional Examples
63Additional sheets of test set adaptive scans are shown in fig. S4 and fig. S5. In addition, a sheet of test set spiral scans is shown in fig. S6. Target outputs were low-pass filtered by a 5×5 symmetric Gaussian kernel with a 2.5 px standard deviation to suppress high-frequency noise.
6417/20 Figure S4. Test set 1/23.04 px coverage adaptive partial scans, target outputs and generated partial scan completions for 96×96 crops from STEM images.
6518/20 Figure S5. Test set 1/23.04 px coverage adaptive partial scans, target outputs and generated partial scan completions for 96×96 crops from STEM images. Figure S6. Test set 1/23.04 px coverage spiral partial scans, target outputs and generated partial scan completions for 96×96 crops from STEM images.
참고문헌 89건
- Evolving Memory Cell Structures for Sequence Learning Lecture notes in computer science · Springer Science+Business Media · 2009 10.1007/978-3-642-04277-5_76
- Multiple Object Recognition with Visual Attention arXiv (Cornell University) · Cornell University · 2014
- Adam: A Method for Stochastic Optimization 2014
- Recurrent Neural Network Regularization arXiv (Cornell University) · Cornell University · 2014 10.48550/arxiv.1409.2329
- Policy Invariance Under Reward Transformations: Theory and Application to Reward Shaping International Conference on Machine Learning · 1999
- On the difficulty of training Recurrent Neural Networks arXiv (Cornell University) · Cornell University · 2012 10.48550/arxiv.1211.5063
- Scanning electron microscopy: an introduction III-Vs Review · Elsevier BV · 2000 10.1016/s0961-1290(00)80006-x
- Accurate Measurement of Liver, Kidney, and Spleen Volume and Mass by Computerized Axial Tomography Annals of Internal Medicine · American College of Physicians · 1979 10.7326/0003-4819-90-2-185
- Info-Greedy Sequential Adaptive Compressed Sensing IEEE Journal of Selected Topics in Signal Processing · Institute of Electrical and Electronics Engineers · 2015 10.1109/jstsp.2015.2400428
- On the Theory of the Brownian Motion Physical Review · American Institute of Physics · 1930 10.1103/physrev.36.823
- Noninvasive molecular imaging of small living subjects using Raman spectroscopy Proceedings of the National Academy of Sciences · National Academy of Sciences · 2008 10.1073/pnas.0710575105
- Special Issue: Dynamics of Molecular Systems Physics Today · AIP Publishing · 1990 10.1063/1.881259
- Sparse imaging for fast electron microscopy Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2013 10.1117/12.2008313
- Long Short-Term Memory Neural Computation · The MIT Press · 1997 10.1162/neco.1997.9.8.1735
- Bayesian Compressive Sensing IEEE Transactions on Signal Processing · Institute of Electrical and Electronics Engineers · 2008 10.1109/tsp.2007.914345
- Communications-Inspired Projection Design with Application to Compressive Sensing SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2012 10.1137/120878380
- Radiation damage in the TEM and SEM Micron · Elsevier BV · 2004 10.1016/j.micron.2004.02.003
- A reinterpretation of the policy oscillation phenomenon in approximate policy iteration Neural Information Processing Systems · 2011
- Human-level control through deep reinforcement learning Nature · Nature Portfolio · 2015 10.1038/nature14236
- Sub-Nyquist artefacts and sampling moiré effects Royal Society Open Science · Royal Society · 2015 10.1098/rsos.140550
- Analysis and improvement of policy gradient estimation Neural Networks · Elsevier BV · 2011 10.1016/j.neunet.2011.09.005
- Backpropagation through time: what it does and how to do it Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1990 10.1109/5.58337
- Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation 2014 10.3115/v1/d14-1179
- Reinforcement Learning Algorithm for Partially Observable Markov Decision Problems Neural Information Processing Systems · 1994
- ImageNet Classification with Deep Convolutional Neural Networks Neural Information Processing Systems · 2012
- Variable Density Compressed Image Sampling IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2009 10.1109/tip.2009.2032889
- Computerized Axial Tomography with the EMI Scanner Radiology · Radiological Society of North America · 1974 10.1148/110.1.109
- Correcting nonlinear drift distortion of scanning probe and scanning transmission electron microscopies from image pairs with orthogonal scan directions Ultramicroscopy · Elsevier BV · 2015 10.1016/j.ultramic.2015.12.002
- Optimizing deep learning hyper-parameters through an evolutionary algorithm 2015 10.1145/2834892.2834896
- Simulated Annealing Algorithm for Deep Learning Procedia Computer Science · Elsevier BV · 2015 10.1016/j.procs.2015.12.114
- Memory-based control with recurrent neural networks arXiv (Cornell University) · Cornell University · 2015 10.48550/arxiv.1512.04455
- Dynamic scan control in STEM: spiral scans Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2016 10.1186/s40679-016-0020-3
- Suppressing Electron Exposure Artifacts: An Electron Scanning Paradigm with Bayesian Machine Learning Microscopy and Microanalysis · Oxford University Press · 2016 10.1017/s1431927616011417
- An overview of gradient descent optimization algorithms arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1609.04747
- Hybrid computing using a neural network with dynamic external memory Nature · Nature Portfolio · 2016 10.1038/nature20101
- Combating Reinforcement Learning's Sisyphean Curse with Intrinsic Fear arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1611.01211
- Dynamic X-ray diffraction sampling for protein crystal positioning Journal of Synchrotron Radiation · Wiley · 2016 10.1107/s160057751601612x
- Towards the low-dose characterization of beam sensitive nanostructures via implementation of sparse image acquisition in scanning transmission electron microscopy Measurement Science and Technology · IOP Publishing · 2017 10.1088/1361-6501/aa57df
- Precision controlled atomic resolution scanning transmission electron microscopy using spiral scan pathways Scientific Reports · Nature Portfolio · 2017 10.1038/srep43585
- A Framework for Dynamic Image Sampling Based on Supervised Learning IEEE Transactions on Computational Imaging · Institute of Electrical and Electronics Engineers · 2017 10.1109/tci.2017.2777482
- Parameter Space Noise for Exploration arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1706.01905
- Long Short-Term Memory Projection Recurrent Neural Network Architectures for Piano’s Continuous Note Recognition Journal of Robotics · Hindawi Publishing Corporation · 2017 10.1155/2017/2061827
- Sparse fast Fourier transform for exactly sparse signals and signals with additive Gaussian noise Signal Image and Video Processing · Springer Science+Business Media · 2017 10.1007/s11760-017-1177-5
- Scanning distortion correction in STEM images Ultramicroscopy · Elsevier BV · 2017 10.1016/j.ultramic.2017.09.003
- Deep Neuroevolution: Genetic Algorithms Are a Competitive Alternative for Training Deep Neural Networks for Reinforcement Learning arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1712.06567
- Addressing Function Approximation Error in Actor-Critic Methods arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1802.09477
- Distributed Distributional Deterministic Policy Gradients arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1804.08617
- Scanning transmission electron microscopy: A review of high angle annular dark field and annular bright field imaging and applications in lithium-ion batteries Chinese Physics B · IOP Publishing · 2018 10.1088/1674-1056/27/6/066107
- Theoretical framework of statistical noise in scanning transmission electron microscopy Ultramicroscopy · Elsevier BV · 2018 10.1016/j.ultramic.2018.06.014
- Neural Architecture Search: A Survey arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1808.05377
- Resolution enhancement in scanning electron microscopy using deep learning Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-48444-2
- Distilling Policy Distillation arXiv (Cornell University) · Cornell University · 2019
- AdaNet: A Scalable and Flexible Framework for Automatically Learning Ensembles arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1905.00080
- Learning Surrogate Losses arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1905.10108
- Recurrent Models of Visual Attention arXiv (Cornell University) · Cornell University · 2014
- Improving electron micrograph signal-to-noise with an atrous convolutional encoder-decoder Ultramicroscopy · Elsevier BV · 2019 10.1016/j.ultramic.2019.03.017
- TensorFlow: A system for large-scale machine learning arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1605.08695
- Reinforcement learning for neural architecture search: A review Image and Vision Computing · Elsevier BV · 2019 10.1016/j.imavis.2019.06.005
- Unpaired Image-to-Image Translation Using Cycle-Consistent Adversarial Networks 2017 10.1109/iccv.2017.244
- On the Practical Computational Power of Finite Precision RNNs for Language Recognition 2018 10.18653/v1/p18-2117
- Learning values across many orders of magnitude arXiv (Cornell University) · Cornell University · 2016
- Continuous control with deep reinforcement learning arXiv (Cornell University) · Cornell University · 2016
- Cyclical Learning Rates for Training Neural Networks 2017 10.1109/wacv.2017.58
- Learning Transferable Architectures for Scalable Image Recognition 2018 10.1109/cvpr.2018.00907
- Real-Time Data Processing using Python in DigitalMicrograph Microscopy and Microanalysis · Oxford University Press · 2019 10.1017/s1431927619001909
- Deep Learning-Based Point-Scanning Super-Resolution Imaging bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2019 10.1101/740548
- A Reinforcement Learning-Based Markov-Decision Process (MDP) Implementation for SRAM FPGAs IEEE Transactions on Circuits & Systems II Express Briefs · Institute of Electrical and Electronics Engineers · 2019 10.1109/tcsii.2019.2943958
- A Survey on Data Collection for Machine Learning: A Big Data - AI Integration Perspective IEEE Transactions on Knowledge and Data Engineering · IEEE Computer Society · 2019 10.1109/tkde.2019.2946162
- Deep Learning Supersampled Scanning Transmission Electron Microscopy arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1910.10467
- Practical Security Analysis of Reference Pulses for Continuous-Variable Quantum Key Distribution Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-54249-0
- Modeling Neural Architecture Search Methods for Deep Networks arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1912.13183
- Asymptotic Optimality of Finite Model Approximations for Partially Observed Markov Decision Processes With Discounted Cost IEEE Transactions on Automatic Control · Institute of Electrical and Electronics Engineers · 2019 10.1109/tac.2019.2907172
- Automated machine learning: Review of the state-of-the-art and opportunities for healthcare Artificial Intelligence in Medicine · Elsevier BV · 2020 10.1016/j.artmed.2020.101822
- Artificial-intelligence-driven scanning probe microscopy Communications Physics · Nature Portfolio · 2020 10.1038/s42005-020-0317-3
- Partial Scanning Transmission Electron Microscopy with Deep Learning Scientific Reports · Nature Portfolio · 2020 101038s41598020652610
- Convolutional Neural Networks for Inverse Problems in Imaging: A Review IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2017 10.1109/msp.2017.2739299
- Communications-Inspired Projection Design with Application to Compressive Sensing SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2012 10.1137/120878380
- Partial Scanning Transmission Electron Microscopy with Deep Learning Scientific Reports · Nature Portfolio · 2020 10.1038/s41598-020-65261-0
- Electron-polaron dichotomy of charge carriers in perovskite oxides Communications Physics · Nature Portfolio · 2020 10.1038/s42005-020-0330-6
- Adaptive learning rate clipping stabilizes learning Machine Learning Science and Technology · IOP Publishing · 2020 10.1088/2632-2153/ab81e2
- Deep Reinforcement Learning: An Overview Lecture notes in networks and systems · Springer International Publishing · 2017 10.1007/978-3-319-56991-8_32
- Warwick electron microscopy datasets Machine Learning Science and Technology · IOP Publishing · 2020 10.1088/2632-2153/ab9c3c
- Can AutoML outperform humans? Fraunhofer-Publica (Fraunhofer-Gesellschaft) · Fraunhofer-Gesellschaft · 2020 10.1145/3448326.3448353
- Atomic Force Microscopy Physics Today · AIP Publishing · 1990 10.1063/1.881238
- Ludwig: a type-based declarative deep learning toolbox arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1909.07930
- High-Quality Self-Supervised Deep Image Denoising arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1901.10277
- Model Evaluation, Model Selection, and Algorithm Selection in Machine\n Learning arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1811.12808
- LeFlow: Enabling Flexible FPGA High-Level Synthesis of Tensorflow Deep\n Neural Networks arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1807.05317
- An Empirical Exploration of Recurrent Network Architectures International Conference on Machine Learning · 2015