Introduction

A significant advancement in the semiconductor technology has led to the use of phase change memory (PCRAM) in a commercial product to perfect the storage system1,2,3. As the most important key material of PCRAM, Ge2Sb2Te5 (GST) alloy4,5, is proved to have long cyclability6, high density7, and nanosecond switching speed8 characteristics. Induced by thermal annealing, amorphous (a-) GST material will crystallize into a metastable face-centered-cubic (f-) structure (Fm\(\overline{3}\)m, a = 6.02 Å) at ~150 °C with a cationic Ge/Sb/vac f-sublattice and an anionic Te f-sublattice, accompanied by more than 4 orders of magnitude resistance decreasing9,10. Such a huge resistance contrast between a- and f-phase is utilized to realize information storage in GST based PCRAM devices11,12. If f-phase material was overheated, for example, 320–350 °C, it will transform into stable trigonal structure (P\(\overline{3}\)m1, abc stacking sequence feature of (0001) planes) with a further resistance decreasing, which was often indexed with hexagonal (h-) phase (a = 4.20 Å, c = 16.96 Å)10,13.

Such a stable h-phase would worsen the storage performance due to the large reset current14, big volume shrinkage15, supernormal mechanical stress16,17, and bad cyclability18. The specific local atomic arrangements in h-phase may be also an advantage in recently proposed interfacial phase change memory (iPCM) devices19, however in traditional T-cell structure3, phase change material is deposited without precision crystallographic texture control, and poor-quality interface with multiple grains in h-phase requires substantially higher SET/RESET switching energy. Thus, preventing the formation of h-phase is still a critical issue for PCRAM application. Unfortunately, at the moment, the atomic motif of different crystalline structures in GST alloy has not even been unambiguously resolved. As for f-phase, Yamada et al. claimed that Te atoms occupy the anion sites, and Ge, Sb, and intrinsic vacancies randomly occupy the cation sites20,21, resulting in an atomic stacking sequence along [111] direction of f-lattice ([0001] direction in h-lattice) depicted as below: –(Te–Ge/Sb/Vacancy)–. While Sun et al. claimed that the stable configuration should make Ge, Sb atoms, and intrinsic vacancies locate in the separate layers22, and recently they calculated that f-phase is actually polymorphic, varying from randomly distributed vacancies to highly ordered vacancy layers23. By using an element-resolved atomic imaging method, Zhang et al. confirmed a randomly distributed vacancies f-phase24,25, while no direct element-resolved evidence was reported for the polymorphic state in f-phase at present. As regards to stable h-phase, it is characteristic of nine-layer stacking blocks along [0001] orientation, due to the immature of the analysis means, the exact atomic arrangement is still under debate, mainly including three possible stacking sequences along [0001] orientation: (a) Kooi model26: –(Te–Sb–Te–Ge–Te–Ge–Te–Sb–Te)–; (b) Petrov model27: –(Te–e–Te–Sb–Te–Sb–Te–Ge–Te)–; and (c) Matsunaga model28: –(Te–Ge0.44Sb0.56–Te–Ge0.56Sb0.44–Te–Ge0.56Sb0.44–Te–Ge0.44Sb0.56–Te)–. Density functional theory calculations demonstrated that the most stable configuration is favor to Kooi sequence22,29,30,31. While Da Silva et al. claimed that the stable configuration should make Ge and Sb atoms on the opposite side surrounded with Te atoms to release strain energy, and leads to the intermixing Ge and Sb atoms in the (0001) planes32. Controversy not only appears in the theoretical aspect, but also in the experimental observations. In the absorption coefficient experiment, it claims that the Petrov sequence fits better to the measurement33. However, the large broadening phenomenon observed in Raman peaks34, and the non-uniform contrast of cationic layers35,36 from high-angle annular dark-field scanning transmission electron microscopy (HAADF-STEM) image are both inclined to Matsunaga sequence.

