Shervin Khalafi

Shervin Khalafi

University of Pennsylvania
2 previous affiliations
7Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Shervin Khalafi focuses on generative models, optimization theory, and graph-based machine learning. His work initially explored the theoretical foundations of graph neural networks before shifting toward constrained optimization frameworks for generative systems. His current research addresses the alignment, composition, and unlearning capabilities of diffusion models to ensure they satisfy complex user requirements and safety constraints.

Research Trajectory

Khalafi's early work investigated the theoretical foundations of graph-based machine learning, particularly focusing on how network architecture influences training dynamics. In 2024, he introduced Neural Tangent Kernels Motivate Cross-Covariance Graphs in Neural Networks, which utilized Neural Tangent Kernel (NTK) theory to demonstrate that Graph Neural Networks (GNNs) achieve optimal performance when their underlying structure is based on the cross-covariance between input and output data, rather than relying solely on the input's internal correlations. By optimizing the alignment between the network's kernel and target labels, this work contributed to the broader area of Adaptive Propagation for Deep Graph Neural Networks and the research direction of Spectral Target Alignment in Neural Network Optimization, establishing both theoretically and empirically that cross-covariance graphs yield faster convergence and superior generalization.

Following this theoretical work on GNNs, Khalafi shifted his focus toward generative models, specifically addressing the challenge of training diffusion models under strict operational requirements. With Constrained Diffusion Models via Dual Training, he framed the training process as a formal constrained optimization problem rather than relying on unconstrained objectives or post-hoc filtering. By developing a dual training algorithm, he showed that the resulting optimal model effectively samples from a mixture distribution that balances the original training data with desired constraints, such as enforcing fairness or preventing overfitting. This approach advanced work in the area of Distributional Regularization for Stable Model Adaptation and intersected with broader efforts in Scaling From Class Conditional to Text to Image Generation.

Building on this mathematical foundation, Khalafi extended constrained optimization techniques to the alignment and composition of generative systems. In Composition and Alignment of Diffusion Models using Constrained Learning, he proposed a unified framework that replaces heuristic weighted averages with explicit optimization constraints. This method ensures that generated samples can simultaneously satisfy multiple, potentially competing user requirements—such as maintaining high aesthetic quality while achieving low saturation—without requiring exhaustive hyperparameter tuning. This contribution directly addressed challenges in the research direction of Iterative Preference Optimization for Model Alignment and the broader field of The Sensitivity of Multi-Objective Loss Balancing.

Continuing this trajectory into model safety and data removal, Khalafi applied these constrained optimization principles to the problem of machine unlearning. In his 2026 paper, Unlearning in Diffusion Models: A Unified Framework with KL Divergence and Likelihood Constraints, he formalized unlearning as a principled optimization task rather than an ad-hoc procedure. By minimizing the distance to a pretrained model subject to explicit forgetting constraints, this framework achieves a robust balance between removing undesirable content and preserving overall model quality, contributing to emerging methodologies for surgical machine unlearning in foundation models.

Current Directions

The most recent papers in the evidence indicate a sustained focus on applying rigorous optimization theory to the control, alignment, and safety of large-scale generative models. Rather than relying on empirical heuristics, prompt engineering, or post-hoc filtering, this research agenda emphasizes formulating model alignment, composition, and unlearning as formal constrained optimization problems. By integrating dual training algorithms and explicit likelihood constraints, these current efforts aim to create diffusion models that can reliably satisfy complex, multi-objective user requirements. A central theme of this ongoing work is the mathematical guarantee of model behavior, ensuring that generative systems maintain high generation quality while strictly adhering to safety, fairness, or data-retention mandates.

Profile updated

See something wrong? Report a mistake