Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add target-side attribution #111

Closed
gsarti opened this issue Nov 30, 2021 · 1 comment
Closed

Add target-side attribution #111

gsarti opened this issue Nov 30, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@gsarti
Copy link
Member

gsarti commented Nov 30, 2021

馃殌 Feature Request

Allow users to perform feature attributions on the target prefix. The behavior is controlled by a new attribute_target: bool = False parameter passed to the AttributionModel.attribute method.

馃攬 Motivation

Attributing only on the source is reductive, since the influence of the target prefix is fundamental in determining the outcome of the next generation step in many occasions (e.g. a prefix Ladies and will strongly bias the next token towards Gentlemen, regardless of the source sequence).

@gsarti gsarti added enhancement New feature or request help wanted Extra attention is needed labels Nov 30, 2021
@gsarti gsarti added this to the v1.0 milestone Nov 30, 2021
@gsarti
Copy link
Member Author

gsarti commented Feb 28, 2022

Added in #119

@gsarti gsarti closed this as completed Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant