Lei Shang
· 3 previous affiliations
- Alibaba Group (China)Since 2018
- Researcher · Since 2018
- Sogou Inc.2016–2018
- Researcher · 2016–2018
- Zhejiang University2013–2016
- MS student · 2013–2016
Research Overview
Lei Shang focuses on deep metric learning, semi-supervised learning, and the development of robust representation learning frameworks for computer vision. Current research emphasizes addressing domain generalization challenges, particularly regarding scale shift in crowd localization, and enhancing the interpretability of high-dimensional data embeddings through explainable dimension reduction.
Research Trajectory
The early phase of Shang’s research, beginning around 2019, was centered on the optimization of Scaling Deep Metric Learning Beyond Triplet Mining. This work addressed the computational inefficiencies and sampling sensitivities inherent in traditional distance metric learning (DML) approaches. A significant contribution during this period involved moving away from the standard triplet-based constraints, which often suffer from high variance and poor convergence due to the vast number of possible triplets in a dataset. Instead, Shang explored Multi-Prototype Representations for Intra-Class Diversity, where categories are represented by multiple proxies rather than a single centroid. This approach allowed for a more nuanced capture of intra-class variance and local geometric structures within the embedding space.
By 2021, Shang’s focus expanded into semi-supervised learning (SSL) and the challenges of training models with limited labeled data. This period was marked by an investigation into dynamic selection mechanisms for unlabeled samples. Rather than relying on static confidence thresholds—which often lead to the inclusion of noisy pseudo-labels or the exclusion of informative samples—Shang contributed to the development of adaptive thresholding strategies. These strategies allow the model to adjust its selection criteria based on the current state of the learning process, thereby improving the reliability of pseudo-labeling in SSL frameworks.
In 2022, the research trajectory shifted toward Noise Robustness through Contrastive Representation Learning and its application to domain adaptation. Shang addressed the "brittleness" of standard deep learning models when faced with noisy labels or domain shifts. This work integrated contrastive learning objectives with domain adaptation techniques to maintain Semantic Consistency in Contrastive Learning across different data distributions. During this time, Shang also participated in research exploring manifold learning for under-sampled data and the development of scenario-agnostic mixup techniques, which aimed to optimize local smoothness across both supervised and self-supervised learning scenarios.
The period between 2023 and 2025 has seen a diversification into generative modeling, explainable AI, and domain generalization. Shang participated in the development of frameworks for identity-preserving portrait generation, addressing the technical challenges of maintaining facial fidelity in text-to-image models. Simultaneously, Shang took on a senior research role in the field of dimension reduction, focusing on creating explainable deep networks that visualize high-dimensional data while identifying the specific features driving cluster formation. Most recently, the work has pivoted toward the problem of scale shift in crowd localization, a critical issue in Generalized Category Discovery for Open World Learning where models must generalize across environments with varying pedestrian head scales. This latest research utilizes Architectural Inductive Biases in Uncertainty Calibration and feature decoupling to mitigate performance degradation caused by domain-specific scale distributions.
Representative Work
SoftTriple Loss: Deep Metric Learning Without Triplet Sampling In this 2019 work, Shang addressed the limitations of triplet sampling in deep metric learning. By replacing the standard triplet constraints with a SoftTriple loss that utilizes multiple proxies for each class, the method captures the inherent intra-class variance of complex datasets. This approach effectively bridges the gap between classification and metric learning, providing a more stable and efficient objective for learning high-dimensional embeddings without the need for complex sampling strategies.
Dash: Semi-Supervised Learning with Dynamic Thresholding As a primary contributor to the Dash framework in 2021, Shang tackled the problem of static thresholding in semi-supervised learning. Dash introduces a dynamic thresholding strategy that adapts to the model's learning progress, allowing for more effective utilization of unlabeled data. By selecting only the most reliable unlabeled samples at each stage of training, the framework reduces the impact of label noise and improves the overall accuracy of the learned representations in data-scarce regimes.
NSCL: Noise-Resistant Soft Contrastive Learning for Universal Domain Adaptation In 2022, Shang focused on the noise problem within universal domain adaptation (UNDA). This work introduced a noise-resistant soft contrastive learning (NSCL) approach designed to handle both view noise in data augmentation and label noise in classifier training. By acknowledging that domain differences amplify noise, the method employs a soft weighting mechanism to mitigate the influence of corrupted samples, thereby enhancing the model's ability to generalize from a labeled source domain to an unlabeled target domain with unknown category distributions.
DMT-EV: An Explainable Deep Network for Dimension Reduction Serving as the senior author on this 2024 publication, Shang oversaw the development of EVNet, a tool for explainable dimension reduction. The research addresses the "black box" nature of deep learning-based visualization tools by combining data augmentation with a specialized architecture that identifies the features responsible for data clustering. This work represents a significant move toward interpretability in high-dimensional data analysis, allowing researchers to understand the underlying semantic or structural reasons for the spatial organization of embeddings.
Exploring Scale Shift in Crowd Localization under the Context of Domain Generalization In this 2025 study, Shang investigated the "scale shift" problem in crowd localization, where models trained on one head-scale distribution fail when applied to environments with different scales. The work introduced ScaleBench, a large-scale benchmark for evaluating domain generalization in crowd analysis, and proposed the Catto algorithm. This method treats scale as a spurious feature and seeks to decouple it from core semantic features, allowing for more robust localization across diverse real-world scenarios.
FaceChain-FACT: Face Adapter with Decoupled Training for Identity-preserved Personalization Participating in the development of the FaceChain-FACT framework in 2024, Shang contributed to solving the problem of identity preservation in personalized image generation. The framework utilizes a decoupled training strategy to separate facial identity from other attributes like pose and background. This approach allows for high-fidelity face swapping and identity-consistent generation while maintaining the base model's ability to follow complex textural prompts, avoiding the common "copy-paste" artifacts seen in earlier adapter-based methods.
Current Directions
Shang’s current research program is increasingly focused on the intersection of domain generalization and applied computer vision. A primary area of investigation is the mitigation of spurious correlations in specialized tasks like crowd localization and pedestrian detection. By developing methods that can distinguish between invariant semantic features and domain-specific attributes (such as camera angle or object scale), the work aims to create models that are deployable in "open-world" settings without extensive retraining.
Another active area of focus is the refinement of generative models for identity-preserved personalization. This involves exploring more sophisticated decoupling mechanisms that can handle extreme variations in lighting and occlusion while maintaining the integrity of the subject's identity. Additionally, Shang continues to advance the field of explainable AI, specifically looking for ways to integrate interpretability directly into the training objectives of deep neural networks, rather than treating it as a post-hoc analysis step. This includes investigating how architectural inductive biases can be leveraged to provide better uncertainty calibration in high-stakes visual recognition tasks.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake