128 points · by sebg · 3y ago · 59 comments
The idea is that you take your data points and expand them in space by putting circles around them. If there are features that are persistent over large variations of the sizes of the circles (or balls in higher-dimensional space), then those persistent features are said to be important reflections of the structure of your data.
The persistent features are characterized by homology, which is a tool that measures the basic topological shape of your data. Homology is actually extremely easy to calculate and doesn't require much advanced math. In fact, for data analysis purposes, you can focus purely on combinatorial aspects, in which case no advanced math is required.
In my opinion, it's a pretty idea and seems logical, but in practice it really seems to be limited in a few ways in terms of practical applications. For one, it often is weaker than more direct methods such as good experimental design and other cluster data methods that can be more directly used to tease out causal relationships.
For another, it seems most useful in the domain of comparing data changing over time or some other variable where the fundamental topological structure change in high-dimensional space in tidy ways. This isn't the case with a lot of real-world data.
In practial terms, you can think of this in the following way... there is only so much you can get out of data. And often, what you do need is not coarse topological features, which rarely have intrinsic meaning.
So my overall opinion of it is that while it might have some limited applications in highly specific fields, it will never become a general method that could be used in 99.9% of data science applications. (To be FAIR though, I also believe that a LARGE proportion of data science is also kind of useless too...data science has its fair share of snake oil.)
If you're wondering how Algebraic Topology can be used to solve real world problems, you will still wonder 300 pages later.
I think one might be better of just reading about uMAP, Mapper and persistent homology directly . At least the last two are very simple and don’t require advanced maths.
https://people.maths.ox.ac.uk/nanda/cat/
Unlike what people commented elsewhere, TDA has growing application in computer graphics, 3D reconstructions and computer vision.
PS: I am told the new version of this course is narrated/illustrated by Robert Ghrist. He's famous for his foundational calculus course
Instructions to add:
- Click other formats
- Download source
- Add this to the includes
``` \usepackage[bookmarks,linktocpage=true]{hyperref}
\hypersetup{
colorlinks,
linktoc=all,
linkcolor={blue},
}\makeindex ```
- recompile
Presto, you got the same document except now we can click the links in the table of contents, the citations, and there's a bookmark section on the side that allows us to navigate the document instead of just scrolling.
I'm not sure what graduate math programs don't have Algebraic Topology. It's pretty fundamental.
The problem is this -- topological spaces on their own have a lot less structure than say a vector space or a metric space. Most of the real world data that ML applications deal with today have more structure and are thus handled using vector space methods or metric space methods or manifold methods. It is also the right thing to do. When you have structure you shoukd use it.
TDA would be useful for data sets where the members have no clear analogue of a distance, or the distances cannot be trusted, or where vector embeddings do not make sense.
This is a bit unfair since Bayesian techniques are useful for when you want to reason about limited data.
But as soon as you have a fair sized dataset, frequentist techniques are typically computationally simpler and faster (no need for MCMC) and scale much better.
A good introduction to some additional problems with frequentist methods vs Bayesian and likelihoodist methods is this: https://gandenberger.org/2014/08/26/intro-to-statistical-met...
An interesting book on adapting frequentist methods to create confidence distributions that can better express uncertainty and can optionally incorporate prior information using likelihood functions is this: https://www.cambridge.org/core/books/confidence-likelihood-p...
For everything else there’s so much error. Being to quantify uncertainty is great — it’s a signal we need to collect more and better data. But so often we have to move ahead with uncertain data.
Interestingly, in business, taking action (even if wrong) produces outcomes that are much better signals to learn from than having statistically rigorous analyses, so many times there’s a bias for action rather than obsession over analysis.
But of course in some fields being wrong is costly (like clinical trials) so I can see UQ being more useful and prominent there.
This is true of everything, of course. Everyone knows that “practical applications” is just a flimsy excuse to get funding for your cool math project.
I’ve found that the main benefit of learning math is not the practical applications of the theorems and algorithms themselves, but just the practice you get from using this approach to thinking. This also frees you up to learn the math you find interesting and not what you think might be immediately useful in your day job.
constructive type theory and TDA are very different things even if they do both have `topo` in their names.
As some other commenters mentioned, though, it was difficult to try to skim this book to find high level applications. For anybody else that's interested, I think there are some applications in chapters 5-7.
The results are spectacular, but the application set is indeed very limited.
You can extend some of the thinking in this paper to cover action spaces for deep RL models to really have some fun!
Could you expand on that?
Maybe I'm missing something but I browsed the PDF and am having trouble finding anything that would be deployed to a production system or produced as part of an analysis in a data science workflow.
I think there some very niche applications in manifold learning (e.g. UMAP) that is somewhat useful, but in my decade in this space, people have tried to find topology applications but ultimately we end up going back to the basic tools of statistics and machine learning.
There are classes of answers that I don’t see how you could find them without resorting to something like TDA. Stuff like characterizing the Betti numbers of neuronal circuits to profile signal routing redundancy. The economics of applying TDA at scale (at least at one that does not require eg nation-state level compute) don’t work well atm I think: small problems will quickly kill the beefiest cpu/ram combo you can find if you try to do basic persistent homology on them, so either you scale your compute like crazy for results that probably won’t give you jackpot margins wrt competitors, or just do whatever is cheap and quick and good enough.
A remark: I think tda is in an era not too unlike deep learning after the proliferation of backprop and little deep nets, but before backprop-on-gpus. People said all kinds of things about how deep learning was a gimmick, was too impractical to apply to real world problems, etc. I remain curious either way.
--
0: https://en.wikipedia.org/wiki/Topological_data_analysis.
1: https://en.wikipedia.org/w/index.php?title=3LA&redirect=no