News for hackers. Stuff that matters.

mesuvash

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.

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.

Yes, this is important in high dimension. But sadly, very hard to visualize. In 2d it looks like unnecessary.
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.
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.

Author here. Sorry still working on refining the post. Will share once the post is ready.
TurboQuant explained with an easy to understand (no-math) animation https://mesuvash.github.io/blog/2026/turboquant-interactive/
Re:An Intuitive Introduction to PPO and GRPO on Thursday March 05, 2026 @12:24PM (#47264485)
I am glad you liked it :) You might like this https://mesuvash.github.io/blog/2026/rl_for_llm/ as well :)
Re:Hashing for large-scale similarity on Sunday February 17, 2019 @04:34PM (#19187071)
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.

Re:Hashing for large-scale similarity on Sunday February 17, 2019 @04:28PM (#19187033)
>>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.

Re:Flappy Bird Creator Dong Nguyen Speaks Out on Tuesday March 11, 2014 @03:52PM (#7381701)
Nothing but #respect. It's hard to see people who give up fortune for what they consider right thing(atleast from his perspective).
Thanks for the info :)
Btw, If someone wants to drop out from the course. How can he/she do so ?
Awesome. MITx platform is superior than any other online learning platform i have ever seen. Very well done. Congrats.

Show HN :Interesting videos on the web Lolzwow.com

Most of the time i face this situation “I am bored and i want to watch some interesting videos. I Google to find out good videos and before i find one i get tired of searching myriad of videos shared in the web.”We built lolzwow.com to address this simple problem. The main idea behind lolzwow is that everyday we spend time to search interesting videos for you . We use social measures to feature...

( Read More... | no comments | on HN )

Show HN: Lolzwow.com Interesting videos on the web

Most of the time i face this situation “I am bored and i want to watch some interesting videos. I Google to find out good videos and before i find one i get tired of searching myriad of videos shared in the web.”We built lolzwow.com to address this simple problem. The main idea behind lolzwow is that we search videos for you and we are committed to provide good videos shared in web. We use...

( Read More... | 1 comment | on HN )
Re:Ask HN: TED like sites/videos? on Monday May 09, 2011 @06:21AM (#2528164)
videolectures.net videos are generally about technical topic. Mostly related to Machine learning these days.
Re:Ask HN: TED like sites/videos? on Monday May 09, 2011 @06:17AM (#2528155)
If you are looking for inspirational videos or Interesting videos you can have a look at http://www.lolzwow.com
Well i think you need to adjust your routine. I think both startup and relationship are equally important and you have to manage accordingly. Relationship stands on top of understanding and i think you both should understand each other. If your girl understands you and you do the same then i dont think it wont be any problem.

Good luck.

Re:Why TechCrunch is over on Tuesday April 05, 2011 @07:42AM (#2410517)
Yeah, i am in verge of adjusting my expectations.
Watch these videos

http://bit.ly/ehfTc3 http://www.youtube.com/watch?v=UF8uR6Z6KLc http://bit.ly/eNZPda

I do it whenever i lack motivation. It helps me a lot, I hope it will help you in same way.

And you if you really think you want to take a break, Come to Nepal, Its a nice place to be. However its landlocked so you wont find beaches.

Re:Show HN: OneSong.me - Describe me in one song on Sunday April 03, 2011 @12:45AM (#2401837)
Nice work.
Re:Python or Ruby for fresh startup on Saturday April 02, 2011 @11:06AM (#2400040)
I will suggest you to start with the one you are most comfortable with. Both has strong community. Being a pythoneer, I can assure that python community and IRC is very has lots of people who are really very helpful. I dont know much about ruby.
Re:Why TechCrunch is over on Saturday April 02, 2011 @09:25AM (#2399860)
Yeah sometimes i feel TechCrunch is biased. I am not comfortable with people who write news on behalf of some company. We expect them to write the real news rather than supporting some and reprimanding others.