Skip to main content

Achieving Counterfactual Fairness for Anomaly Detection

  • Conference paper
  • First Online:
Advances in Knowledge Discovery and Data Mining (PAKDD 2023)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 13935))

Included in the following conference series:

Abstract

Ensuring fairness in anomaly detection models has received much attention recently as many anomaly detection applications involve human beings. However, existing fair anomaly detection approaches mainly focus on association-based fairness notions. In this work, we target counterfactual fairness, which is a prevalent causation-based fairness notion. The goal of counterfactually fair anomaly detection is to ensure that the detection outcome of an individual in the factual world is the same as that in the counterfactual world where the individual had belonged to a different group. To this end, we propose a counterfactually fair anomaly detection (CFAD) framework which consists of two phases, counterfactual data generation and fair anomaly detection. Experimental results on a synthetic dataset and two real datasets show that CFAD can effectively detect anomalies as well as ensure counterfactual fairness.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 69.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    https://github.com/hanxiao0607/CFAD.

References

  1. Almanza, M., Epasto, A., Panconesi, A., Re, G.: k-clustering with fair outliers. In: WSDM. ACM (2022)

    Google Scholar 

  2. van Breugel, B., Kyono, T., Berrevoets, J., van der Schaar, M.: DECAF: generating fair synthetic data using causally-aware generative networks. In: NeurIPS (2021)

    Google Scholar 

  3. Deepak, P., Abraham, S.S.: Fair Outlier Detection. In: WISE (2020)

    Google Scholar 

  4. Dressel, J., Farid, H.: The accuracy, fairness, and limits of predicting recidivism. Sci. Adv. 4(1), eaao5580 (2018)

    Google Scholar 

  5. Dua, D., Graff, C.: UCI machine learning repository (2017). http://archive.ics.uci.edu/ml

  6. Edwards, H., Storkey, A.: Censoring representations with an adversary. arXiv:1511.05897 (2016)

  7. He, S., Zhu, J., He, P., Lyu, M.R.: Experience report: System log analysis for anomaly detection. In: ISSRE. IEEE (2016)

    Google Scholar 

  8. Kilbertus, N., Rojas-Carulla, M., Parascandolo, G., Hardt, M., Janzing, D., Schölkopf, B.: Avoiding discrimination through causal reasoning. In: NIPS (2017)

    Google Scholar 

  9. Kusner, M.J., Loftus, J.R., Russell, C., Silva, R.: Counterfactual Fairness. In: NeurIPS (2018)

    Google Scholar 

  10. Madras, D., Creager, E., Pitassi, T., Zemel, R.: learning adversarially fair and transferable representations. arXiv:1802.06309 (2018)

  11. Nabi, R., Shpitser, I.: Fair inference on outcomes. In: AAAI (2018)

    Google Scholar 

  12. Ng, I., Zhu, S., Chen, Z., Fang, Z.: A graph autoencoder approach to causal structure learning. In: NeurIPS Workshop on Machine Learning and Causal Inference for Improved Decision Making (2019)

    Google Scholar 

  13. Pearl, J.: Causality, 2nd edn. Cambridge University Press, Cambridge (2009)

    Book  Google Scholar 

  14. Shekhar, S., Shah, N., Akoglu, L.: FairOD: fairness-aware outlier detection. In: AIES. AAAI/ACM (2021)

    Google Scholar 

  15. Song, H., Li, P., Liu, H.: Deep clustering based fair outlier detection. In: SIGKDD. ACM (2021)

    Google Scholar 

  16. Zhang, H., Davidson, I.: Towards fair deep anomaly detection. In: FAcct. ACM (2021)

    Google Scholar 

  17. Zheng, X., Aragam, B., Ravikumar, P.K., Xing, E.P.: DAGs with no tears: continuous optimization for structure learning. In: NeurIPS (2018)

    Google Scholar 

Download references

Acknowledgement

This work was supported in part by NSF 1910284 and 2103829.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shuhan Yuan .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Han, X., Zhang, L., Wu, Y., Yuan, S. (2023). Achieving Counterfactual Fairness for Anomaly Detection. In: Kashima, H., Ide, T., Peng, WC. (eds) Advances in Knowledge Discovery and Data Mining. PAKDD 2023. Lecture Notes in Computer Science(), vol 13935. Springer, Cham. https://doi.org/10.1007/978-3-031-33374-3_5

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-33374-3_5

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-33373-6

  • Online ISBN: 978-3-031-33374-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics