Using Captum to Explain Generative Language Models
Vivek Miglani, Aobo Yang, Aram Markosyan, Diego García-Olano, Narine Kokhlikyan
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 language models. We provide an overview of the available functionalities and example applications of their potential for understanding learned associations within generative language models.
Topics & Concepts
InterpretabilityGenerative grammarComputer scienceArtificial intelligenceLanguage modelLanguage understandingGenerative modelRange (aeronautics)Natural language processingEngineeringAerospace engineeringExplainable Artificial Intelligence (XAI)Topic ModelingScientific Computing and Data Management