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

Haohui Mai

Hong Kong University of Science and Technology
2 previous affiliations
15Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Haohui Mai focuses on systems security, operating system design, and hardware-software co-optimization. His early work explored secure browser architectures, network data plane debugging, and the formal verification of operating systems. More recently, he investigates the intersection of machine learning and systems, developing secure GPU execution environments and applying large language models to compiler optimization and secure code generation.

Research Trajectory

Haohui Mai’s early research focused on understanding, debugging, and securing complex software systems. His work began with Towards Automatic Inference of Task Hierarchies in Complex Systems, which developed methods for inferring task structures in intricate environments. He subsequently contributed to browser security architecture in Trust and Protection in the Illinois Browser Operating System, a project that intersects with the research direction of Security Vulnerabilities in Graphical User Interface Mimicry. Around the same time, he worked on post-mortem error diagnosis by analyzing run-time logs in SherLog: error diagnosis by connecting clues from run-time logs.

Moving into network and web performance, he introduced Debugging the data plane with anteater to analyze and troubleshoot network data planes. To address performance bottlenecks in mobile web browsing, he proposed a novel decomposition strategy in A Case for Parallelizing Web Pages. This system, known as Adrenaline, speeds up browsing by breaking web pages into smaller "mini pages" that can be processed concurrently on multi-core processors, bypassing the need for major architectural overhauls to the browser itself. Returning to core operating system security, he led the development of Verifying security invariants in ExpressOS, focusing on the formal verification of critical security properties within the OS kernel.

Following his early work on operating systems and networking, his focus shifted toward the intersection of machine learning and systems architecture. He participated in research on deep neural network optimization in SIRIUS: Harvesting Whole-Program Optimization Opportunities for DNNs. Concurrently, he addressed the challenges of GPU security by introducing Honeycomb: Secure and Efficient GPU Executions via Static Validation. This system provides a software-based Trusted Execution Environment (TEE) for GPUs, utilizing static analysis at load time to validate applications. By doing so, Honeycomb significantly reduces the trusted computing base and enables secure, high-performance inter-process communication between GPU enclaves.

Most recently, his work explores how large language models can be applied to low-level systems programming, as well as how systems can be optimized to run those models more efficiently. In VeriLocc: End-to-End Cross-Architecture Register Allocation via LLM, he and his collaborators utilized fine-tuned LLMs combined with formal verification via Z3 to tackle the NP-complete problem of GPU register allocation. This framework leverages the pattern-recognition strengths of language models to generate hardware-specific code that outperforms expert-tuned libraries, contributing to the broader area of LLM Driven Hardware Design and Low Level Optimization and the research direction of Reinforcement Learning with Verifiable Rewards.

He also contributed to Training Language Models to Generate Quality Code with Program Analysis Feedback, introducing the REAL framework, which uses automated program analysis and unit tests as reinforcement learning signals. This approach addresses the tendency of models to generate code that appears correct but harbors hidden vulnerabilities, ensuring the resulting software is both functionally correct and production-ready. This work advances several research areas, including The Security Blind Spot of Functionally Correct Code, Execution-Guided Reinforcement Learning for Code Generation, and Scalable Alignment via Automated Preference Feedback. Finally, addressing the efficiency of the models themselves, he collaborated on FSA: An Alternative Efficient Implementation of Native Sparse Attention Kernel. This work optimizes GPU kernels by inverting the standard computation loop order, eliminating the padding overhead that typically degrades the efficiency of sparse attention on models with few query heads.

Current Directions

Recent work investigates the bidirectional relationship between large language models and systems architecture. On one hand, this involves leveraging LLMs to solve complex, low-level compiler optimization problems—such as register allocation—while using formal verification to guarantee the correctness of the generated code. On the other hand, it includes developing high-performance GPU kernels to make the execution of these large models more efficient, particularly for sparse attention mechanisms. Additionally, current research addresses the security and maintainability of LLM-generated software by integrating automated program analysis and unit testing directly into the reinforcement learning pipeline, ensuring that AI-assisted coding tools produce production-ready, secure software rather than code that merely appears correct on the surface.

Profile updated

See something wrong? Report a mistake