Elamur Research⌕
☰
home / papers / 2021 / AequeVox: Automated Fairness Testing of Speech Recognition Systems

AequeVox: Automated Fairness Testing of Speech Recognition Systems

Paper · 2021 · Sai Sathiesh Rajan; Sakshi Udeshi; and Sudipta Chattopadhyay Singapore University of Technology; Design)

Summary

Speech recognition services reach very diverse users, but checking whether they work equally well for every group usually requires hand-made transcripts. AequeVox is a black-box testing framework that measures ASR fairness without ground-truth text. It defines fairness as equal quality of service when conditions change. Recordings from two speaker groups are passed through eight signal-level metamorphic transformations, such as added noise, dropped segments and low- or high-pass filtering. The framework then compares how much the error rate rises for each group. If one group degrades more than the other by more than a threshold τ, it reports a fairness violation. A companion fault-localisation step flags words that tend to break under these transformations. The authors tested Google Cloud, Microsoft Azure and IBM Watson on four corpora of human speech. Non-native, female and Nigerian English speakers suffered 109%, 528.5% and 156.9% more errors than native, male and UK Midlands speakers, respectively. A user study confirmed that the transformed audio stays understandable to people. This matters because ASR increasingly powers assistive and safety-critical tools.

Key points

  • Fairness criterion: |ASR_Err(GR_i) − ASR_Err(GR_j)| ≤ τ, applied to the increase in error after a transformation rather than to raw error. The authors link this to Equality of Outcomes and group fairness.
  • Data: Speech Accent Archive, RAVDESS, a Midlands corpus of British Isles accents, and a Nigerian English speech dataset. The systems under test were Google Cloud, Microsoft Azure and IBM Watson.
  • User study: 82.9% of transformations scored above 7/10 for comprehensibility, and the lowest score was 6.78.
  • Words predicted to be non-robust showed 223.8% more errors than words predicted to be robust, across all ASRs. This was checked on TTS speech built from random grammar-generated sentences.
  • The authors deliberately avoid TTS as the test input, because human speech carries accent, gender, age and intonation cues that synthesis cannot reproduce. Code and data are public on GitHub (sparkssss/AequeVox).

Interesting ideas

  • I1. The method judges fairness by how unequally groups degrade under the same controlled perturbation, not by absolute error, which removes the need for gold labels.
  • I2. Testing is differential: the system's behaviour on the unperturbed input is the comparison point, so any unlabelled corpus becomes test material.
  • I3. The authors run a comprehensibility study on the transformations themselves, so that reported failures come from inputs humans can still understand.
  • I4. Fault localisation is validated separately: flagged fragile words are placed into random grammar-generated sentences, and the test checks that they still fail more often there.
  • I5. The authors note that degradation-based measures only work when baseline accuracy is high, since a weak system has little room left to degrade.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (learn): Apply identical perturbations (typos, casing loss, dialect spellings) to sentences from different genres or registers and flag any genre whose parse quality drops disproportionately.
  • I2 (tree): Parse each sentence and a meaning-preserving variant with gparse and the perceptron parser, then treat tree disagreement as a gold-free robustness signal.
  • I3 (learn): Before trusting perturbed test sentences, have an LLM teacher tier or a human sample confirm meaning is preserved, as a control against invalid stress tests.
  • I4 (tokens): Insert words the tagger or lemmatiser marks as unstable into grammar-generated carrier sentences to confirm the weakness is lexical and not contextual.
  • I5 (answer): Run perturbation-based robustness checks on reader tests only where baseline accuracy is already high, and report the baseline next to each robustness figure.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

 Fields, topics and concepts

Cite

Cite as Sai Sathiesh Rajan; Sakshi Udeshi; and Sudipta Chattopadhyay Singapore University of Technology; Design). 2021. AequeVox: Automated Fairness Testing of Speech Recognition Systems. arXiv:2110.09843.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2110.09843 · arXiv 2110.09843

@misc{udeshi2021aequevox,
  title = {{AequeVox: Automated Fairness Testing of Speech Recognition Systems}},
  author = {Sai Sathiesh Rajan; Sakshi Udeshi; and Sudipta Chattopadhyay Singapore University of Technology; Design)},
  year = {2021},
  doi = {10.48550/arxiv.2110.09843},
  eprint = {2110.09843},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2110.09843}
}

References

