2000 character limit reached
Using Captum to Explain Generative Language Models
Published 9 Dec 2023 in cs.CL and cs.AI | (2312.05491v1)
Abstract: Captum is a comprehensive library for model explainability in PyTorch, offering a range of methods from the interpretability literature to enhance users' understanding of PyTorch models. In this paper, we introduce new features in Captum that are specifically designed to analyze the behavior of generative LLMs. We provide an overview of the available functionalities and example applications of their potential for understanding learned associations within generative LLMs.
- Sanity checks for saliency maps.
- J Alammar. 2021. Ecco: An open source library for the explainability of transformer language models. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: System Demonstrations. Association for Computational Linguistics.
- On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation. PloS one, 10(7):e0130140.
- Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901.
- Polynomial calculation of the shapley value based on sampling. Computers & Operations Research, 36(5):1726–1730.
- Nl-augmenter: A framework for task-sensitive natural language augmentation.
- Captum: A unified and generic model interpretability library for pytorch.
- Scott Lundberg and Su-In Lee. 2017. A unified approach to interpreting model predictions.
- Edward Ma. 2019. Nlp augmentation. https://github.com/makcedward/nlpaug.
- Textattack: A framework for adversarial attacks, data augmentation, and adversarial training in nlp.
- OpenAI. 2023. Gpt-4 technical report.
- Zoe Papakipos and Joanna Bitton. 2022. Augly: Data augmentations for robustness.
- Domagoj Pluščec and Jan Šnajder. 2023. Data augmentation for neural nlp.
- Perturbation augmentation for fairer NLP. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 9496–9521, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
- "why should i trust you?": Explaining the predictions of any classifier.
- Inseq: An interpretability toolkit for sequence generation models. ArXiv, abs/2302.13942.
- Learning important features through propagating activation differences. In International conference on machine learning, pages 3145–3153. PMLR.
- Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv preprint arXiv:1312.6034.
- Axiomatic attribution for deep networks. In International conference on machine learning, pages 3319–3328. PMLR.
- TextFlint: Unified multilingual robustness evaluation toolkit for natural language processing. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: System Demonstrations, pages 347–355, Online. Association for Computational Linguistics.
- Polyjuice: Generating counterfactuals for explaining, evaluating, and improving models. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 6707–6723.
- OpenAttack: An open-source textual adversarial attack toolkit. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: System Demonstrations. Association for Computational Linguistics.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.