Published December 21, 2021 | Journal article | Version v1 | https://doi.org/10.21105/joss.03652

TX$^2$: Transformer eXplainability and eXploration

Files

joss.03652.pdf

Files (12.4 MB)

Name Size Download all
md5:928dde0de5825b84025f03c262c98b79
361.1 kB Preview Download
md5:30bae0ddab29ba809fc6777d088aad2b
12.1 MB Preview Download

Additional details

Dates

Issued
December 21, 2021

References

  1. Martindale, N., & Stewart, S. L. (2021). TX2: Transformer eXplainability and eXploration (Version v1.0.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.5796089
  2. Transformer eXplainability and eXploration , Martindale, Nathan and Stewart, Scott L., The Transformer eXplainability and eXploration library is intended to aid in the explorability and explainability of transformer classification networks, or transformer language models with sequence classification heads. The basic function of this library is to take a trained transformer and test/train dataset and produce an ipywidget dashboard which can be displayed in a jupyter notebook or in jupyter lab., [Computer Software] https://doi.org/10.11578/dc.20210129.1, 2021, jan, 1
  3. Tenney, I., Wexler, J., Bastings, J., Bolukbasi, T., Coenen, A., Gehrmann, S., Jiang, E., Pushkarna, M., Radebaugh, C., Reif, E., & Yuan, A. (2020). The Language Interpretability Tool: Extensible, Interactive Visualizations and Analysis for NLP Models. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, 107–118. https://doi.org/10.18653/v1/2020.emnlp-demos.15
  4. Positioning and Power in Academic Publishing: Players, Agents and Agendas, Loizides, Fernando and Scmidt, Birgit, Jupyter Notebooks - a publishing format for reproducible computational workflows, Kluyver, Thomas and Ragan-Kelley, Benjamin and Pérez, Fernando and Granger, Brian and Bussonnier, Matthias and Frederic, Jonathan and Kelley, Kyle and Hamrick, Jessica and Grout, Jason and Corlay, Sylvain and Ivanov, Paul and Avila, Damián and Abdalla, Safia and Willing, Carol and development team, Jupyter, IOS Press, Netherlands, 2016, 87–90, https://eprints.soton.ac.uk/403913/, It is increasingly necessary for researchers in all fields to write computer code, and in order to reproduce research results, it is important that this code is published. We present Jupyter notebooks, a document format for publishing code, results and explanations in a form that is both readable and executable. We discuss various tools and use cases for notebook documents.
  5. PyTorch: An Imperative Style, High-Performance Deep Learning Library, Paszke, Adam and Gross, Sam and Massa, Francisco and Lerer, Adam and Bradbury, James and Chanan, Gregory and Killeen, Trevor and Lin, Zeming and Gimelshein, Natalia and Antiga, Luca and Desmaison, Alban and Kopf, Andreas and Yang, Edward and DeVito, Zachary and Raison, Martin and Tejani, Alykhan and Chilamkurthy, Sasank and Steiner, Benoit and Fang, Lu and Bai, Junjie and Chintala, Soumith, Advances in Neural Information Processing Systems 32, Wallach, H. and Larochelle, H. and Beygelzimer, A. and d' Alché-Buc, F. and Fox, E. and Garnett, R., 8024–8035, 2019, Curran Associates Inc., https://papers.neurips.cc/paper/9015-pytorch-an-imperative-style-high-performance-deep-learning-library.pdf
  6. Transformers: State-of-the-Art Natural Language Processing, Wolf, Thomas and Debut, Lysandre and Sanh, Victor and Chaumond, Julien and Delangue, Clement and Moi, Anthony and Cistac, Pierric and Rault, Tim and Louf, Rémi and Funtowicz, Morgan and Davison, Joe and Shleifer, Sam and von Platen, Patrick and Ma, Clara and Jernite, Yacine and Plu, Julien and Xu, Canwen and Scao, Teven Le and Gugger, Sylvain and Drame, Mariama and Lhoest, Quentin and Rush, Alexander M., Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, oct, 2020, Online, Association for Computational Linguistics, https://www.aclweb.org/anthology/2020.emnlp-demos.6, 38–45, 10
  7. McInnes, L., Healy, J., Saul, N., & Großberger, L. (2018). UMAP: Uniform Manifold Approximation and Projection. Journal of Open Source Software, 3(29), 861. https://doi.org/10.21105/joss.00861
  8. Vig, J. (2019). A Multiscale Visualization of Attention in the Transformer Model. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, 37–42. https://doi.org/10.18653/v1/p19-3007
  9. Attention is not explanation, Jain, Sarthak and Wallace, Byron C, arXiv preprint arXiv:1902.10186, 2019
  10. Aken, B. van ., Winter, B., Löser, A., & Gers, F. A. (2020). VisBERT: Hidden-State Visualizations for Transformers. Companion Proceedings of the Web Conference 2020, 207–211. https://doi.org/10.1145/3366424.3383542
  11. Scikit-learn: Machine Learning in Python, Pedregosa, F. and Varoquaux, G. and Gramfort, A. and Michel, V. and Thirion, B. and Grisel, O. and Blondel, M. and Prettenhofer, P. and Weiss, R. and Dubourg, V. and Vanderplas, J. and Passos, A. and Cournapeau, D. and Brucher, M. and Perrot, M. and Duchesnay, E., Journal of Machine Learning Research, 12, 2825–2830, 2011
  12. Python Software Foundation, Black - The Uncompromising Code Formatter, https://github.com/psf/black, 2021
  13. Project Jupyter Contributors, ipywidgets: Interactive HTML Widgets, https://github.com/jupyter-widgets/ipywidgets, 2021
  14. Sphinx Team, Sphinx, https://github.com/sphinx-doc/sphinx, 2021
  15. Attention is all you need, Vaswani, Ashish and Shazeer, Noam and Parmar, Niki and Uszkoreit, Jakob and Jones, Llion and Gomez, Aidan N and Kaiser, Lukasz and Polosukhin, Illia, arXiv preprint arXiv:1706.03762, 2017