60 references, 3 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

  1. Audio data augmentation (2021), https://www.kaggle.com/CVxTz/audio-data-augmentation ↗
  2. Crowdsourced high-quality nigerian english speech data set (2021), http://openslr.org/70/ ↗
  3. Grammarly (2021), https://app.grammarly.com/ ↗
  4. Aggarwal, A., Lohia, P., Nagar, S., Dey, K., Saha, D.: Black box fairness testing of machine learning models. In: Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. pp. 625–635 (2019) find
  5. Asyrofi, M.H., Thung, F., Lo, D., Jiang, L.: Crossasr: Efficient differential testing of automatic speech recognition via text-to-speech. In: 2020 IEEE International Conference on Software Maintenance and Evolution (ICSME). pp. 640–650 (2020). https://doi.org/10.1109/ICSME46990.2020.00066 ↗
  6. Buolamwini, J., Gebru, T.: Gender shades: Intersectional accuracy disparities in commercial gender classification. In: Conference on fairness, accountability and transparency. pp. 77–91. PMLR (2018) find
  7. Butterworth, S., et al.: On the theory of filter amplifiers. Wireless Engineer 7(6), 536–541 (1930) find
  8. Calò, A., Arcaini, P., Ali, S., Hauer, F., Ishikawa, F.: Simultaneously searching and solving multiple avoidable collisions for testing autonomous driving systems. In: Proceedings of the 2020 Genetic and Evolutionary Computation Conference. pp. 1055–1063 (2020) find
  9. Carlini, N., Wagner, D.: Audio adversarial examples: Targeted attacks on speech-to-text. In: 2018 IEEE Security and Privacy Workshops (SPW). pp. 1–7. IEEE (2018) find
  10. Chen, G., Chen, S., Fan, L., Du, X., Zhao, Z., Song, F., Liu, Y.: Who is real bob? adversarial attacks on speaker recognition systems. In: IEEE Symposium on Security and Privacy (2021) find
  11. Demirsahin, I., Kjartansson, O., Gutkin, A., Rivera, C.: Open-source Multi-speaker Corpora of the English Accents in the British Isles. In: Proceedings of The 12th Language Resources and Evaluation Conference (LREC). pp. 6532–6541. European Language Resources Association (ELRA), Marseille, France (May 2020), https://www.aclweb.org/anthology/2020.lrec-1.804 ↗
  12. Denton, E., Hutchinson, B., Mitchell, M., Gebru, T., Zaldivar, A.: Image counterfactual sensitivity analysis for detecting unintended bias (2019) find
  13. Du, X., Xie, X., Li, Y., Ma, L., Zhao, J., Liu, Y.: Deepcruiser: Automated guided testing for stateful deep learning systems (2018) find
  14. Dwork, C., Hardt, M., Pitassi, T., Reingold, O., Zemel, R.: Fairness through awareness. In: Proceedings of the 3rd innovations in theoretical computer science conference. pp. 214–226 (2012) find
  15. Eniser, H.F., Gerasimou, S., Sen, A.: Deepfault: Fault localization for deep neural networks. In: Hähnle, R., van der Aalst, W.M.P. (eds.) Fundamental Approaches to Software Engineering - 22nd International Conference, FASE 2019, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2019, Prague, Czech Republic, April 6-11, 2019, Proceedings. Lecture Notes in Computer Science, vol. 11424, pp. 171–191. Springer (2019) AequeVox S. Rajan et al. find
  16. Feng, Y., Shi, Q., Gao, X., Wan, J., Fang, C., Chen, Z.: Deepgini: prioritizing massive tests to enhance the robustness of deep neural networks. In: Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis. pp. 177–188 (2020) find
  17. Galhotra, S., Brun, Y., Meliou, A.: Fairness testing: testing software for discrimination. In: Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering, ESEC/FSE 2017, Paderborn, Germany, September 4-8, 2017. pp. 498–510 (2017). https://doi.org/10.1145/3106237.3106277, http://doi.acm. org/10.1145/3106237.3106277 ↗
  18. Goss, F.R., Zhou, L., Weiner, S.G.: Incidence of speech recognition errors in the emergency department. International journal of medical informatics 93, 70–73 (2016) find
  19. Guo, Q., Xie, X., Li, Y., Zhang, X., Liu, Y., Li, X., Shen, C.: Audee: Automated testing for deep learning frameworks. In: Proceedings of the 35th IEEE/ACM International Conference on Automated Software Engineering (ASE). pp. 486–498. ACM (Dec 2020) find
  20. Hawley, M.S.: Speech recognition as an input to electronic assistive technology. British Journal of Occupational Therapy 65(1), 15–20 (2002) find
  21. Helmke, H., Ohneiser, O., Mühlhausen, T., Wies, M.: Reducing controller workload with automatic speech recognition. In: 2016 IEEE/AIAA 35th Digital Avionics Systems Conference (DASC). pp. 1–10. IEEE (2016) find
  22. Huang, C., Chen, T., Li, S.Z., Chang, E., Zhou, J.L.: Analysis of speaker variability. In: INTERSPEECH. pp. 1377–1380 (2001) find
  23. Huber, D.M., Runstein, R.E.: Modern recording techniques, pp. 416,487. CRC Press (2013) find
  24. Iwama, F., Fukuda, T.: Automated testing of basic recognition capability for speech recognition systems. In: 2019 12th IEEE Conference on Software Testing, Validation and Verification (ICST). pp. 13–24. IEEE (2019) find
  25. Jain, A., Upreti, M., Jyothi, P.: Improved accented speech recognition using accent embeddings and multi-task learning. In: Interspeech. pp. 2454–2458 (2018) find
  26. Johnson, D.H.: Signal-to-noise ratio. Scholarpedia 1(12), 2088 (2006) find
  27. Koenecke, A., Nam, A., Lake, E., Nudell, J., Quartey, M., Mengesha, Z., Toups, C., Rickford, J.R., Jurafsky, D., Goel, S.: Racial disparities in automated speech recognition. Proceedings of the National Academy of Sciences 117(14), 7684–7689 (2020) find
  28. Kopald, H.D., Chanen, A., Chen, S., Smith, E.C., Tarakan, R.M.: Applying automatic speech recognition technology to air traffic management. In: 2013 IEEE/AIAA 32nd Digital Avionics Systems Conference (DASC). pp. 6C3–1. IEEE (2013) find
  29. Kreuk, F., Adi, Y., Cisse, M., Keshet, J.: Fooling end-to-end speaker verification with adversarial examples. In: 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). pp. 1962–1966. IEEE (2018) find
  30. Levenshtein, V.I.: Binary codes capable of correcting deletions, insertions, and reversals. In: Soviet physics doklady. vol. 10, pp. 707–710. Soviet Union (1966) find
  31. Li, J., Deng, L., Gong, Y., Haeb-Umbach, R.: An overview of noise-robust automatic speech recognition. IEEE/ACM Transactions on Audio, Speech, and Language Processing 22(4), 745–777 (2014) find
  32. Livingstone, S.R., Russo, F.A.: The ryerson audio-visual database of emotional speech and song (ravdess): A dynamic, multimodal set of facial and vocal expressions in north american english. PloS one 13(5), e0196391 (2018) find
  33. Lundberg, S.M., Lee, S.I.: A unified approach to interpreting model predictions. In: Guyon, I., Luxburg, U.V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., Garnett, R. (eds.) Advances in Neural Information Processing Systems 30, pp. 4765–4774. Curran Associates, Inc. (2017), http://papers.nips.cc/paper/7062-a-unified-approach-to-interpreting-model-predictions.pdf ↗
  34. Ma, L., Juefei-Xu, F., Zhang, F., Sun, J., Xue, M., Li, B., Chen, C., Su, T., Li, L., Liu, Y., Zhao, J., Wang, Y.: Deepgauge: multi-granularity testing criteria for deep learning systems. In: Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering, ASE 2018, Montpellier, France, September 3-7, 2018. pp. 120–131 (2018) find
  35. Ma, P., Wang, S., Liu, J.: Metamorphic testing and certified mitigation of fairness violations in NLP models. In: Bessiere, C. (ed.) Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI 2020. pp. 458–465 find
  36. Odena, A., Olsson, C., Andersen, D., Goodfellow, I.: Tensorfuzz: Debugging neural networks with coverage-guided fuzzing. In: International Conference on Machine Learning. pp. 4901–4911. PMLR (2019) find
  37. Pei, K., Cao, Y., Yang, J., Jana, S.: Deepxplore: Automated whitebox testing of deep learning systems. In: Proceedings of the 26th Symposium on Operating Systems Principles, Shanghai, China, October 28-31, 2017. pp. 1–18 (2017) find
  38. Phillips, A.: Defending equality of outcome. Journal of political philosophy 12(1), 1–19 (2004) find
  39. Qin, Y., Carlini, N., Cottrell, G., Goodfellow, I., Raffel, C.: Imperceptible, robust, and targeted adversarial examples for automatic speech recognition. In: International conference on machine learning. pp. 5231–5240. PMLR (2019) find
  40. Ribeiro, M.T., Singh, S., Guestrin, C.: "why should I trust you?": Explaining the predictions of any classifier. In: Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, August 13-17, 2016. pp. 1135–1144 (2016)
  41. Ribeiro, M.T., Singh, S., Guestrin, C.: Anchors: High-precision model-agnostic explanations. In: Proceedings of the AAAI Conference on Artificial Intelligence. vol. 32 (2018) find
  42. Ribeiro, M.T., Wu, T., Guestrin, C., Singh, S.: Beyond accuracy: Behavioral testing of NLP models with checklist. In: Jurafsky, D., Chai, J., Schluter, N., Tetreault, J.R. (eds.) Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL 2020, Online, July 5-10, 2020. pp. 4902–4912. Association for Computational Linguistics (2020) find
  43. Sharma, A., Demir, C., Ngomo, A.C.N., Wehrheim, H.: Mlcheck-property-driven testing of machine learning models. arXiv preprint arXiv:2105.00741 (2021) ↗
  44. Sharma, A., Wehrheim, H.: Testing machine learning algorithms for balanced data usage. In: 2019 12th IEEE Conference on Software Testing, Validation and Verification (ICST). pp. 125–135. IEEE (2019) find
  45. Sharma, A., Wehrheim, H.: Automatic fairness testing of machine learning models. In: IFIP International Conference on Testing Software and Systems. pp. 255–271. Springer (2020) find
  46. Sharma, A., Wehrheim, H.: Higher income, larger loan? monotonicity testing of machine learning models. In: Proceedings of the 29th ACM SIGSOFT International Symposium on Software Testing and Analysis. pp. 200–210 (2020) find
  47. Soremekun, E., Udeshi, S., Chattopadhyay, S.: Astraea: Grammar-based fairness testing. arXiv preprint arXiv:2010.02542 (2020) AequeVox S. Rajan et al. ↗
  48. Sun, Y., Chockler, H., Huang, X., Kroening, D.: Explaining image classifiers using statistical fault localization. In: Vedaldi, A., Bischof, H., Brox, T., Frahm, J. (eds.) Computer Vision - ECCV 2020 - 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XXVIII. Lecture Notes in Computer Science, vol. 12373, pp. 391–406. Springer (2020) find
  49. Sun, Y., Wu, M., Ruan, W., Huang, X., Kwiatkowska, M., Kroening, D.: Concolic testing for deep neural networks. In: Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering, ASE 2018, Montpellier, France, September 3-7, 2018. pp. 109–119 (2018) find
  50. Tian, Y., Pei, K., Jana, S., Ray, B.: Deeptest: automated testing of deep-neural-network-driven autonomous cars. In: Proceedings of the 40th International Conference on Software Engineering, ICSE 2018, Gothenburg, Sweden, May 27 - June 03, 2018. pp. 303–314 (2018) find
  51. Udeshi, S., Arora, P., Chattopadhyay, S.: Automated directed fairness testing. In: Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering, ASE 2018, Montpellier, France, September 3-7, 2018. pp. 98–108 (2018) find
  52. Udeshi, S.S., Chattopadhyay, S.: Grammar based directed testing of machine learning systems. IEEE Transactions on Software Engineering (2019) find
  53. Verma, S., Rubin, J.: Fairness definitions explained. In: 2018 ieee/acm international workshop on software fairness (fairware). pp. 1–7. IEEE (2018) find
  54. Wang, J., Chen, J., Sun, Y., Ma, X., Wang, D., Sun, J., Cheng, P.: Robot: Robustness-oriented testing for deep learning systems. In: ICSE ’21: 43rd International Conference on Software Engineering (2021) find
  55. Wardat, M., Le, W., Rajan, H.: Deeplocalize: Fault localization for deep neural networks. In: 43rd IEEE/ACM International Conference on Software Engineering, ICSE 2021, Madrid, Spain, 22-30 May 2021. pp. 251–262. IEEE (2021) find
  56. Weik, M.: Communications standard dictionary. Springer Science & Business Media (2012) find
  57. Weinberger, S.H., Kunath, S.A.: The speech accent archive: towards a typology of english accents. In: Corpus-based Studies in Language Use, Language Learning, and Language Documentation, pp. 265–281. Brill Rodopi (2011) find
  58. Xie, X., Ma, L., Juefei-Xu, F., Xue, M., Chen, H., Liu, Y., Zhao, J., Li, B., Yin, J., See, S.: Deephunter: a coverage-guided fuzz testing framework for deep neural networks. In: Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis. pp. 146–157 (2019) find
  59. Xie, X., Zhang, Z., Chen, T.Y., Liu, Y., Poon, P.L., Xu, B.: Mettle: a metamorphic testing approach to assessing and validating unsupervised machine learning systems. IEEE Transactions on Reliability 69(4), 1293–1322 (2020) find
  60. Zhang, J., Harman, M.: "ignorance and prejudice" in software fairness. In: International Conference on Software Engineering. vol. 43. IEEE (2021) find

Updated

↑ back to top

This page in Markdown → https://md.research.elamur.ai/free/en/papers/rajan-2021-aequevox-automated-fairness-testing-speech/