Xiaofei Sun
2 previous affiliations
- Zhejiang University2021–2025
- PhD student · 2021–2025
- Harbin Institute of Technology2011–2017
- MS student · 2015–2017
- Undergrad student · 2011–2015
2 other authors named Xiaofei Sun: Xiaofei Sun (4 papers), Xiaofei Sun (2 papers)
Research Overview
Xiaofei Sun focuses on the intersection of natural language processing (NLP), model interpretability, and the security of foundation models, with recent extensions into reinforcement learning for hardware optimization. Sun’s work addresses the challenge of making deep learning systems more transparent and robust, moving from early investigations into social media demographics and network embeddings toward the systematic analysis of Persistent Backdoors in Pre-trained Foundation Models. Currently, Sun’s research explores the application of large language models (LLMs) to low-level systems tasks, specifically Agentic GPU Kernel Optimization and the development of large-scale datasets for multi-modal and identity-based customization.
Research Trajectory
Sun’s early research, beginning around 2014, concentrated on the extraction of demographic information from social media platforms. This work established a foundation in feature selection and classification models, specifically targeting the identification of hidden user attributes like gender on platforms such as Sina Weibo. By 2018, this focus shifted toward the structural representation of data, investigating how network embeddings could be improved by incorporating the semantic richness of edge labels rather than treating node relations as simple binary variables.
In the period between 2019 and 2021, Sun’s work transitioned toward the internal mechanics of NLP models. This phase was characterized by two parallel efforts: improving model performance through specialized representations and developing frameworks for interpretability. Sun participated in the development of glyph-based vectors for Chinese character representation, which utilized historical scripts to enhance the pictographic evidence available to computer vision-based NLP models. Simultaneously, Sun began addressing the "black box" nature of neural networks, contributing to the design of self-explaining structures that allow models to generate their own interpretations of high-level text units like phrases and sentences. This culminated in a comprehensive survey of interpretability methods, providing a taxonomy for the rapidly growing field of neural NLP explanation.
Starting in 2021, Sun’s focus expanded to include the security and vulnerability of the AI supply chain. This research identified critical risks in the "foundation-then-adaptation" pipeline, where pre-trained models could be compromised by task-agnostic backdoor attacks. By demonstrating that a single poisoned foundation model could propagate malicious behaviors across diverse downstream tasks, Sun’s work highlighted the need for new defense strategies in natural language generation and pre-training.
Sun’s most recent work, spanning 2024 to 2026, reflects the broader shift in the field toward LLM utility and efficiency. This includes contributions to instruction tuning methodologies and the creation of massive open-source datasets for FaceID customization. A significant current direction involves Hardware-in-the-Loop Optimization for Automated Circuit Design, where Sun applies contrastive reinforcement learning to transform LLMs into optimizers for CUDA kernels. This work seeks to bridge the gap between high-level code generation and the physical constraints of GPU hardware, utilizing Robust Rewards for Reinforcement Learning in Code Generation to achieve performance gains that exceed standard compiler baselines.
Representative Work
Gender Identification on Social Media In this early work, Sun investigates the problem of identifying demographic attributes from social media data, which is critical for personalized recommendation systems. The research proposes a novel feature selection algorithm and a retrained multi-attribute model specifically for Sina Weibo users. By analyzing different classification models across various user attributes, the study achieved a significant improvement in accuracy over previous benchmarks, establishing an early interest in the predictive power of social text data.
Enhanced Network Embeddings via Exploiting Edge Labels Sun addresses the limitations of traditional network embedding methods that ignore the semantics of relations between nodes. This research proposes a method to learn low-dimensional latent representations that simultaneously preserve network topology and the specific types of relations (edge labels) between node pairs. The approach demonstrates that incorporating relational semantics produces higher-quality embeddings for downstream tasks such as node classification and link prediction.
Interpreting Deep Learning Models in Natural Language Processing: A Review As the first author of this comprehensive survey, Sun provides a structured overview of the methodologies used to interpret neural NLP models. The paper addresses the lack of transparency in state-of-the-art systems, which often limits their application in high-stakes domains like healthcare. By categorizing diverse interpretation methods, the work serves as a foundational text for understanding how researchers can extract explanations from complex deep learning architectures.
BertGCN: Transductive Text Classification by Combining GCN and BERT Sun contributed to the development of BertGCN, a model that integrates the large-scale pre-training capabilities of BERT with the transductive learning strengths of Graph Convolutional Networks (GCNs). By representing an entire dataset as a heterogeneous graph where documents are nodes, the model propagates label influence through graph convolutions while leveraging BERT's contextual representations. This hybrid approach achieved state-of-the-art performance by effectively utilizing both massive raw data and the structural relationships within specific datasets.
BadPre: Task-agnostic Backdoor Attacks to Pre-trained NLP Foundation Models This research explores a critical vulnerability in the modern AI ecosystem: the susceptibility of pre-trained foundation models to backdoor attacks. Sun participated in demonstrating that malicious triggers can be embedded into models during the pre-training phase in a task-agnostic manner. These "Trojan horses" remain dormant during general use but can be activated after the model is fine-tuned for specific downstream tasks, posing a significant threat to the security of the AI software supply chain.
CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learning In this recent work, Sun explores the use of reinforcement learning to automate the optimization of GPU kernels. The framework, CUDA-L1, employs a contrastive RL approach to train LLMs to act as expert CUDA optimizers. By navigating the complex trade-offs of memory hierarchies and thread synchronization, the system identifies mathematical and structural optimizations that result in substantial speedups across hundreds of kernels. This research represents a shift toward using agentic AI to solve difficult engineering problems in high-performance computing.
Current Directions
Sun’s current research is increasingly focused on the scalability and controllability of large-scale generative models. This includes the development of Group Relative Policy Optimization for Large Reasoning Models, which aims to reduce the computational overhead and instability associated with traditional RLHF (Reinforcement Learning from Human Feedback) methods. By removing the need for large critic models, this direction seeks to make the alignment of LLMs more efficient.
Additionally, Sun is involved in the creation of large-scale, open-source datasets to support the next generation of multi-modal AI. This is exemplified by the release of FaceID-6M, a dataset containing six million high-quality text-image pairs designed to improve the transparency and performance of face identity customization models. This work addresses the data bottleneck in the field, providing a public alternative to the proprietary datasets held by large technology companies. Sun also continues to investigate Dynamic Retrieval for In-Context Learning, exploring how models can more effectively select and utilize demonstrations to solve complex, query-specific problems.
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