Weigao Sun

Weigao Sun

Shanghai Artificial Intelligence Laboratory
4 previous affiliations
30Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Weigao Sun focuses on efficient sequence modeling, large-scale distributed training algorithms, and the integration of mixture-of-experts architectures into foundation models. His trajectory spans from optimizing communication in distributed systems to developing linear attention mechanisms that overcome the quadratic bottlenecks of traditional transformers. Currently, he investigates hybrid architectures and memory-efficient routing strategies to scale reasoning and multimodal capabilities.

Research Trajectory

After completing his PhD at Huazhong University of Science and Technology in 2020, Sun worked as an AI Researcher at Huawei's 2012 Lab, focusing on large-scale distributed training algorithms. A key challenge in scaling deep learning is the communication overhead between GPUs. In CO2: Efficient Distributed Training with Full Communication-Computation Overlap, he addressed the limitations of lower-bandwidth networks by developing methods to synchronize gradients without stalling computation. This work advanced the research direction of Overlapping Communication and Computation in Distributed Learning, demonstrating how to mitigate the communication tax that otherwise yields diminishing returns when adding more hardware.

Joining the Shanghai AI Laboratory, Sun shifted his focus toward fundamental architectural improvements for large language models, specifically targeting the quadratic complexity of standard softmax attention. He contributed to the area of The Expressivity Gap in Linear Attention through the development of the TransNormer architecture. In Scaling TransNormer to 175 Billion Parameters, he and his collaborators introduced a linear attention-based model that utilized linear positional embeddings with exponential decay to maintain global token interactions. This foundational work was further refined in Various Lengths, Constant Speed: Efficient Language Modeling with Lightning Attention. By replacing the cumulative summation bottleneck with a divide-and-conquer tiling strategy, this approach achieved constant inference speed and fixed memory consumption regardless of sequence length, contributing to efforts aimed at Countering Attention Dispersion in Long Contexts.

To train these linear models on massive contexts, Sun developed specialized sequence parallelism techniques. Standard sequence parallelism is optimized for softmax attention, but linear attention's right-product-first property requires different communication strategies. He introduced a point-to-point ring-style communication mechanism in LASP: Linear Attention Sequence Parallelism to sharply decrease communication overhead. He subsequently expanded this framework in LASP-2: Rethinking Sequence Parallelism for Linear Attention and Its Hybrid, replacing sequential ring communication with a single AllGather operation on compact memory states, enabling scaling to sequences of over two million tokens. Alongside parallelism, he explored algorithmic memory optimizations in Sequence Accumulation and Beyond: Infinite Context Length on Single GPU and Large Clusters. This work leveraged the recurrent nature of linear sequence models to enable training on extremely long contexts with constant memory usage, addressing challenges in the broader area of The Memory Bottleneck of Fixed-Size Recurrent States.

Building on efficient sequence modeling, Sun began integrating these mechanisms with Mixture-of-Experts (MoE) architectures to scale model capacity sparsely. He detailed a production-level system for this integration in Linear-MoE: Linear Sequence Modeling Meets Mixture-of-Experts, which combined the linear-complexity sequence modeling of linear attention and state-space models with the sparse activation of MoE layers. Extending the MoE philosophy to the hidden states themselves, he co-developed MoM: Linear Sequence Modeling with Mixture-of-Memories. Instead of compressing all context into a single memory state, MoM routes tokens to multiple independent memory states, boosting capacity and reducing data interference to rival traditional Transformers on recall-heavy tasks. He also explored alternative recurrent structures, applying closed-loop control theory to sequence modeling in Improving Bilinear RNN with Closed-loop Control. This architecture, Comba, incorporates feedback mechanisms into memory updates to achieve high recall performance while maintaining linear efficiency.

Sun's architectural innovations have been applied to domain-specific foundation models and synthesized into comprehensive reviews of the field. He led the development of Intern-S1: A Scientific Multimodal Foundation Model, an open-source multimodal MoE engineered for advanced scientific reasoning across disciplines like chemistry and physics, utilizing dynamic tokenizers and a Mixture-of-Rewards reinforcement learning framework. To contextualize the rapid evolution of efficient architectures, he mapped the landscape of linear sequence modeling, sparse attention, and diffusion LLMs in Speed Always Wins: A Survey on Efficient Architectures for Large Language Models, highlighting work in the area of Hybrid State Space Attention Architectures. Additionally, he participated in categorizing methods for optimizing extended Chain-of-Thought processing in A Survey of Efficient Reasoning for Large Reasoning Models: Language, Multimodality, and Beyond, examining how to make extended reasoning more computationally efficient.

Current Directions

The most recent papers in the evidence indicate a continued focus on scaling the capacity and reasoning capabilities of efficient sequence models. Recent work investigates the intersection of linear sequence modeling and sparse activation, particularly through Mixture-of-Experts and Mixture-of-Memories architectures that route tokens to specialized hidden states to overcome the recall limitations of standard linear models. Additionally, there is an ongoing effort to apply these efficient architectures to complex, multimodal scientific reasoning tasks, balancing the need for extended computation with the strict memory and throughput constraints of large-scale deployment.

Profile updated

See something wrong? Report a mistake