Jafar Habibi

Jafar Habibi

Sharif University of Technology
1 previous affiliation
7Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Jafar Habibi focuses on the security, robustness, and reliability of machine learning systems, with a particular emphasis on anomaly detection, adversarial defense, and representation learning. His work addresses the vulnerabilities of deep neural networks to malicious perturbations and backdoors, while seeking to improve the performance of novelty detection in industrial and high-stakes environments. Currently, his research explores the intersection of self-supervised learning and robust optimization, specifically targeting the mitigation of semantic collisions and style shifts that compromise model integrity in real-world applications.

Research Trajectory

The evolution of Habibi’s research reflects a transition from foundational biometrics and expert-integrated systems toward the contemporary challenges of deep learning security and robust representation. In the early stages of his career, as evidenced by the 2009 work Supervisor, Habibi’s focus was grounded in biometrics, a field where the identification and verification of individuals require high precision and reliability. This early interest in identity and verification likely informed his later shift toward anomaly and novelty detection, where the core problem remains the differentiation between "normal" or "known" entities and "abnormal" or "unknown" ones.

By 2020, Habibi’s work began to bridge the gap between human expertise and automated learning. In Using Experts' Opinions in Machine Learning Tasks, he explored how external knowledge can be formalized and integrated into machine learning workflows. This period represents a methodological pivot, moving from specific biometric applications toward more generalized machine learning frameworks that account for the nuances of human-provided labels and expert judgment.

Starting in 2024, Habibi’s research trajectory shifted decisively toward the security of deep neural networks. This phase is characterized by an intensive focus on Robustness through Latent Representation Alignment and the detection of hidden vulnerabilities. His participation in the development of TRODO, detailed in Scanning Trojaned Models Using Out-of-Distribution Samples, highlights a move into the field of AI forensics. This work addresses the threat of "Trojans" or backdoors—hidden triggers that cause a model to behave maliciously under specific conditions—by analyzing decision boundaries and "blind spots" without requiring access to the original training data.

Most recently, in 2025, Habibi has focused on the refinement of contrastive learning for industrial applications. This work addresses the In-Domain Representation Learning for Industrial Anomaly Detection, where the goal is to distinguish subtle defects from normal variations in manufacturing or medical imaging. A significant component of this recent work involves Semantic Collision and False Negatives in Contrastive Learning, a technical challenge where the model mistakenly treats different but semantically similar samples as negatives, thereby degrading the quality of the learned representations.

Current Directions

Habibi’s current research is centered on resolving the inherent tensions between model performance and security. A primary theme is Bridging the Gap Between Robustness and Clean Accuracy. In many deep learning contexts, hardening a model against adversarial attacks—the "adversarial tax"—often results in a degradation of performance on standard, unperturbed data. Habibi’s recent contributions, particularly the COBRA framework, seek to mitigate this trade-off by refining how models learn from "negative" examples during training.

This focus extends to Efficient Methods for Robust Neural Network Optimization. Traditional adversarial training is computationally expensive, requiring the generation of perturbations for every training step. Habibi’s work explores more efficient ways to achieve robustness, such as through the mitigation of "spurious negative pairs." In contrastive learning, a spurious negative occurs when two samples that are semantically similar are forced apart in the latent space because they were randomly selected as a negative pair. By identifying and ignoring these pairs, Habibi’s methods allow for more stable and robust representation learning, particularly in anomaly detection tasks where the boundary between normal and abnormal is narrow.

Furthermore, Habibi is investigating the impact of distribution shifts on novelty detection. In real-world scenarios, such as autonomous driving, changes in lighting or weather (style shifts) can cause a detector to fail. His recent collaborative work explores teacher-student frameworks to ensure that models focus on core features rather than environmental shortcuts, ensuring that novelty detection remains reliable even when the test environment differs from the training environment.

Representative Work

The following papers represent key milestones in Habibi's research trajectory, illustrating his shift from biometrics to the security and robustness of modern deep learning systems.

In the early first-author paper Supervisor (2009), Habibi established a foundation in biometric systems. While the specific technical details of this work are less central to his current deep learning focus, it marks the beginning of his career-long interest in high-stakes verification and identification tasks.

Habibi’s 2020 first-author publication, Using Experts' Opinions in Machine Learning Tasks, demonstrates an analytical approach to the integration of human knowledge into algorithmic processes. This work is significant for its focus on the reliability of labels and the use of external expertise to guide machine learning models, a theme that persists in his current work on "anomaly-aware" systems.

The 2024 paper Scanning Trojaned Models Using Out-of-Distribution Samples represents Habibi’s participation in a large-scale effort to secure neural networks against supply-chain attacks. As a middle author, Habibi contributed to the development of TRODO, a method that detects backdoors by hunting for anomalies in a model's decision boundaries. This work is notable for its "black-box" applicability, as it does not require knowledge of the specific attack type or the training data, making it a robust tool for AI safety.

Habibi’s contributions to the COBRA framework are detailed in Mitigating Spurious Negative Pairs for Robust Industrial Anomaly Detection and its subsequent publication, Adversarially Robust Anomaly Detection through Spurious Negative Pair Mitigation (2025). As a key author on these papers, Habibi helped develop a contrastive-based approach that significantly improves adversarial robustness in industrial settings. By generating high-quality pseudo-anomalies and introducing a loss function that eliminates spurious negative pairs—normal samples that are erroneously pushed apart—this research achieved a substantial improvement in detection accuracy under attack without relying on external datasets.

Finally, the 2025 paper A Contrastive Teacher-Student Framework for Novelty Detection under Style Shifts involves Habibi’s participation in addressing the "shortcut learning" problem in novelty detection. This work tackles the challenge of style shifts, where environmental changes lead a model to misidentify known samples as novelties. The research proposes a framework to decouple style features from core features, ensuring that the detector remains robust to distribution shifts in practical applications like medical imaging and autonomous systems.

Profile updated

See something wrong? Report a mistake