Gezinmeyi atla
UMAP 0.6 is out! A new initialization, new optimizers and faster nearest neighbour search make UMAP…
0:00 / 0:44

UMAP 0.6 is out! A new initialization, new optimizers and faster nearest neighbour search make UMAP…

Leland McInnes

@leland_mcinnes6,7 B takipçi

X profili
605 beğeniİndirOrijinal gönderi

26.949 görüntüleme

UMAP 0.6 is out! A new initialization, new optimizers and faster nearest neighbour search make UMAP much faster and far better at large scale. On 3 million arXiv papers it finishes in under 5 minutes, before UMAP 0.5 has even found its nearest neighbours.

37 Yorum

Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    Neighbour search is ~4x faster by making better use of PyNNDescent. Initialization is faster with a new init method. And using the new optimizers, the whole run is reproducible with a fixed seed while using every core. A seeded 0.5 run is single-threaded: 52 minutes, 12x longer.

    25 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    Just as important as how quickly we get a result is the quality of the result. UMAP 0.6 works far better on million-scale datasets thanks to a new, better initialization and significant improvements in the optimizer. The result resolves finer cluster structure in fewer epochs.

    20 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    It is worth comparing the increased detail and fidelity provided by the new UMAP 0.6 optimizers. They resolve structure at much finer scales, and can significantly improve on the neighbourhood accuracy of UMAP 0.5 despite being faster.

    12 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    A large part of the overall improvement comes from a brand-new initialization scheme. The new recursive initialization works by initializing UMAP using UMAP itself -- laying out a coarse version of the graph structure, and then refining, in a recursive tower of initializations.

    10 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    The new recursive initialization provides a far better starting point, much closer to UMAP's final result than the messy blurs provided by spectral initialization or PCA, and it does so faster than either!

    9 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    This results in a starting point that allows UMAP's optimizer to settle (to within 3% of the final layout) in far fewer epochs than older initialization approaches.

    8 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    Most of that gain in fidelity at scale comes from a very efficient form of hard-negative mining, which makes negative sampling far more effective on very large datasets, together with better handling of high repulsion strengths.

    6 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    UMAP was originally designed around a small portion of the attraction-repulsion spectrum ( The new UMAP 0.6 optimizers lift these restrictions, allowing UMAP to perform well for much higher repulsion strengths, providing better kNN recall.

    10 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    Currently the new optimizers and initialization are opt-in as they change the output: set compatibility_layout=False. Future versions will make them the default, so try them now! Documentation on the new optimizers is available here:

    5 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    Documentation on the options available to better handle large million-scale datasets is also available:

    5 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    The code is all available on GitHub: and you can install via PyPI or conda-forge. $ pip install -U umap-learn

    15 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    Thanks to all the contributors who provided features and bug fixes for this release. Thank you also to all the people who have reached out with comments, suggestions, and feature requests. This would not have been possible without your help.

    8 beğeni

  • Ash Vardanian profil fotoğrafı

    @ashvardanian

    What a day for clustering! First, FAISS. Now UMAP... Will try to keep up 😅

    3 beğeni

  • Joshua Starmer profil fotoğrafı

    @joshuastarmer

    BAM!!!

    3 beğeni

  • Madison May profil fotoğrafı

    @pragmaticml

    This is an absolutely beautiful visual

    1 beğeni

  • Kuldeep Pisda profil fotoğrafı

    @kdpisda

    is the seeded run reproducible across different core counts too, or only on the same machine?

    1 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    It should be reproducible across different core counts. Across different machines can be harder if you change OS or CPU architecture because that can introduce differences at low levels that I can't account for. But if you just need variable core counts, that should work.

  • Miss Kay 💋 profil fotoğrafı

    @Kay932173379089

    @CShorten30 I'm excited about the new optimizers, specifically the faster nearest neighbour search. What is the impact on weighted nearest-neighbor graph construction?

    1 beğeni

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    @CShorten30 PyNNDescent got a lot faster recently, especially for kNN-graph construction. The new UMAP tunes parameters of PyNNDescent differently to make better use of it. It trades off a small amount of accuracy for very significant performance gains.

  • Leland McInnes profil fotoğrafı

    @leland_mcinnes

    @CShorten30 If you just want kNN-graph construction as fast as possible, or more options in the speed/quality trade space I would look into just using PyNNDescent or RINND directly.