Introduction
Outlier detection is a critical task in data science, aimed at identifying rare observations that deviate significantly from the majority. However, standard algorithms are often inherently biased. Because outliers are defined by their difference from the norm, these models frequently misidentify members of minority groups or protected classes as anomalies. This leads to unfair outcomes in sensitive domains like criminal justice, credit scoring, and healthcare.
Existing fair outlier detection methods often struggle with two challenges: they operate on raw feature spaces that may not capture complex underlying patterns, and they suffer from "outlier interference," where anomalous data points distort the model's understanding of what constitutes "normal" behavior.
The DCFOD Framework
To address these issues, we introduce Deep Clustering based Fair Outlier Detection (DCFOD). This unsupervised framework integrates representation learning, adversarial training, and a dynamic weighting mechanism to achieve high accuracy while maintaining fairness across protected subgroups.
DCFOD consists of three primary components:
- Deep Clustering & Representation Learning: An autoencoder maps data into a lower-dimensional latent space. Clustering is performed within this space, and a point's "outlierness" is determined by its distance from the nearest cluster center.
- Adversarial Fairness Training: To prevent the model from relying on sensitive attributes (e.g., race, gender), an adversarial discriminator attempts to predict these attributes from the latent representation. Simultaneously, the encoder works to "scrub" this information, ensuring the learned features are attribute-blind.
- Dynamic Instance Weighting: This technical innovation assigns weights to data points during training. Inliers receive higher weights to reinforce the model's understanding of "normal" data, while potential outliers are down-weighted to prevent them from polluting the learned representations.
Experimental Results
DCFOD was evaluated on eight real-world UCI datasets, including adult, german credit, and asd screening, using sensitive attributes such as gender and race. The model was compared against 17 baseline algorithms, including specialized fair detectors like FairLOF and FairOD.
Superior Accuracy and Fairness
DCFOD consistently outperformed all baselines. It achieved a comprehensive $Score_{AUC}$ of 0.979, significantly higher than the next best competitor. Beyond accuracy, the model demonstrated superior fairness by reducing the "diagnostic ability gap" ($F_{Gap}$) between subgroups. On average, the adversarial component reduced this gap by 30%.
The Role of Dynamic Weighting
The dynamic weight module proved critical for performance. By suppressing outliers (by ~50%) and reinforcing inliers (by ~25%), the model effectively ignored noise while learning the core structure of the data. As shown in the ablation studies, removing this weighting mechanism leads to a noticeable drop in both detection accuracy (AUC) and fairness ($F_{Gap}$).
Scalability
Despite its deep learning architecture, DCFOD maintains a linear time complexity relative to sample size. This makes it significantly more scalable than traditional proximity-based methods (like LOF or COF), which struggle with large-scale datasets such as the 300,000-sample KDD census dataset.
Conclusion and Future Work
DCFOD represents a significant step forward in unsupervised fair outlier detection by treating clustering and anomaly detection as reciprocal tasks. While the model currently requires labels for sensitive attributes during training to perform adversarial debiasing, it eliminates the need for outlier labels. Future research will explore handling overlapping sensitive attributes and further refining the balance between reconstruction, clustering, and fairness objectives.
Summary updated