Live data from Hacker News

A polynomial autoencoder beats PCA on transformer embeddings

ivanpleshkov.dev

1–10 of 39 posts

Re: A polynomial autoencoder beats PCA on transformer embeddings

#3
I'm just a casual LLM user, but your description of the anisotropy made me think about the recent work on KV cache quantization techniques such as TurboQuant where they apply a random rotation on each vector before quantizing, as I understood it precisely to make it more isotropic.

But for RAG that might be too much work per vector?

Re: A polynomial autoencoder beats PCA on transformer embeddings

#6
post #5

I came here from a discussion about CS students who should not be bothered to set up email filters. How can they ever expect to be able to digest just the first paragraph in that article?

FWIW I found it quite straight forward. But then I did have some linear algebra back at uni.

That said I do think it's a good habit to either write out abbreviations in full or link to say Wikipedia, eg for PCA[1]. It's a well-known tool but still if you come from a slightly different field it might not ring a bell.

[1]: https://en.wikipedia.org/wiki/Principal_component_analysis

Re: A polynomial autoencoder beats PCA on transformer embeddings

#7
post #2

Author here — questions and pushback both welcome.

In the article, you mention this approach requires no search over hyper-parameter, because the method comprises a closed-form solution with "simple" linear algebra. I agree with this, but do you not in think need to tune the L2-regularization strength? That would for me be a hyper-parameter you would need to do a CV over (or similarly).

Re: A polynomial autoencoder beats PCA on transformer embeddings

#8
post #2

Author here — questions and pushback both welcome.

You should benchmark the retrieval speed of each method in terms of queries per second. I suspect that the gain in bandwidth you get from slightly better compression will be defeated by decompression being much more expensive.

Re: A polynomial autoencoder beats PCA on transformer embeddings

#9
post #2

Author here — questions and pushback both welcome.

Cool idea. But it only works when the data never changes. could you make a streaming/incremental version? One that updates the math cheaply when new data arrives, instead of recomputing everything, or does the math fundamentally prevent it?

Re: A polynomial autoencoder beats PCA on transformer embeddings

#10
post #5

I came here from a discussion about CS students who should not be bothered to set up email filters. How can they ever expect to be able to digest just the first paragraph in that article?

Definitely not by furthering their email client wrangling skills.
Post reply on HN