Better HN
topnewbestaskshowjobs
Log inSign up

mesuvash

27 karma · joined Apr 2, 2011 (15y ago) · 41 submissions

Submissions

comment 8mo ago · link · parent

IIUC, The paper's notation S^(d-1) means the unit sphere in R^d (e.g., the familiar unit circle is S^1 living in R^2). So, i think, x in the algorithm is already a unit vector.

Reference: Section 2:Preliminaries ... We use the notation S^d−1 to denote the hypersphere in R^d of radius 1.

Section 3.1 Let x ∈ S^d−1 be a (worst-case) vector on the unit sphere in dimension d.

comment 8mo ago · link · parent

Fair point. I've updated the animation to address this. The grid now uses the correct non-uniform centroids (optimal for the arcsine distribution in 2D), so you'll see grid lines cluster near the edges where unit-circle coordinates actually concentrate, rather than being evenly spaced. The spacing does change with bit depth.

On the second quantization step: the paper's inner-product variant uses (b-1) bits for the MSE quantizer shown here, then applies a 1-bit QJL (Quantized Johnson-Lindenstrauss) encoding of the residual to make dot-product estimates unbiased. I chose to omit QJL from the animation to keep it digestible as a visual, but I've added a note calling this out explicitly.

comment 8mo ago · link · parent

Yes, this is important in high dimension. But sadly, very hard to visualize. In 2d it looks like unnecessary.

comment 8mo ago · link · parent

That's actually correct and intentional. TurboQuant applies the same rotation matrix to every vector. The key insight is that any unit vector, when multiplied by a random orthogonal matrix, produces coordinates with a known distribution (Beta/arcsine in 2D, near-Gaussian in high-d). The randomness is in the matrix itself (generated once from a seed), not per-vector. Since the distribution is the same regardless of the input vector, a single precomputed quantization grid works for everything. I've updated the description to make this clearer.

comment 8mo ago · link · parent

Yes. Great catch. I simplified the grid just for visualization purpose.

I've updated the visualization. The grid is actually not uniformly spaced. Each coordinate is quantized independently using optimal centroids for the known coordinate distribution. In 2D, unit-circle coordinates follow the arcsine distribution (concentrating near ±1), so the centroids cluster at the edges, not the center.

comment 8mo ago · link · parent

Author here. Sorry still working on refining the post. Will share once the post is ready.

comment 8mo ago · link · parent

TurboQuant explained with an easy to understand (no-math) animation https://mesuvash.github.io/blog/2026/turboquant-interactive/

comment 8mo ago · link · parent

I am glad you liked it :) You might like this https://mesuvash.github.io/blog/2026/rl_for_llm/ as well :)

9.

DeepSeek's Dualpath Paper explained with animations(mesuvash.github.io ↗)

2 points · by mesuvash · 9mo ago · discuss

10.

Intuitive Intro to Reinforcement Learning for LLMs(mesuvash.github.io ↗)

3 points · by mesuvash · 9mo ago · discuss

11.

An Intuitive Introduction to PPO and GRPO(mesuvash.github.io ↗)

5 points · by mesuvash · 9mo ago · 2 comments

comment 7y ago · link · parent

Thanks for the pointers.

From my personal experience, Auto-encoders are amazing for dense input (images, audio etc), more specifically, when the input feature space is not large. However, in many real-world problems such as recommendation, ranking etc. the feature space is generally very sparse for eg clicks, purchase of items (say 100M items). In such cases, scaling can be challenging with neural models esp Autoencoder.

comment 7y ago · link · parent

>>I think the hashes could take some work. Any suggestions or thing that are not clear?

Thanks for your feedback. I shall update the post accordingly.

comment 12y ago · link · parent

Nothing but #respect. It's hard to see people who give up fortune for what they consider right thing(atleast from his perspective).

15.

Seaborn: Amazing plots with matplotlib(stanford.edu ↗)

2 points · by mesuvash · 13y ago · discuss

comment 14y ago · link · parent

Thanks for the info :)

comment 14y ago · link · parent

Btw, If someone wants to drop out from the course. How can he/she do so ?

comment 14y ago · link · parent

Awesome. MITx platform is superior than any other online learning platform i have ever seen. Very well done. Congrats.

19.

Show HN :Interesting videos on the web Lolzwow.com

1 points · by mesuvash · 15y ago · discuss

12