Saved in:
Bibliographic Details
Main Authors: Cui, Yiming, Zhang, Wei-Nan, Liu, Ting
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.20652
Tags: Add Tag
No Tags, Be the first to tag this record!
Table of Contents:
  • The attention mechanism plays an important role in the machine reading comprehension (MRC) model. Here, we describe a pipeline for building an MRC model with a pretrained language model and visualizing the effect of each attention zone in different layers, which can indicate the explainability of the model. With the presented protocol and accompanying code, researchers can easily visualize the relevance of each attention zone in the MRC model. This approach can be generalized to other pretrained language models.