Lurker News
Algs/DS were my first love in CS. Nowadays, all we hear about is AI/ML. There must be hardware/software improvements coming from or necessitating fundamental Algs/DS research.

Care to share any of the favorite recent results?
Are there big fields still making gains behind all this computing surge?

Comments (211) 45 threads

Show all comments

Showing thread 3 of 45

softwaredoug2 replies#
Nobody has mentioned Approximate Nearest Neighbor search (aka vector search), which IMO, are fundamental data structures advancements.

Basically given a set of million (billion, trillion...) ~1000 valued vectors, and a query ~1000 valued vector, find the closest vector in the indexed set. This is "nearest neighbor" search and there have been increasingly more and more sophisticated approaches:
http://ann-benchmarks.com
https://haystackconf.com/us2022/talk-6/
And has spawned companies like Weaviate, Pinecone, etc etc (a half a dozen others)

kokanee1 reply#
"Most commonly used X today are clever optimizations atop old Y" is pretty much the story of technology, isn't it?
RoyGBivCap#
It's lego all the way down to the clock cycle.
marginalia_nu7 replies#
What sort of dataset are you indexing that has trillion entries?

That's 100,000 english wikipedias or 50 googles.

yes_man1 reply#
Dumb example but still example from practical world. Your body (assuming you are a human) has trillions of cells. Each cell way more complicated than what a 1000-dimensional vector can represent, but maybe it could be a loose estimate of some properties in each cell. Now the algorithm could be about finding the most similar cell. Could be useful for finding e.g. other cancer cells based on properties in one cancer cell.

Not that this is a practical example because we technically cannot index all cells in each body. But even if such an algorithm being studied today might be useful one day when we do capability to collect such data

marginalia_nu13 replies#
Where are you going to store this data? It's dozens of petabytes.

Continue this thread — 13 replies

de_nied1 reply#
One application are LLMs. I've seen a project use Pinecone to enable "infinite context" for GPT-3.
marginalia_nu1 reply#
This is still several orders of magnitude more items than the entire training corpus for all GPT models combined. I guess if you were to index individual codepoints in the training corpus, we'd start to see those volumes.

Continue this thread — 1 reply

maerF0x01 reply#
There's about 14B trades per year on the NYSE which i'm sure could represent 10x that in entities (buyer, seller, broker, etc) and could easily hit 1000x that in log lines. The shares per day is in the billions, so hitting 1T if each share is represented uniquely.
marginalia_nu4 replies#
You don't typically use vector search for trade data though. It's already ridculously well structured. Assets have identifiers, parties and counterparties have IDs, etc. I'm not sure what nearest neighbors in a vector space would add.

Continue this thread — 4 replies

lacker1 reply#
That's about the number of pixels in a 2-hour movie at 4k. Not too common yet, but once it's possible we're going to want to feed this amount of data into neural networks.
marginalia_nu#
Using an approximate nearest neighbors search for this is just worse though.

You can retrieve the exact information even faster. From an (x,y,t) coordinate, you can find the exact index in constant time

thfuran1 reply#
Is sift still used?

Continue this thread — 1 reply

chaxor#
Perhaps one example would be 100 billion websites, but with a set of vectors for each website (chunked bert encoding, sum chunked glove vecs, whatever). Then you could have something like 3-100ish vectors for each website, which would be a few trillion vecs.

I'm not in the we scraping/search area, so idk about the 100B website thing (other than it's Google order of size), but the encoding would take some mega amount of time depending on how it's done, hence the suggested sum of GloVe chunks (potentially doable with decent hardware in months) rather than throwing LLM on there (would take literal centuries to process).

ukuina#
For context stuffing LLMs with small token limits(AKA Retriever Augmentation), you will need to break up each article in few-sentence chunks. You can get to a large number of these chunks very rapidly.