SearcharxivSearch

arXiv subjects

Zijie Yan

Publications and source records attributed to Zijie Yan.

12 recordsLinked to original sources

Scalable Training of Mixture-of-Experts Models with Megatron Core

Scaling Mixture-of-Experts (MoE) training introduces systems challenges absent in dense models. Because each token activates only a subset of experts, this sparsity allows total parameters to grow much faster than per-token computation, creating coupled constraints across memory, communication, and computation. Optimizing one dimension often shifts pressure to another, demanding co-design across the full system stack. We address these challenges for MoE training through integrated optimizations spanning memory (fine-grained recomputation, offloading, etc.), communication (optimized dispatchers, overlapping, etc.), and computation (Grouped GEMM, fusions, CUDA Graphs, etc.). The framework also provides Parallel Folding for flexible multi-dimensional parallelism, low-precision training support for FP8 and NVFP4, and efficient long-context training. On NVIDIA GB300 and GB200, it achieves 1,233/1,048 TFLOPS/GPU for DeepSeek-V3-685B and 974/919 TFLOPS/GPU for Qwen3-235B. As a performant, scalable, and production-ready open-source solution, it has been used across academia and industry for training MoE models ranging from billions to trillions of parameters on clusters scaling up to thousands of GPUs. This report explains how these techniques work, their trade-offs, and their interactions at the systems level, providing practical guidance for scaling MoE models with Megatron Core.

cs.DC

HYDRA: Unearthing "Black Swan" Vulnerabilities in LEO Satellite Networks

As Low Earth Orbit (LEO) become mega-constellations critical infrastructure, attacks targeting them have grown in number and range. The security analysis of LEO constellations faces a fundamental paradigm gap: traditional topology-centric methods fail to capture systemic risks arising from dynamic load imbalances and high-order dependencies, which can transform localized failures into network-wide cascades. To address this, we propose HYDRA, a hypergraph-based dynamic risk analysis framework. Its core is a novel metric, Hyper-Bridge Centrality (HBC), which quantifies node criticality via a load-to-redundancy ratio within dependency structures. A primary challenge to resilience: the most critical vulnerabilities are not in the densely connected satellite core, but in the seemingly marginal ground-space interfaces. These are the system's "Black Swan" nodes--topologically peripheral yet structurally lethal. We validate this through extensive simulations using realistic StarLink TLE data and population-based gravity model. Experiments demonstrate that HBC consistently outperforms traditional metrics, identifying critical failure points that surpass the structural damage potential of even betweenness centrality. This work shifts the security paradigm from connectivity to structural stress, demonstrating that securing the network edge is paramount and necessitates a fundamental redesign of redundancy strategies.

cs.CR

Interlayer Coupling-Induced Quantum Phase Transition in Quantum Anomalous Hall Multilayers

A quantum phase transition arises from competition between different ground states and is typically accessed by varying a single physical parameter near absolute zero temperature. The quantum anomalous Hall (QAH) effect with high Chern number C has recently been achieved in magnetic topological insulator (TI) multilayers. In this work, we employ molecular beam epitaxy to synthesize a series of magnetic TI penta-layers by varying the thickness of the middle magnetic TI layer, designated as m quintuple layers. Electrical transport measurements demonstrate a quantum phase transition between C = 1 and C = 2 QAH states. For m 1 and m 2, the sample exhibits the well-quantized C = 1 and C = 2 QAH states, respectively. For 1 m 2, we observe a monotonic decrease in Hall resistance from h/e2 to h/2e2 with increasing m, accompanied by a peak in the longitudinal resistance. The quantum phase transition between C = 1 and C = 2 QAH states is attributed to the weakening of the interlayer coupling between the top and the bottom C = 1 QAH layers. Our findings provide a scalable strategy for engineering QAH devices with a tunable Chern number. This approach enables precise control and enhanced functionality in chiral edge current-based electronic devices.

cond-mat.mes-hall

MoE Parallel Folding: Heterogeneous Parallelism Mappings for Efficient Large-Scale MoE Model Training with Megatron Core

