Skip to content

Reproducing MARS: Masked Automatic Ranks Selection in Tensor Decompositions

License

Notifications You must be signed in to change notification settings

MarioAuditore/mars-reproducibility

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked from https://github.com/MaxBourdon/mars/tree/main

This is a forked repo of the team project for course Numerical linear Algebra at Skoltech.

MARS: Masked Automatic Ranks Selection in Tensor Decompositions

This repository contains code for our paper MARS: Masked Automatic Ranks Selection in Tensor Decompositions.

The main files are:

  • mars.py — the main module, containing realizations of the MARS wrapper over a tensorized model, the MARS loss and auxiliary functions;
  • tensorized_models.py — module, containing realizations of several implemented tensorized models, the base class and auxiliary functions.

The notebooks are:

  • MNIST-2FC-soft.ipynb — Jupyter Notebook, replicating the MNIST 2FC-Net experiment using soft compression mode;

  • MNIST-2FC-hard.ipynb — Jupyter Notebook, replicating the MNIST 2FC-Net experiment using hard compression mode.

  • VAE-AE-Baseline.ipynb — autoencoder and variational autoencoder template of baseline for further experiments

  • MNIST-AE.ipynb — Jupyter Notebook, Factorized autoencoder

  • MNIST-VAE.ipynb — Jupyter Notebook, Factorized variational autoencoder

  • MNIST-VAE-TT.ipynb — Jupyter Notebook, Successful application of tensor train to variational autoencoder

  • CIFAR10-ResNet-naive.ipynb — Jupyter Notebook, ResNet-110 on CIFAR10

  • CIFAR10-ResNet-base.ipynb — Jupyter Notebook, ResNet-110 on CIFAR10

  • CIFAR10-ResNet-proper.ipynb — Jupyter Notebook, ResNet-110 on CIFAR10

  • MNIST-LeNet-base.ipynb — Jupyter Notebook, LeNet-5 on MNIST

  • MNIST-LeNet-compress.ipynb — Jupyter Notebook, LeNet-5 on MNIST

To run the notebooks, first, install the tt-pytorch library from https://github.com/KhrulkovV/tt-pytorch
System requirements and dependencies are described in https://github.com/KhrulkovV/tt-pytorch/blob/master/README.md
After installing all the dependencies, run the following command to install tt-pytorch from Git via pip: pip install git+https://github.com/KhrulkovV/tt-pytorch.git

Our team:

@sspetya - Petr Sychev

@gurkwe - Petr Kushnir

@xiyori - Foma Shipilov

@MarioAuditore - Elfat Sabitov

@skushneryuk - Sergey Kushneryuk

About

Reproducing MARS: Masked Automatic Ranks Selection in Tensor Decompositions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.9%
  • Python 0.1%