Considering the plausible similar atomic sequence in f- and h-lattice, researchers tend to believe a diffusionless controlled mechanism should happen during the whole crystal transition process22,37. For example, the shearing martensitic mechanism with a twisting atomic movement38,39, the epitaxial growth mechanism through a continuous accumulation40,41, and recently, a vacancy ordering mechanism which emphasizes the critical role of the vacancy aggregation behavior24,25,42,43. Though above-mentioned mechanisms seem to be very intriguing, puzzles in the atomic arrangement of different structures, especially the intermediate (i-) state, obstruct the clarification of the exact transition mechanism. Hence, tracing the atom migration behavior during the whole process would be a crucial and effective method to deduce the transition mechanism.

Here, we show how initial f-phase transforms into stable h-phase at the atomic scale occurs using atomic resolution energy dispersive X-ray spectroscopy (EDS). More specifically, from initial f-phase to different degree i-phase and to h-phase, cationic atoms will gradually migrate to the specific (111) layers from the completely disordered state to partial ordered distribution. Besides, Ge and Sb atoms show different migration behaviors, resulting in different cationic ordered extent i-phases. In stable h-phase, Sb atoms aggregate in the outer cationic layers, while Ge atoms aggregate in the inner cationic layers in the nine-layer blocks, manifesting the following suggested stacking sequence: –Te–Sbx/Gey–Te–Gex/Sby–Te–Gex/Sby–Te–Sbx/Gey–Te– (x > y). Through the visual atomic identification of f-to-h transition fragments in GST material, we claim that it is a gradual change process dominated by the directed migration of Ge/Sb atoms, which provides a profound understanding of phase change mechanism between similar crystal structures, and guides the optimization of GST alloy for PCRAM application in the future.

Results

The direct visualization of f-phase arrangement on atomic level

Figure 1 signifies the atomic arrangement of GST alloy in metastable f-phase annealed at 150 °C for 5 min. Owing to the incoherent scattering intrinsic of STEM-HAADF technique, the intensity of the HAADF image is roughly proportional to Z2 (ref. 44), where Z is the atomic number. In GST alloy, the atomic number of Ge, Sb, and Te is 32, 51, and 52, respectively, and the corresponding HAADF image projected along \([1\overline{1}0]\) orientation demonstrates a periodical contrast–intensity fluctuation in Fig. 1a, fitting well with the assumption that Ge and Sb atoms occupy cationic sites, and Te atoms occupy anionic sites24,25,37,45. After all, HAADF method is an indirect technology to analyze the atomic arrangement of the structure, we then used atomic EDS mapping technique46,47 to directly determine the location of different elements as depicted in Fig. 1b–d, which also shows a periodical contrast–intensity fluctuation for Ge (red), Sb (green), and Te (blue) elements taken from the yellow rectangle area. The associated EDS profile along [111] orientation was also inset in the right side of each image, which is integrated in its perpendicular direction, the \([11\overline2]\) orientation for f-phase. By evaluating the intensity of the profile, we could qualitatively evaluate the concentration of each element, and the almost same height level at each cationic layer unambiguously demonstrates the random distribution of three elements in initial f-phase. If we overlap the atomic mapping pictures of Ge, Sb, and Te elements as shown in Fig. 1e–h, it can be clearly seen that Te atoms occupy anionic sublattice, while Ge and Sb atoms occupy cationic sublattice with plenty of vacancy sites together considering the stoichiometric of the film, in line with the Yamada atomic model20 as inset in Fig. 1a.

Fig. 1
figure 1

Atomic resolution elemental maps of f-phase GST. a A prototype HAADF image of f-phase GST alloy projected along \([1\overline{1}0]\) orientation, exhibiting a periodical contrast–intensity fluctuation. The inset is the corresponding atomic model, and the distance between Te–Te layers is 0.350 ± 0.006 nm. Lines 1–6 denote the cationic layer, respectively. bd Atomic resolution maps of Ge, Sb, and Te atoms taken from area 1, respectively. The EDS profiles along [111] orientation are presented on the right-hand side showing uniform height peaks. eh The corresponding overlap results of every two elements by pairs, and the overlap of three elements, indicating that Ge/Sb atoms indeed occupy cationic sites, and Te atoms occupy anionic sites in f-phase. Scale bar: (ah) 1 nm

