-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* allow skipping model IDs in finalize scores * allow subclassing of saver and score_computer directly from traker args * default to BasicProjector if CudaProjector projeciton step errors out * add another type of error that sometime occurs when fast_jl has issues * update quickstart notebook * Add link to colab with pre-computed trak scores to readme * add dropbox links to quickstart nb * update training code in quickstart tutorial * bump version --------- Co-authored-by: Joshua Vendrow
- Loading branch information
1 parent
8995c3e
commit 2c2d022
Showing
8 changed files
with
395 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
[![PyPI version](https://badge.fury.io/py/traker.svg)](https://badge.fury.io/py/traker) | ||
[![arXiv](https://img.shields.io/badge/arXiv-2303.14186-b31b1b.svg?style=flat-square)](https://arxiv.org/abs/2303.14186) | ||
[![PyPI version](https://badge.fury.io/py/traker.svg)](https://badge.fury.io/py/traker) | ||
|
||
# TRAK: Attributing Model Behavior at Scale | ||
|
||
[[docs & tutorials]](https://trak.readthedocs.io/en/latest/) | ||
[[paper]](https://arxiv.org/abs/2303.14186) | ||
[[blog post]](https://gradientscience.org/trak/) | ||
[[website]](https://trak.csail.mit.edu) | ||
|
||
# TRAK: Attributing Model Behavior at Scale | ||
|
||
In our [paper](https://arxiv.org/abs/2303.14186), we introduce a new data attribution method called `TRAK` (Tracing with the | ||
Randomly-Projected After Kernel). Using `TRAK`, you can make accurate | ||
counterfactual predictions (e.g., answers to questions of the form “what would | ||
|
@@ -17,21 +16,10 @@ comparably effective methods, e.g., see our evaluation on: | |
|
||
![Main figure](/docs/assets/main_figure.png) | ||
|
||
## Citation | ||
If you use this code in your work, please cite using the following BibTeX entry: | ||
``` | ||
@inproceedings{park2023trak, | ||
title = {TRAK: Attributing Model Behavior at Scale}, | ||
author = {Sung Min Park and Kristian Georgiev and Andrew Ilyas and Guillaume Leclerc and Aleksander Madry}, | ||
booktitle = {Arxiv preprint arXiv:2303.14186}, | ||
year = {2023} | ||
} | ||
``` | ||
|
||
## Usage | ||
|
||
|
||
[[Quickstart]](https://trak.readthedocs.io/en/latest/quickstart.html) | ||
[[quickstart]](https://trak.readthedocs.io/en/latest/quickstart.html) | ||
[[pre-computed TRAK scores for CIFAR-10]](https://colab.research.google.com/drive/1Mlpzno97qpI3UC1jpOATXEHPD-lzn9Wg?usp=sharing) | ||
|
||
Check [our docs](https://trak.readthedocs.io/en/latest/) for more detailed examples and | ||
tutorials on how to use `TRAK`. Below, we provide a brief blueprint of using `TRAK`'s API to compute attribution scores. | ||
|
@@ -74,6 +62,17 @@ scores = traker.finalize_scores() | |
## Examples | ||
You can find several end-to-end examples in the `examples/` directory. | ||
|
||
## Citation | ||
If you use this code in your work, please cite using the following BibTeX entry: | ||
``` | ||
@inproceedings{park2023trak, | ||
title = {TRAK: Attributing Model Behavior at Scale}, | ||
author = {Sung Min Park and Kristian Georgiev and Andrew Ilyas and Guillaume Leclerc and Aleksander Madry}, | ||
booktitle = {Arxiv preprint arXiv:2303.14186}, | ||
year = {2023} | ||
} | ||
``` | ||
|
||
## Installation | ||
|
||
To install the version of our package which contains a fast, custom `CUDA` | ||
|
@@ -93,9 +92,8 @@ pip install traker | |
|
||
Please send an email to [email protected] | ||
|
||
## Maintainers: | ||
## Maintainers | ||
|
||
[Kristian Georgiev](https://twitter.com/kris_georgiev1)<br> | ||
[Andrew Ilyas](https://twitter.com/andrew_ilyas)<br> | ||
[Guillaume Leclerc](https://twitter.com/gpoleclerc)<br> | ||
[Sung Min Park](https://twitter.com/smsampark) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.