Mixture of Experts (MoE) models enhance neural network scalability by dynamically selecting relevant experts per input token, enabling larger model sizes while maintaining manageable computation costs. However, efficient training of large-scale MoE models across thousands of GPUs presents significant challenges due to limitations in existing parallelism strategies. We introduce an end-to-end training framework for large-scale MoE models that utilizes five-dimensional hybrid parallelism: Tensor Parallelism, Expert Parallelism, Context Parallelism, Data Parallelism, and Pipeline Parallelism. Central to our approach is MoE Parallel Folding, a novel strategy that decouples the parallelization of attention and MoE layers in Transformer models, allowing each layer type to adopt optimal parallel configurations. Additionally, we develop a flexible token-level dispatcher that supports both token-dropping and token-dropless MoE training across all five dimensions of parallelism. This dispatcher accommodates dynamic tensor shapes and coordinates different parallelism schemes for Attention and MoE layers, facilitating complex parallelism implementations. Our experiments demonstrate significant improvements in training efficiency and scalability. We achieve up to 49.3% Model Flops Utilization (MFU) for the Mixtral 8x22B model and 39.0% MFU for the Qwen2-57B-A14B model on H100 GPUs, outperforming existing methods. The framework scales efficiently up to 1,024 GPUs and maintains high performance with sequence lengths up to 128K tokens, validating its effectiveness for large-scale MoE model training. The code is available in Megatron-Core.

cs.LG

Llama 3 Meets MoE: Efficient Upcycling

Scaling large language models (LLMs) significantly improves performance but comes with prohibitive computational costs. Mixture-of-Experts (MoE) models offer an efficient alternative, increasing capacity without a proportional rise in compute requirements. However, training MoE models from scratch poses challenges like overfitting and routing instability. We present an efficient training recipe leveraging pre-trained dense checkpoints, training an 8-Expert Top-2 MoE model from Llama 3-8B with less than $1\%$ of typical pre-training compute. Our approach enhances downstream performance on academic benchmarks, achieving a $\textbf{2%}$ improvement in 0-shot accuracy on MMLU, while reaching a Model FLOPs Utilization (MFU) of $\textbf{46.8%}$ during training using our framework. We also integrate online upcycling in NeMo for seamless use of pre-trained weights, enabling cost-effective development of high-capacity MoE models.

cs.LG

Upcycling Large Language Models into Mixture of Experts

Upcycling pre-trained dense language models into sparse mixture-of-experts (MoE) models is an efficient approach to increase the model capacity of already trained models. However, optimal techniques for upcycling at scale remain unclear. In this work, we conduct an extensive study of upcycling methods and hyperparameters for billion-parameter scale language models. We propose a novel "virtual group" initialization scheme and weight scaling approach to enable upcycling into fine-grained MoE architectures. Through ablations, we find that upcycling outperforms continued dense model training. In addition, we show that softmax-then-topK expert routing improves over topK-then-softmax approach and higher granularity MoEs can help improve accuracy. Finally, we upcycled Nemotron-4 15B on 1T tokens and compared it to a continuously trained version of the same model on the same 1T tokens: the continuous trained model achieved 65.3% MMLU, whereas the upcycled model achieved 67.6%. Our results offer insights and best practices to effectively leverage upcycling for building MoE language models. Code is available.

cs.CL

Proximity-Induced Superconductivity in Epitaxial Topological Insulator/Graphene/Gallium Heterostructures

The introduction of superconductivity to the Dirac surface states of a topological insulator leads to a topological superconductor, which may support topological quantum computing through Majorana zero modes. The development of a scalable material platform is key to the realization of topological quantum computing. Here we report on the growth and properties of high-quality (Bi,Sb)2Te3/graphene/gallium heterostructures. Our synthetic approach enables atomically sharp layers at both hetero-interfaces, which in turn promotes proximity-induced superconductivity that originates in the gallium film. A lithography-free, van der Waals tunnel junction is developed to perform transport tunneling spectroscopy. We find a robust, proximity-induced superconducting gap formed in the Dirac surface states in 5-10 quintuple-layer (Bi,Sb)2Te3/graphene/gallium heterostructures. The presence of a single Abrikosov vortex, where the Majorana zero modes are expected to reside, manifests in discrete conductance changes. The present material platform opens up opportunities for understanding and harnessing the application potential of topological superconductivity.

cond-mat.mes-hall

Electrical Switching of the Edge Current Chirality in Quantum Anomalous Hall Insulators

A quantum anomalous Hall (QAH) insulator is a topological state of matter, in which the interior is insulating but electrical current flows along the edges of the sample, in either clockwise (right-handed) or counter-clockwise (left-handed) direction dictated by the spontaneous magnetization orientation. Such chiral edge current (CEC) eliminates any backscattering, giving rise to quantized Hall resistance and zero longitudinal resistance. In this work, we fabricate mesoscopic QAH sandwich (i.e. magnetic topological insulator (TI)/TI/magnetic TI) Hall bar devices and succeed in switching the CEC chirality in QAH insulators through spin-orbit torque (SOT) by applying a current pulse and suitably controlled gate voltage. The well-quantized QAH states with opposite CEC chiralities are demonstrated through four- and three-terminal measurements before and after SOT switching. Our theoretical calculations show that the SOT that enables the magnetization switching can be generated by both bulk and surface carriers in QAH insulators, in good agreement with experimental observations. Current pulse-induced switching of the CEC chirality in QAH insulators will not only advance our knowledge in the interplay between magnetism and topological states but also expedite easy and instantaneous manipulation of the QAH state in proof-of-concept energy-efficient electronic and spintronic devices as well as quantum information applications.

