Skip to content

jongharyu/neural-svd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Operator SVD via Nested Low-Rank Approximation

This repository contains the PyTorch implementation of NeuralSVD and the scripts to replicate the experiments in the paper "Operator SVD with Neural Networks via Nested Low-Rank Approximation" (ICML 2024).

TL;DR: The proposed NeuralSVD can learn the top-$L$ orthogonal singular functions of a given operator using neural networks.

Conceptually, the optimization framework called "nested low-rank approximation" (thus abbreviated as NestedLoRA) is proposed, and when neural networks are used to parameterize the singular- (or eigen-) functions, we call the overall method NeuralSVD.

Schematic overview of NeuralSVD and nesting techniques.

For a fair comparison, we also provide our PyTorch implementation of the most relevant works SpIN (official Tensorflow implementation) and NeuralEF (official PyTorch implementation) with a consistent I/O interface, which can be found under methods/.


Experiment 1. Solving Time-Independent Schrödinger Equations

Install the required dependency by running

. scripts/install/pde.sh

For the 2D hydrogen experiment, run

. scripts/hydrogen.sh $loss_name $batch_size $seq

Here, the last flag seq indicates the version of nesting for NestedLoRA.

For example, to replicate the set of experiments, one can run

conda activate pde
. scripts/exps/pde/hydrogen.sh neuralsvd 128 1  # sequential nesting
. scripts/exps/pde/hydrogen.sh neuralsvd 512 1  # sequential nesting
. scripts/exps/pde/hydrogen.sh neuralsvd 128 0  # joint nesting
. scripts/exps/pde/hydrogen.sh neuralsvd 512 0  # joint nesting
. scripts/exps/pde/hydrogen.sh neuralef 128 0  # last flag doesn't matter
. scripts/exps/pde/hydrogen.sh neuralef 512 0  # last flag doesn't matter
. scripts/exps/pde/hydrogen.sh spin 128 0  # last flag doesn't matter

Visual comparison of different algorithms.

For the 2D harmonic oscillator experiment, similarly run

conda activate pde
. scripts/exps/pde/oscillator.sh $loss_name $batch_size $seq

Quantitative comparison of different algorithms.


Experiment 2. Cross-Domain Retrieval with Canonical Dependence Kernel

First, install the required dependency by running

. scripts/install/sketchy.sh

Then, follow the instruction of https://github.com/AnjanDutta/sem-pcyc to download the Sketchy Extended dataset.

To replicate the reported result, one can run

conda activate sketchy
. scripts/exps/sketchy.sh 1  # for split 1
. scripts/exps/sketchy.sh 2  # for split 2

Retrieval performance evaluation of the learned representation.


Citation

If you use NeuralSVD in your work, please cite the original paper as:

@inproceedings{Ryu--Xu--Erol--Bu--Zheng--Wornell2024,
    title={Operator {SVD} with Neural Networks via Nested Low-Rank Approximation},
    author={Ryu, J. Jon and Xu, Xiangxiang and Erol, H. S. Melihcan and Bu, Yuheng and Zheng, Lizhong and Wornell, Gregory W.},
    booktitle={Forty-first International Conference on Machine Learning},
    year={2024},
    url={https://openreview.net/forum?id=qESG5HaaoJ}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages