| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains the implementation and supplementary material for the paper:
Efficient Finite Initialization with Partial Norms for Tensorized Neural Networks and Tensor Networks Algorithms Alejandro Mata Ali, Iñigo Perez Delgado, Marina Ristol Roura, Aitor Moreno Fdez. de Leceta arXiv:2309.06577
An interactive demo is available in the streamlit webpage https://efficient-initialization-tensor-networks.streamlit.app/
We present two algorithms to initialize layers of tensorized neural networks and general tensor network algorithms using partial computations of their Frobenius norms and lineal entrywise norms, depending on the type of tensor network involved. The core of this method is the use of the norm of subnetworks of the tensor network in an iterative way, so that we normalize by the finite values of the norms that led to the divergence or zero norm. In addition, the method benefits from the reuse of intermediate calculations. We have also applied it to the Matrix Product State/Tensor Train (MPS/TT) and Matrix Product Operator/Tensor Train Matrix (MPO/TT-M) layers and have seen its scaling versus the number of nodes, bond dimension, and physical dimension. All code is publicly available.
Install required Python packages:
pip install numpy tensorkrowch torchThen, open and run the notebook:
jupyter notebook TN_Normalizer.ipynbThe notebook provides modular functions to initialize and normalize tensor networks. You can use the normalize_tensor_network() function to apply the Frobenius or linear norm-based algorithm depending on your network type.
If you use this work, please cite (see also CITATION.cff):
@article{mata2023efficient,
title={Efficient Finite Initialization with Partial Norms for Tensorized Neural Networks and Tensor Networks Algorithms},
author={Mata Ali, Alejandro and Perez Delgado, I\~nigo and Ristol Roura, Marina and Moreno Fdez. de Leceta, Aitor},
journal={arXiv preprint arXiv:2309.06577},
year={2023},
eprint={2309.06577},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2309.06577}
}Source code in this repository is released under the MIT License.
The preprint PDF (Efficient_Finite_Initialization_for_Tensorized_Neural_Networks.pdf) and the files under figures/ are paper materials for arXiv:2309.06577; they are not licensed under MIT. See NOTICE for that distinction and for third-party dependency notices.
For questions or collaborations, contact: Alejandro Mata Ali alejandro.mata.ali@gmail.com
| Back | FazBrowse Home | New Git URL |