Tejan Karmali
· 6 previous affiliations
- Stanford UniversitySince 2024
- Graduate Student Researcher · 2024–2029
- Avataar2023–2024
- Research Engineer · 2023–2024
- Google (United States)2022–2023
- Pre-Doctoral Researcher · 2022–2023
- Master of Technology (Research), Computational and Data Sciences · 2019–2022
- Julia Computing2019
- Google Summer of Code 2019 · 2019
- NumFOCUS2018
- Google Summer of Code 2018: NumFOCUS · 2018
Research Overview
Tejan Karmali focuses on computer vision and generative modeling, with a particular emphasis on the structural regularization of latent spaces, self-supervised representation learning, and 3D geometric modeling. His work explores the intersection of deep generative architectures—including Generative Adversarial Networks (GANs) and diffusion models—and the development of methods for fine-grained attribute control and precise image synthesis. Karmali’s research trajectory demonstrates a transition from foundational machine learning tooling toward specialized problems in 3D shape representation and the discovery of semantic structures within high-dimensional latent spaces.
Research Trajectory
Karmali’s early contributions involved the development of machine learning infrastructure, specifically focusing on the intersection of programming language design and differentiable programming. In 2018, he participated in the development of the Flux framework, an environment built on the Julia programming language designed to facilitate the implementation of modifiable and performant machine learning models. This work emphasized the principles of differentiable programming, providing a foundation for subsequent research into complex neural architectures by prioritizing simplicity and framework-level flexibility.
By 2021, Karmali’s focus shifted toward 3D computer vision and the challenges of representing geometric shapes. He addressed the limitations of explicit representations, such as meshes and point clouds, by investigating implicit functions. Specifically, his work explored Unsigned Distance Functions (UDFs) as a means to represent both open and closed 3D shapes. A significant challenge in UDF-based modeling is the disappearance of gradients on the surface, which complicates the estimation of local geometric properties like tangent planes and normals. Karmali contributed to methods that circumvent these issues by predicting surface points directly, thereby enabling more accurate high-fidelity 3D modeling without the resolution-memory trade-offs inherent in traditional voxel-based approaches.
In 2022, Karmali’s research expanded significantly into the domain of Generative Adversarial Networks (GANs), particularly the StyleGAN architecture. His work during this period focused on two primary areas: the regularization of latent spaces for better image quality and the use of self-supervised learning for landmark discovery. He led research into the hierarchical semantic regularization of StyleGAN latent spaces, addressing the tendency of these models to generate unnatural images when latent vectors are manipulated. By imposing structural constraints on the $W/W+$ space, this work sought to ensure that mathematical operations within the latent space—such as interpolations and attribute modifications—remained grounded in the model's learned distribution.
Simultaneously, Karmali addressed the problem of landmark estimation in category-specific images without the need for manual annotations. He proposed methods for self-supervised landmark discovery that rely on aligning distributions of feature similarity. This approach addressed the lack of equivariance in standard self-supervised feature representations, which is critical for dense prediction tasks like landmark detection. By ensuring that learned features respond consistently to geometric transformations, this research enabled the discovery of meaningful structural points across image collections in a fully unsupervised manner.
Karmali also investigated the robustness of GANs when trained on imbalanced, real-world datasets. He contributed to research on long-tailed data distributions, where tail classes often suffer from mode collapse. By applying group spectral regularization, this work improved the stability and diversity of conditional GANs, ensuring that the generative model could represent infrequent classes with the same fidelity as majority classes.
Most recently, in 2024, Karmali has transitioned his focus toward text-to-image (T2I) diffusion models. His current work addresses the limitations of existing personalization methods, which often struggle with identity preservation and fine-grained attribute control. By bridging the gap between the rich, disentangled latent spaces of StyleGANs and the generative power of diffusion models, he has contributed to frameworks that allow for precise facial attribute editing that exceeds the capabilities of simple text-based prompting.
Representative Work
Fashionable Modelling with Flux As part of a larger collaborative effort, Karmali contributed to the development of Flux, a differentiable programming framework for the Julia language. The paper outlines the fundamental principles of the framework, demonstrating how a functional approach to machine learning tooling can result in a performant and easily modifiable environment. This work provided an early look at how language-level features can be leveraged to simplify the implementation of complex neural models.
Deep Implicit Surface Point Prediction Networks In this work, Karmali and his collaborators addressed the problem of representing 3D shapes using Unsigned Distance Functions (UDFs). While UDFs are capable of representing both open and closed surfaces, they suffer from vanishing gradients at the surface boundary, making it difficult to extract differential geometric properties. The paper proposes a network that predicts surface points to facilitate the estimation of normals and tangent planes, thereby improving the utility of implicit representations for downstream vision and graphics applications.
Hierarchical Semantic Regularization of Latent Spaces in StyleGANs As the lead author, Karmali investigated the causes of unnatural image generation in StyleGAN models. The research identifies that while StyleGANs offer a rich hierarchical representation, the latent $W/W+$ space often lacks the necessary regularization to support smooth attribute modification. Karmali proposed a hierarchical semantic regularization technique that constrains the latent space, ensuring that the generator produces high-quality, photorealistic images even after significant latent vector manipulation and interpolation.
LEAD: Self-Supervised Landmark Estimation by Aligning Distributions of Feature Similarity In this first-author paper, Karmali introduced LEAD, a framework for discovering landmarks in unannotated image collections. The method addresses the limitation of standard self-supervised learning methods which do not inherently guarantee equivariant representations. By aligning the distributions of feature similarities across different views of an image, LEAD enables the model to learn dense, consistent landmarks. This approach demonstrates that structural information can be extracted from category-specific images without the need for semi-supervised or manual labeling.
Improving GANs for Long-Tailed Data Through Group Spectral Regularization Karmali participated in research addressing the performance degradation of conditional GANs when trained on imbalanced datasets. The study found that tail classes frequently experience mode collapse, a problem linked to the spectral properties of the generator's weights. The authors proposed group spectral regularization to stabilize training across all classes, significantly improving the quality and diversity of images generated from the minority classes in long-tailed distributions.
PreciseControl : Enhancing Text-to-Image Diffusion Models with Fine-Grained Attribute Control This recent work explores the integration of StyleGAN’s disentangled latent spaces with text-to-image diffusion models. Karmali and his co-authors addressed the difficulty of achieving fine-grained facial attribute control in diffusion models using only text prompts. By conditioning the diffusion process on the $W+$ space of a pre-trained StyleGAN, the method enables precise, identity-preserving edits that are more granular than those possible through standard personalization or text-based inversion techniques.
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