imcsq / dodrio

Exploring attention weights in transformer-based models with linguistic knowledge.

Home Page:https://poloclub.github.io/dodrio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dodrio

An interactive visualization system designed to help NLP researchers and practitioners analyze and compare attention weights in transformer-based models with linguistic knowledge.

build arxiv badge

For more information, check out our manuscript:

Dodrio: Exploring Transformer Models with Interactive Visualization. Zijie J. Wang, Robert Turko, and Duen Horng Chau. arXiv preprint 2021. arXiv:2103.14625.

Live Demo

For a live demo, visit: http://poloclub.github.io/dodrio/

Running Locally

Clone or download this repository:

git clone git@github.com:poloclub/dodrio.git

# use degit if you don't want to download commit histories
degit poloclub/dodrio

Install the dependencies:

npm install

Then run Dodrio:

npm run dev

Navigate to localhost:5000. You should see Dodrio running in your broswer :)

To see how we trained the Transformer or customize the visualization with a different model or dataset, visit the ./data-generation/ directory.

Credits

Dodrio was created by Jay Wang, Robert Turko, and Polo Chau.

Citation

@article{wangDodrioExploringTransformer2021,
  title = {Dodrio: {{Exploring Transformer Models}} with {{Interactive Visualization}}},
  shorttitle = {Dodrio},
  author = {Wang, Zijie J. and Turko, Robert and Chau, Duen Horng},
  year = {2021},
  month = mar,
  url = {http://arxiv.org/abs/2103.14625},
  archiveprefix = {arXiv},
  eprint = {2103.14625},
  journal = {arXiv:2103.14625}
}

License

The software is available under the MIT License.

Contact

If you have any questions, feel free to open an issue or contact Jay Wang.

About

Exploring attention weights in transformer-based models with linguistic knowledge.

https://poloclub.github.io/dodrio/

License:MIT License


Languages

Language:Svelte 69.1%Language:JavaScript 15.5%Language:Python 14.8%Language:HTML 0.2%Language:CSS 0.2%Language:SCSS 0.1%