Ordered cation migration during f-to-h transition process

Though literatures emphasize the diffusionless mechanism during the structure transition, to date, no direct evidence were given on atom arrangements in i-phase. In the following section, the atomic arrangement of different i-phases is discussed in detail to shed light on the transition mechanism. Figure 2a is the HAADF image of GST film annealed at 290 °C for 5 min projected along \([1\overline{1}0]\) orientation, in which cation migration has already proceeded. The inset atomic model shown in Fig. 2a indicates the position of cation and anion layers with typical f-phase stacking sequence. Compared to Fig. 1a, one of the most prominent changes is that two horizontal dark contrast atomic columns appear as denoted by arrows (lines 1 and 6), which are separated by nine-layer blocks. Extracted from the dark atomic columns (yellow rectangular region), the corresponding contrast profile along [111] orientation has a tendency to decrease from left to right side as shown in Fig. 2b. Area “A” shows uniform cation distribution almost same with Fig. 1. While the cationic layer atoms at areas “B” and “C” are partially missing, or move somewhere else. Besides, the atomic spacing of Te–Te layers above and below the dark atomic column also shows a decreasing trend, from 0.356 ± 0.008 nm (area “A”) to 0.346 ± 0.010 nm (area “B”) to 0.329 ± 0.010 nm (area “C”) as shown in the bottom of Fig. 2b, which may imply gradual migration of cationic atoms in the corresponding sites from “A” to “B” to “C”.

Fig. 2
figure 2

Atomic resolution elemental map of i-phase GST at initial stage. a The HAADF image of i-phase GST alloy projected along \([1\overline{1}0]\) orientation, the dashed white line along anionic atoms shows f-phase stacking feature. The atomic model is shown in the center area, and lines 1–6 denote the cationic layer, respectively. b HAADF image extracted from the yellow rectangle in (a), and the intensity profile is calculated from the dark columns (denoted as red rectangle in the lower part) exhibiting a decreasing intensity trend. ch are the atomic mapping resolutions of Ge, Sb, and Te atoms taken from areas 2 and 3, respectively. The EDS profiles along [111] orientation are also presented on the right-hand side of each picture. Scale bar: (ah) 1 nm

To verify it, atomic EDS mapping was utilized to explore the distribution of Ge, Sb, and Te elements in area 2 (denoted as magenta rectangle) shown in Fig. 2c–e and area 3 (denoted as orange rectangle) shown in Fig. 2f–h. The corresponding overlaps of three elements in areas 2 and 3 confirm that Ge and Sb columns occupy the cationic sites, while Te columns occupy the anionic sites in Supplementary Figure 4 and Supplementary Figure 5. When the cation starts to migrate, Sb columns no longer retain a disordered distribution in cationic site, and the corresponding EDS profile clearly shows that lines 1 and 6 possess lower peaks than other lines. As a contrast for Ge, it still shows a uniform contrast in every cationic site, and the corresponding EDS profiles projected along [111] orientation have the same level from lines 1 to 6. Therefore, the observed dark contrast in area 2 would be firstly ascribed to the migration of Sb atoms.

When moving to area 3, with a further decreased concentration of cationic layer atoms in yellow rectangular region of Fig. 2a, the migrated cation is still mainly dominated by Sb, showing a deeper migration behavior in Fig. 2g, since the peaks of the EDS profiles in lines 2 and 5 are much higher than those in lines 1 and 6. Meanwhile, the migration of Ge atoms starts, manifesting as slightly higher peaks in lines 3 and 4 than those of in lines 1, 2, 5, and 6 from its corresponding EDS profile in Fig. 2f. Hence, the migration of Ge atoms occurs after Sb atoms. As for Te columns, it always shows a uniform contrast with a nearly same height profile, indicating that Te atoms as stable as frames here.