cond-mat.mes-hall

Evolution of Dopant-Concentration-Induced Magnetic Exchange Interaction in Topological Insulator Thin Films

Two essential ingredients for the quantum anomalous Hall (QAH) effect, i.e. topological and magnetic orders, can be combined by doping magnetic ions into a topological insulator (TI) film. Through this approach, the QAH effect has been realized in chromium (Cr)- and/or vanadium (V)-doped TI (Bi,Sb)2Te3 thin films. In this work, we synthesize both V- and Cr-doped Bi2Te3 thin films with controlled dopant concentration using molecular beam epitaxy (MBE). By performing magneto-transport measurements, we find that both systems show an unusual but yet similar ferromagnetic response with respect to magnetic dopant concentration, specifically the Curie temperature does not increase monotonically but shows a local maximum at a critical dopant concentration. Our angle-resolved photoemission spectroscopy (ARPES) measurements show that the Cr/V doping introduces hole carriers into Bi2Te3, which consequently move the chemical potential toward the charge neutral point. In addition, the Cr/V doping also reduces the spin-orbit coupling of Bi2Te3 which drives it from a nontrivial TI to a trivial semiconductor. The unusual ferromagnetic response observed in Cr/V-doped Bi2Te3 thin films is attributed to the dopant-concentration-induced magnetic exchange interaction, which displays the evolution from the van Vleck-type ferromagnetism in a nontrivial magnetic TI to the Ruderman-Kittel-Kasuya-Yosida (RKKY)-type ferromagnetism in a trivial diluted magnetic semiconductor. Our work provides insights into the ferromagnetic properties of magnetically doped TI thin films and facilitates the pursuit of high-temperature QAH effect.

cond-mat.mes-hall

Tunable phase-gradient-based optical tweezers

Conventional optical tweezers are generated by the intensity gradient of highly focused laser beams, but the requirement of strong intensity gradient limits the tunability of optical traps. Here we show a new type of optical tweezers with tunable potential wells by manipulating the phase gradient of light. Using a new method to calculate holograms, we can design desirable phase profiles and intensity distributions of optical patterns. Optical force arising from the phase gradient creates tunable potential wells for versatile optical manipulation, such as trapping nanoparticles in peanut-shaped optical spots, and positioning and shifting nanoparticles in optical gears as demonstrated in our experiments. The phase-gradient-based optical tweezers have several merits including flexible design and easy control, which open a new way for optical trapping and manipulation.

physics.optics

Gradient Sparification for Asynchronous Distributed Training

Modern large scale machine learning applications require stochastic optimization algorithms to be implemented on distributed computational architectures. A key bottleneck is the communication overhead for exchanging information, such as stochastic gradients, among different nodes. Recently, gradient sparsification techniques have been proposed to reduce communications cost and thus alleviate the network overhead. However, most of gradient sparsification techniques consider only synchronous parallelism and cannot be applied in asynchronous scenarios, such as asynchronous distributed training for federated learning at mobile devices. In this paper, we present a dual-way gradient sparsification approach (DGS) that is suitable for asynchronous distributed training. We let workers download model difference, instead of the global model, from the server, and the model difference information is also sparsified so that the information exchanged overhead is reduced by sparsifying the dual-way communication between the server and workers. To preserve accuracy under dual-way sparsification, we design a sparsification aware momentum (SAMomentum) to turn sparsification into adaptive batch size between each parameter. We conduct experiments at a cluster of 32 workers, and the results show that, with the same compression ratio but much lower communication cost, our approach can achieve better scalability and generalization ability.

cs.DC

Simultaneously shaping the intensity and phase of light for optical nanomanipulation

Holographic optical tweezers can be applied to manipulate microscopic particles in arbitrary optical patterns, which classical optical tweezers cannot do. This ability relies on accurate computer-generated holography (CGH), yet most CGH techniques can only shape the intensity profiles while the phase distributions are random. Here, we introduce a new method for fast generation of holograms that allows for simultaneously shaping both the intensity and phase distributions of light. The method uses a discrete inverse Fourier transform formula to directly calculate a hologram in one step, in which a random phase factor is introduced into the formula to enable simultaneous control of intensity and phase. Various optical patterns can be created, as demonstrated by the experimentally measured intensity and phase profiles projected from the holograms. The simultaneous shaping of intensity and phase of light provides new opportunities for optical trapping and manipulation, such as optical transportation of metal nanoparticles in ring traps with linear and nonlinear phase distributions.

physics.optics