Litcius/Paper detail

Metamorphic Testing and Certified Mitigation of Fairness Violations in NLP Models

Pingchuan Ma, Shuai Wang, Jin Liu

202079 citationsDOIOpen Access PDF

Abstract

Natural language processing (NLP) models have been increasingly used in sensitive application domains including credit scoring, insurance, and loan assessment. Hence, it is critical to know that the decisions made by NLP models are free of unfair bias toward certain subpopulation groups. In this paper, we propose a novel framework employing metamorphic testing, a well-established software testing scheme, to test NLP models and find discriminatory inputs that provoke fairness violations. Furthermore, inspired by recent breakthroughs in the certified robustness of machine learning, we formulate NLP model fairness in a practical setting as (ε, k)-fairness and accordingly smooth the model predictions to mitigate fairness violations. We demonstrate our technique using popular (commercial) NLP models, and successfully flag thousands of discriminatory inputs that can cause fairness violations. We further enhance the evaluated models by adding certified fairness guarantee at a modest cost.

Topics & Concepts

Computer scienceCertificationArtificial intelligenceRobustness (evolution)Machine learningLoanScheme (mathematics)Natural language processingFinancePolitical scienceEconomicsGeneChemistryLawMathematicsBiochemistryMathematical analysisAdversarial Robustness in Machine LearningEthics and Social Impacts of AIExplainable Artificial Intelligence (XAI)