Nuno P. Lopes
· 4 previous affiliations
- Instituto Superior TécnicoSince 2022
- Associate Professor · Since 2022
- PhD, Computer Engineering · 2009–2014
- Msc, Computer Engineering · 2007–2009
- FuriosaAISince 2022
- Country Manager · Since 2026
- Advisor · 2022–2026
- Microsoft (United States)2013–2021
- Principal Researcher · 2014–2021
- Intern · 2013
- Intern · 2012
Research Overview
Nuno P. Lopes focuses on compiler optimization, formal verification, and the design of high-performance systems for machine learning. His research addresses the critical gap between high-level programming abstractions and the low-level execution semantics of modern hardware, with a particular emphasis on ensuring the correctness of compiler transformations through automated translation validation. By leveraging Satisfiability Modulo Theories (SMT) solving and formal semantics, Lopes develops tools and methodologies that identify miscompilations in widely used infrastructures like LLVM and improve the efficiency of large-scale distributed machine learning workloads.
Research Trajectory
The evolution of Lopes’s research reflects a consistent interest in automated software verification, beginning with foundational work on safety and liveness properties. In the early 2010s, his work focused on the development of verifiers for C programs, utilizing Horn clauses to automate the detection of program vulnerabilities. This period also included significant contributions to network verification, where he investigated methods for emulating large production networks and scaling verification techniques through symmetry and surgery. These early projects established a methodological foundation in formal methods that would later be applied to more complex compiler and systems challenges.
By the mid-2010s, Lopes’s research shifted toward the security and correctness of execution environments. He participated in the development of methodologies for designing secure isolated regions, such as those supported by Intel SGX, to ensure confidentiality even in hostile host environments. This work bridged the gap between hardware-level security features and high-level software verification, emphasizing the need for narrow interfaces and runtime checks to facilitate formal certification.
The most prominent phase of Lopes’s career involves his extensive work on the LLVM compiler infrastructure. Starting around 2017, he began addressing the pervasive issue of "undefined behavior" (UB) in C and C++ and its impact on compiler optimizations. This research identified fundamental tensions between high-level optimizations and low-level code generation, leading to the development of the Alive and Alive2 tools. These tools provide a framework for the automatic verification of LLVM peephole optimizations and the translation validation of complex memory-related transformations. A key milestone in this trajectory was the formal verification of the verifier itself within the Lean theorem prover, establishing a "gold standard" for trust in compiler development tools.
In recent years, Lopes has expanded his focus to include the systems and hardware requirements of modern machine learning. This current phase of research applies compiler optimization and formal verification principles to ML frameworks like PyTorch and TensorFlow. His work now encompasses automated pipeline parallelism, non-linear quantization techniques for large language models, and the design of specialized hardware, such as tensor contraction processors. This shift represents an integration of his expertise in compiler IR design with the scaling demands of contemporary AI computing.
Current Directions
Lopes’s current research program is centered on three primary pillars: the continued refinement of compiler verification tools, the optimization of machine learning systems, and hardware-software co-design for AI.
In the domain of compiler verification, he continues to advance the capabilities of the Alive2 framework. Recent work extends translation validation to specific hardware backends, such as LLVM’s AArch64 backend, to ensure that optimizations remain correct through the final stages of code generation. This involves developing precise SMT encodings for complex memory models and instruction sets, allowing for the detection of subtle bugs that traditional testing might miss.
In the area of machine learning systems, Lopes is investigating methods to automate the parallelization and quantization of massive models. This includes the development of tools that transparently implement pipeline parallelism across multiple GPUs, optimizing both model "slicing" and execution scheduling. Furthermore, he is exploring post-training quantization techniques that move beyond linear approximations to better preserve the accuracy of models with non-linear weight distributions.
Finally, his role as an advisor at FuriosaAI reflects a growing involvement in hardware-software co-design. This work focuses on developing sustainable AI computing solutions, such as tensor contraction processors designed specifically for the computational patterns of modern neural networks. This direction integrates his long-standing interests in IR design and scalable optimizations with the physical constraints of specialized hardware.
Representative Work
HSF(C): A Software Verifier Based on Horn Clauses represents Lopes’s early contributions to automated software verification. The tool automates the verification of safety and liveness properties for C programs by transforming verification conditions into Horn clauses. This work demonstrated the utility of constraint-based reasoning in identifying program errors and provided a foundation for subsequent research into more complex software systems.
Lopes participated in the development of A design and verification methodology for secure isolated regions, which addresses the challenges of verifying confidentiality in applications using hardware-supported isolation like Intel SGX. The methodology involves forcing applications to communicate through a narrow interface and using runtime checks to aid formal verification. This work highlighted the necessity of co-designing software interfaces and verification tools to achieve high-assurance security properties.
The paper Taming undefined behavior in LLVM is a foundational study on the semantics of LLVM’s intermediate representation. It investigates how the compiler’s treatment of undefined behavior can lead to miscompilations and proposes a more robust semantic framework to reconcile high-level optimizations with the requirements of low-level code. This research laid the groundwork for the Alive project and significantly influenced the LLVM community’s approach to UB-aware optimizations.
In An SMT Encoding of LLVM's Memory Model for Bounded Translation Validation, Lopes and his collaborators introduced the first SMT encoding of the LLVM memory model that is both precise and scalable. Implemented in the Alive2 tool, this encoding enabled the verification of complex memory optimizations and led to the discovery of numerous bugs in the LLVM compiler. The work demonstrated that formal translation validation could be practically applied to real-world, industrial-scale compiler infrastructures.
Lopes led the research on Pfeife: Automatic Pipeline Parallelism for PyTorch, a tool designed to transparently implement pipeline parallelism for large-scale AI models. By co-optimizing model slicing and execution scheduling—and introducing a novel prefetching technique—Pfeife allows models to run across multiple GPUs without manual code changes. The system outperforms existing manual frameworks, illustrating the impact of automated systems-level optimizations on ML performance.
In collaboration with other researchers, Lopes developed PTNQ: Post-Training Non-Linear Quantization, a technique to reduce the memory footprint of machine learning models. Recognizing that model weights often exhibit non-linear behavior at their extremities, PTNQ uses non-linear functions to approximate weights more accurately than standard affine methods. This work addresses the critical need for efficient model deployment on resource-constrained hardware while maintaining high end-to-end accuracy.
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