To further explore cationic migration in i-phase, GST film was annealed at 290 °C for 30 min. Figure 3a is the corresponding HAADF image projected along \([1\overline{1}0]\) orientation, where lines 1 and 6 show very dark contrasts in HAADF image and the corresponding Te–Te atomic spacing above and below the declining cationic layer is about 0.304 ± 0.007 nm, a value close to the Van der Waals gap spacing expected in h-phase (0.285 nm)28, indicating that more and more Ge/Sb atoms have migrated to the neighbor cationic layers. In this i-state, Ge/Sb atoms still occupy the cationic sites, and Te atoms occupy anionic sites as shown in Fig. 3e and Supplementary Figure 6. For more, Te always shows a uniform contrast in anionic sites depicted in Fig. 3d, while a vast of Ge and Sb atoms in lines 1 and 6 have migrated into adjacent nine-layer building blocks as shown in Fig. 3b, c, resulting in lowest peaks in the dark contrast cationic layers. Inspecting the peaks in lines 1 and 6 more carefully, we can find the two peaks are very significant for Ge atoms in Fig. 3b, while no such obvious peaks can be found for Sb atoms in Fig. 3c, demonstrating a deeper migration behavior for Sb element. This evidence can also explain the very dark contrast in lines 1 and 6 observed from HAADF image, since the intensity of HAADF is more sensitive for Sb (Z = 51) than the case for Ge (Z = 32), thus a deeper migration behavior of Sb element would significantly reduce the intensity of HAADF image. Besides, Ge and Sb elements do not follow the same migration law, and Ge atoms gradually converge to the middle of nine layers building, which is reflected in that lines 3 and 4 have the highest peaks along [111] direction compared to other lines as shown in Fig. 3b. Sb atoms seem like the edge side of nine layers building block, as shown in Fig. 3c, and the peaks in lines 2 and 5 are significantly higher than the situation in other lines.

Fig. 3
figure 3

Atomic resolution elemental maps of i-phase GST at a deeper migration degree. a HAADF image of i-phase GST alloy projected along \([1\overline{1}0]\) orientation. Lines 1–6 denote the cationic layer, respectively. be The atomic resolution maps of Ge, Sb, and Te atoms and the overlay of three elements taken from area 4 (denoted as yellow rectangle). The EDS profiles along [111] orientation are present on the right-hand side in every picture. Scale bar: (ae) 1 nm

Directly resolving the atomic arrangement of h-phase

Even in the deepest migration case in area 4, the alloy still retains the cubic stacking sequence. If we keep raising the annealing temperature, cubic lattice of GST alloy will change into h-state. Figure 4 exhibits the atomic EDS mapping results of h-GST structure projected along \([2\overline{1}\overline{1}0]\) orientation (\([1\overline{1}0]\) orientation in f-phase) after annealing at 350 °C for 5 min. By inspecting the STEM-HAADF image in Fig. 4a, it is seen that the anionic atoms have a mismatch as denoted by the dashed lines between adjacent building blocks, showing a typical h-phase feature. The distance of Van der Waals gap is about 0.288 ± 0.008 nm, very close to the value (0.285 nm) extracted from X-ray diffraction (XRD) experiment28. Similar to f-phase, Ge and Sb atoms still occupy cationic sites, while Te atoms occupy anionic sites as shown in Supplementary Figure 7. In h-phase, the associated EDS profile along [0001] orientation (corresponding [111] orientation in f-phase) was also inset in the right side of each image, which is integrated in its perpendicular direction, here, the \([01\overline{1}0]\)orientation. From the Ge/Sb atomic mapping shown in Fig. 4b, c, a vast majority of Ge and Sb atoms in lines 1 and 6 have already migrated away to other cationic layers. In the blocks, Ge atoms are concentrated in the inner cationic layers (lines 3 and 4), while Sb atoms like to stay in the outer cationic layers (lines 2 and 5), similar to the situation in area 4. As for Te element, it still retains a uniform contrast, except a small lattice mismatch between adjacent blocks (denoted by three translucence lines), a fingerprint for h-lattice. Previously, Lotnyk et al. also concluded a similar atomic arrangement by comparing simulation and experimental intensity of the STEM-HAADF image48, while in this report we can directly see the atomic arrangement of h-phase of GST alloy from the advanced atomic-resolved EDS mapping results without additional simulation. Furthermore, it is clear that there is a high similarity between h- and i-phases on the atomic arrangement side, which strongly suggests that f-to-h structural transition could fluently proceed by gradually cation migration.

