ViViT: Curvature access through the generalized Gauss-Newton's low-rank structure
ViViT is a collection of numerical tricks to efficiently access curvature from the generalized Gauss-Newton (GGN) matrix based on its low-rank structure. Provided functionality includes computing
- GGN eigenvalues (basic example)
- GGN eigenpairs (eigenvalues + eigenvector, basic example)
- 1ˢᵗ- and 2ⁿᵈ-order directional derivatives along GGN eigenvectors (basic example)
- Directionally damped Newton steps (basic example)
These operations can also further approximate the GGN to reduce cost via sub-sampling, Monte-Carlo approximation, and block-diagonal approximation.
- Documentation: https://vivit.readthedocs.io/en/latest/
- Bug reports & feature requests: https://github.com/f-dangel/vivit/issues
How does it work? ViViT uses and extends BackPACK for PyTorch. The described functionality is realized through a combination of existing and new BackPACK extensions and hooks into its backpropagation.
Installation
pip install vivit-for-pytorch
Examples
Basic and advanced demos can be found in the documentation.
How to cite
If you are using ViViT, consider citing the paper
@misc{dangel2022vivit,
title={{ViViT}: Curvature access through the generalized Gauss-Newton's low-rank structure},
author={Felix Dangel and Lukas Tatzel and Philipp Hennig},
year={2022},
eprint={2106.02624},
archivePrefix={arXiv},
primaryClass={cs.LG}
}
Metadata
Release files for vivit-for-pytorch 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vivit-for-pytorch-1.0.0.tar.gz | 217.8 kB | Without provenance | Details for vivit-for-pytorch-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vivit_for_pytorch-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for vivit_for_pytorch-1.0.0-py3-none-any.whl |
Total release size: 305.9 kB
Release files / vivit-for-pytorch-1.0.0.tar.gz
| Download URL | vivit-for-pytorch-1.0.0.tar.gz |
|---|---|
| Size | 217.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75f12842ac07e0cf8f18ac14b3c58566c190710d4f4ea4a802bc63f2986d3fa1
|
|
BLAKE2b-256 checksum How to use checksums |
272a8d021d5ff8a6063a5f24f64d2678f010d78a1f50d2b583920dd4cd152500
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / vivit_for_pytorch-1.0.0-py3-none-any.whl
| Download URL | vivit_for_pytorch-1.0.0-py3-none-any.whl |
|---|---|
| Size | 88.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6e3b5d66f09176aa5ef699811ced3e455dee03ef4e27b6dc8aca050b1d8ac39
|
|
BLAKE2b-256 checksum How to use checksums |
eb0d3930bf4c3a2bb5c8b02ccc99c5b52eca9b975496ba5218f95c65f9bf8da5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for vivit-for-pytorch 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.