NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Wei Dai

TikTok
3 previous affiliations
24Machine learning papers tracked by Lacuna

9 other authors named Wei Dai: Wei Dai (China University of Mining and Technology · 168 papers), Wei Dai (Massachusetts Institute of Technology · 61 papers), Wei Dai (FLock.io · 40 papers), Wei Dai (Imperial College London · 10 papers), Wei Dai (Tsinghua University · 8 papers), and 4 more

Is this you?

Research Overview

Wei Dai focuses on the intersection of cryptographic engineering, high-performance computing, and privacy-preserving machine learning. His work primarily addresses the computational overhead of Fully Homomorphic Encryption (FHE) and lattice-based cryptography through hardware acceleration and algorithmic optimization. In recent years, his research has transitioned toward the security of large language models (LLMs), specifically investigating data memorization risks and the application of differential privacy to mitigate information leakage in predictive text systems.

Research Trajectory

The early stages of Dai’s research, spanning approximately 2008 to 2013, were grounded in signal processing and distributed systems. During this period, he contributed to the Algebraic Reconstruction of Signals with Finite Innovation, exploring methods to reconstruct sparse signals beyond the constraints of the Nyquist-Shannon theorem. This interest in signal recovery evolved into work on Fast Signal Recovery via Deep Unfolding and Amortization, where iterative optimization algorithms were accelerated through neural network architectures. Simultaneously, he addressed efficiency in large-scale systems through Gradient Coding for Straggler Resilient Distributed Learning, a technique designed to mitigate the impact of slow computing nodes in synchronous distributed training.

By 2014, Dai’s focus shifted significantly toward the practical implementation of privacy-preserving technologies. He began a series of investigations into accelerating FHE and Private Information Retrieval (PIR) using Graphics Processing Units (GPUs). This work was motivated by the extreme computational demands of homomorphic operations, which often render them impractical for real-world applications. His early contributions in this area involved developing custom libraries for large polynomial arithmetic and modular multiplication, specifically tailored for the mass parallelism of GPU architectures. This period also saw an exploration of the practical boundaries of these technologies in consumer applications, such as the feasibility of a privacy-preserving web search engine.

In the late 2010s, Dai expanded his work to include hardware-software co-design and compiler development for encrypted computation. He participated in the development of the Encrypted Vector Arithmetic (EVA) language and compiler, which aimed to simplify the programming model for FHE by automating complex cryptographic constraints. His work also moved into specialized hardware architectures, leading to the development of HEAX, a high-performance framework for FHE in cloud environments. During this time, he also addressed the security of post-quantum cryptographic candidates, providing optimized, constant-time implementations of the NTRUEncrypt scheme. His research also touched upon domain-specific modeling, such as Modeling Relational Logic for Multi-Defendant Legal Judgment, which applied structured logic to complex legal datasets.

Since 2021, Dai has increasingly focused on the privacy implications of machine learning models. This shift reflects a broader industry concern regarding the tendency of large models to memorize sensitive training data. His recent work investigates the efficacy of various mitigation strategies, including Parallel Split Learning for Scalable Distributed Training and the use of Logarithmic Target Scaling for Relative Error Regression to handle diverse data distributions. His most recent contributions involve the development of context-aware perturbation mechanisms that utilize differential privacy to protect user prompts in LLM-based applications.

Current Directions

Dai’s current research is centered on the dual challenges of privacy and utility in generative AI. A primary focus is the vulnerability of "Smart Reply" and predictive text pipelines to active pattern extraction attacks, where adversaries attempt to recover sensitive training data by interacting with the model's frontend. He is actively developing defensive frameworks that combine differential privacy with context-aware mechanisms to ensure that model outputs do not inadvertently leak private information while maintaining high utility for the end user.

Additionally, Dai continues to contribute to the standardization and security of homomorphic encryption. He has participated in the development of comprehensive security guidelines for FHE implementations, providing cryptanalytic cost models and parameter sets that inform international standards. This work ensures that as FHE moves from theoretical research to industrial deployment, the underlying implementations remain resilient against evolving cryptographic attacks.

Representative Work

Accelerating NTRU based Homomorphic Encryption using GPUs In this 2014 study, Dai introduced a large polynomial arithmetic library optimized for Nvidia GPUs to support NTRU-based somewhat homomorphic encryption. The implementation utilized the Chinese Remainder Theorem to decompose polynomials with large coefficients into multiple polynomials with smaller coefficients, facilitating modular multiplications in residue space. This work demonstrated the potential for GPUs to significantly reduce the latency of homomorphic evaluation operations, such as addition and multiplication, which are the primary bottlenecks in encrypted computation.

Accelerating SWHE based PIRs using GPUs Focusing on computational Private Information Retrieval (cPIR), this research tailored a Somewhat Homomorphic Encryption (SWHE) scheme for efficient execution on GPUs. By developing custom CUDA code for polynomial ring operations, Dai addressed the efficiency bottlenecks of existing constructions. The resulting system leveraged the bandwidth performance of the underlying cryptographic scheme while using GPU parallelism to handle the heavy computational load, making cPIR more viable for practical data retrieval tasks.

Optimizing Polynomial Convolution for NTRUEncrypt This work focused on the NTRU743 parameter set, a candidate for quantum-safe cryptography. Dai presented a parameter-dependent optimization using a tailored hierarchy of multiplication algorithms and Intel AVX2 instructions. The implementation achieved a significant speedup over the reference implementation while maintaining constant-time execution to prevent side-channel attacks. The study also provided a comprehensive analysis of known attacks, confirming the scheme's security levels against both classical and quantum adversaries.

HEAX: High-Performance Architecture for Computation on Homomorphically Encrypted Data in the Cloud As the senior author, Dai presented HEAX, a novel hardware architecture designed to accelerate FHE in cloud environments. The research addressed the massive computational overhead that prevents the large-scale deployment of FHE. By optimizing the hardware for the specific mathematical structures of homomorphic encryption, HEAX provided a scalable solution for outsourcing computation to the cloud without compromising data confidentiality, particularly in the context of privacy regulations like GDPR and HIPAA.

Planting and Mitigating Memorized Content in Predictive-Text Language Models This research investigated the risk of unintended memorization of sensitive user text in large language models. Dai and his collaborators tested the efficacy of various privacy-preserving techniques, including heuristic mitigations and Differentially Private (DP) training. The study analyzed how factors such as model size and adversarial conditions influence the risk of data leakage, providing a critical evaluation of the trade-offs between provable privacy guarantees and model performance in predictive text applications.

Cape: Context-Aware Prompt Perturbation Mechanism with Differential Privacy Presented at ICML 2025, this work introduced Cape, a mechanism designed to protect the privacy of user prompts in LLMs. Cape utilizes a context-aware approach to apply differential privacy, perturbing prompts in a way that hides sensitive information while preserving the semantic meaning necessary for the model to generate relevant responses. This represents a significant step in applying formal privacy guarantees to the interactive interfaces of modern generative AI systems.

Profile updated

See something wrong? Report a mistake