Fig. 4
figure 4

Atomic resolution elemental maps of h-phase GST. a HAADF image of h-phase GST alloy projected along \([2\overline{1}\overline{1}0]\) orientation. Two dark contrast columns signify the Van der Waals gap labeled as lines 1 and 6, in which the Te–Te distance is about 0.288 ± 0.008 nm. Lines 2–5 denote the cationic layer in the nine-layer building block, respectively. bd The atomic resolution maps pictures of Ge, Sb, and Te atoms taken from cyan rectangle in (a). The EDS profiles along [0001] orientation are present on the right-hand side in every picture. e The Ge/Sb ratio comparison between the experiment result and Matsunaga model. The pink line represents that the occupancy of Ge and Sb is same in cationic layers. Scale bar: (ad) 1 nm

Qualitatively, we have effectively traced the migration behavior of Ge/Sb elements during f-to-h transition, while it would be much complicated when conducting quantitatively concentration analysis. Roughly, considering that no obvious peaks can be found in lines 1 and 6, it is reasonable to conclude that Ge and Sb atoms tend to locate in the nine-layer building blocks in h-phase. Therefore, after extracting the EDS counts of each cationic layer for Ge and Sb elements from the raw data, we can roughly evaluate the occupancy of Ge and Sb atoms in each cationic layer, respectively. Note that, due to the elastic and thermal scattering of the electron probe49,50, there is a non-negligible contribution of EDS signal from the nearby columns to the interest columns, and every atomic column (cationic/anionic) has signal of three elements as shown in the Supplementary Note 1, Supplementary Table 1, and Supplementary Figure 8, which would obstruct the actual elements concentration ratio, a similar experiment report was also previously discussed in SrTiO3 sample49. Regardless of the intrinsic defects from the electron probe, the occupy ratios of Ge/Sb from cationic layer 2 to 5 were plotted (data processing and discussion are shown in the Supplementary Note 2, Supplementary Table 2 and Supplementary Table 3) and compared with the curve calculated from Matsunaga model in Fig. 4e, where the dashed pink represents that the same occupancy ratio for Ge and Sb. The obtained curve for Ge/Sb occupancy ratios in each cationic layer still has the same occupancy trend with Matsunaga model, that is, Ge element prefers the inner cationic layers and Sb element likes the outer cationic layers in the blocks.

Thermally-induced f-to-h phase transition mechanism

After obtaining the atomic distribution in different crystalline states, we can draw a clear scenario of the thermally-induced f-to-h phase transition for GST film at the atomic scale as shown in Fig. 5. At initial f-phase, Ge, Sb, and vacancies randomly occupy the cationic sites. When the temperature rises, cationic atoms in layer I (corresponding to (111) layer in f-phase) start to migrate to the nearby vacancy sites in layer II, and Sb atoms move earlier than Ge atoms as denoted by the arrows in Fig. 5a, forming a vacancy aggregation area in layer I as shown in Fig. 5b afterwards. The earlier Sb migration behavior may be ascribed to the migration energy barriers difference between Sb and Ge. Previously, Zhang et al. found that the migration energy barrier to move one Sb atom to the vacancy site is smaller than to move one Ge atom by using the nudged elastic band (NEB) method25. Sun et al. also obtained a similar conclusion from the viewpoint of diffusion energy23, specifically, the diffusion energy to move two Sb atoms from the Te–Te vacancy layer to the Sb atomic layer (Eact = 0.026 eV) is smaller than the case in Ge atom (Eact = 0.035 eV), and the reverse process for both elements would be significantly higher. Afterwards, the rest of cationic atoms in layer I, mainly the Ge atoms, would gradually migrate to layer III via the transition layer II as denoted by the arrows in Fig. 5b. This process also seems to be related to the energy barrier differences for Ge and Sb atoms in layer II after a plenty of Sb atoms have occupied in layer II, which results in a higher migration energy barrier for Sb atoms. After a majority of Ge and Sb atoms in layer I have already migrated to the vacancy sites in layer II and layer III, the bonding between Te–Te layers is nearly negligible22, and the atomic arrangement in the nine-layer building block of f-phase is very similar to that in the h-structure, ready for the final transformation as shown in Fig. 5c. At last, a slight slip of stacking blocks along \([\overline{2}11]\) orientation (\([10\overline{1}0]\) orientation in h-phase) will eventually form the h-structure in Fig. 5d, with a stacking sequence similar to Matsunaga model.

Fig. 5
figure 5

A schematic scenario of the f-to-h phase transition. a The initial f-phase projected along [111] direction, in which cationic sites are randomly occupied by Ge, Sb, and vacancy. Red and green arrows denote the possible migration paths of the cationic atoms from layer I to layer II induced by thermal annealing. b The atomic configuration of i-phase after the migration process described in (a). Red and green arrows denote the possible migration paths of the cationic atoms from layer I to layer III via the transition layer II afterwards. c The atomic configuration of a deeper migration extent i-phase after the majority of Ge and Sb atoms in layer I have migrated, h-lattice-like atom arrangement makes the stacking block easily to slip to transition into h-phase. Orange arrow denotes the slip direction of the block. d The atomic configuration for the stable h-phase projected along [0001] direction, where Ge element prefers the inner cationic layers and Sb element likes the outer cationic layers in the blocks

Though many literatures claim that Kooi sequence is the stable configuration in h-phase, in which Sb completely occupy the outer layers and Ge occupy the inner layers, the hierarchy in energy between Kooi sequence and Matsunaga sequence is very small (just less than 5 meV per atom), indicating that the mentioned stacking sequences are both energy favorable. In fact, the difference in energy between Kooi sequence and Matsunaga sequence reported by Sun et al. (2 meV/atom) is of the same order of magnitude expected for the free energy contribution (at 300 K) due to the configuration entropy of the disordered (intermixing) Matsunaga sequence (\(\frac{4}{9}k_BT\,{\mathrm{In}}\,2 = 8\,{\mathrm{meV/atom}}\), in which kB is the Boltzmann constant, T is the absolute temperature) as pointed by Caravati et al.34. One may doubt the possible atomic movement process making Matsunaga sequence transform into Kooi sequence induced by further annealing, for example, interchanging the position between Ge and Sb atoms in the blocks. After the cationic migration process, the majority of the vacant positions would be occupied by Ge or Sb atoms except for Van der Waals gap, though there may be still some excess vacancies exist in the nine-layer building according to the conducting transport measurements51, such concentrations of excess vacancies compatible with the experimental carrier densities are very small. Thus, the proposed interchanging process seems to be difficult than the migration behavior which was assisted with a lot of random vacancies in f-phase. Interestingly, Matsunaga even found that the mixture Ge/Sb situation in h-phase still retains when annealed up to 923 K28, close to the melting temperature of the alloy52. Therefore, we speculate that the obtained Matsunaga sequence-like h-phase arrangement is a stable configuration which is much related to the forming process, that is, the different migration behaviors of Ge and Sb atoms makes an unbalanced cationic distribution in the obtained h-phase. Besides, the present configuration also leads to a more favorable charge balance in the three coordinated edge Te atoms, since SbIII atoms possess a higher oxidation state than Ge[II 53.

Discussion

In summary, by utilizing advanced atomic-resolved EDS mapping technique, we systematically explore the atomic arrangement of different crystalline state during f-to-h phase transformation. Under external thermal annealing, randomly distributed Ge and Sb atoms gradually migrate to the neighbor (111) cationic layers, forming nine-layer blocks of i-phase very similar to h-lattice. The migration process is partial orderly, Sb atoms migrate earlier than Ge atoms, meanwhile, Ge element prefers the inner cationic layers, and Sb element likes the outer cationic layers in the formed h-lattice-like stacking blocks. The deeper Ge/Sb migration degree of i-phase, the closer the atomic arrangement is to the h-lattice. In the final nine-layer building block of h-phase, Sb atoms aggregate in the outer cationic layers, and Ge atoms aggregate in the inner cation layers, forming the following suggested stacking sequence: –Te–Sbx/Gey–Te–Gex/Sby–Te–Gex/Sby–Te–Sbx/Gey–Te– (x > y) which is similar to the Matsunaga model. In short, through the visual atomic identification of f-to-h transition fragments in GST material, we have connected the whole transition process at atomic level step by step, and successfully solved a crucial problem which has been a source of controversy and debate in the past. At the atomic scale, the key to prevent the formation of h-phase in GST should restrain the migration behavior of Ge and Sb atoms, for example, doping appropriate element into the cationic sites to reduce the vacancy concentration. Undoubtedly, the current results should act as a solid experiment basis for understanding the microscopic properties in GST alloy and pave the way of further application of phase change memory. Further work is also needed to clarify the atomic arrangement in GeTe–Sb2Te3 pseudobinary alloy and the origin of the migration behavior in the phase change material.

Methods

Sample preparation

GST films (~500 nm in thickness) were directly deposited on silicon (100) substrate at room temperature by sputtering a single GST alloy target. The base pressure of the vacuum system is about 2.1 × 10−4 Pa, the Ar flow rate is 80 sccm and the corresponding sputtering pressure is about 0.31 Pa. To obtain a series of crystalline structures, the films undergone thermal annealing process from 150 to 350 °C for different times in rapid thermal processing in an argon atmosphere. By using focus ion beam (FIB) technique, the annealed films were fabricated into cross-section samples in FEI Helios 600 instrument with standard lift out and polishing process, and then cleaned in Gatan 691 PIPS at 0.8 keV for removing the residual contamination and possible damage.

Microstructure characterization

The STEM-HAADF images were captured using the STEM mode of JEM Grand ARM300F microscope with double spherical aberration (Cs) correctors, in which, the inner semi-angle for the dark field detector is larger than 63 mrad. Two windowless EDS detectors, each of which has an active area of 100 mm2, are equipped on JEM Grand ARM300F microscope, which are very close to the specimen with a high solid angle (1.7 sr). By using of the EDS detectors, the average concentrations of Ge, Sb, and Te elements of the GST films were determined to be 19.1, 24.5, and 56.4 at%, i.e., a value close to Ge2Sb2Te5. Since chalcogenide alloy is very sensitive to the accelerate electron beam, the operating voltage is under 80 kV to reduce the damage when conducting atomic EDS experiment and obtaining HAADF images, and in turn has a relatively not good enough signal–noise ratio in the results. Comparing the HAADF image before and after electron beam irradiation, no obvious artificial has been found except for a slight electron damage as shown in Supplementary Figure 1. A convergence semi-angle of 24 mrad and inner acquisition semi-angle of 63 mrad were used in STEM mode. The electron beam current is about 30 pA. The STEM probe size is around 0.08 nm which corresponds to the specified spatial resolution of the STEM instrument. All the raw data of EDS were processed with Wiener filtering which has been widely used to remove noise in HAADF images45,54,55. It has shown that no artefacts are found when comparing Wiener filtering images with raw images56 which was also confirmed in Supplementary Figure 2, implying that we can use Wiener filtering images to effectively identify the location of atomic columns, and qualitatively analyze the corresponding concentration variation in a small area, for example, the interface or the surface area of the nanostructure. Supplementary Figure 3 is a typical atomic EDS mapping result for SrTiO3 sample fitting well with the known cubic perovskite structure.