Skip to content

Train-Test disparity #3

@DRSY

Description

@DRSY

Hi, thanks for your inspiring work and open-sourced codebase.

I noticed that in the "skim attention" module, the 1/0 mask is directly multiplied by the attention probability matrix to prevent skipped tokens from being attended by other tokens. In the paper, it is said that "By doing so, the remaining tokens will have the
identical computational value as actually pruning.". However, during training, the attention probability of remaining tokens does not sum up to 1 because some probability masses are zeroed-out. On the contrary, during inference, the attention probability of remaining tokens always equals 1. This causes train-test disparity and contradicts what is described in the paper.

Looking forward to your reply.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions