Piotr Tempczyk, Rafał Michaluk, Łukasz Garncarek, Przemysław Spurek, Jacek Tabor, Adam Goliński
in ICML2022: https://icml.cc/Conferences/2022/Schedule?showEvent=18215
https://arxiv.org/abs/2206.14882
We propose Local Intrinsic Dimension estimation using approximate Likelihood (LIDL). Our method relies on an arbitrary density estimation method as its subroutine, and hence tries to sidestep the dimensionality challenge by making use of the recent progress in parametric neural methods for likelihood estimation. We carefully investigate the empirical properties of the proposed method, compare them with our theoretical predictions, show that LIDL yields competitive results on the standard benchmarks for this problem, and that it scales to thousands of dimensions. What is more, we anticipate this approach to improve further with the continuing advances in the density estimation literature.
Comparison of relative MAE of LID estimates of different algorithms |
LIDL can very accurately predict local intrinsic dimension of the points from the lollipop benchmark dataset |
Before using this repository we recommend looking at the examples: examples/swiss_roll.ipynb and examples/lollipop.ipynb
git clone https://github.com/opium-sh/lidl.git
cd lidl
pip install -r requirements.txt
python run_experiments.py dataset=lollipop-0 algorithm=rqnsf size=1000 --delta 0.05 --num_deltas 12 --device cuda
Dimension estimations of samples of the lollipop dataset will appear in a simple csv file in main directory. Running the default experiment should take less than 10 minutes.
For more details run
python run_experiments.py -h
The safest parameters to experiment with are:
- dataset: there are multiple datasets available (implemented in datasets.py, you can list them with
python run_experiments.py -h
) - algorithm: (rqnsf, gm or maf if you want to use LIDL). We've also added some of the most common algorithms used for LID estimation (mle, corrdim)
- size: smaller dataset size can increase speed, but reduce accuracy
num_deltas increases the accuracy at the cost of running time.
@inproceedings{tempczyk2022lidl,
title={LIDL: Local Intrinsic Dimension Estimation Using Approximate Likelihood},
author={Tempczyk, Piotr and Michaluk, Rafa{\l} and Garncarek, Lukasz and Spurek, Przemys{\l}aw and Tabor, Jacek and Golinski, Adam},
booktitle={International Conference on Machine Learning},
pages={21205--21231},
year={2022},
organization={PMLR}
}