HackerTrans
TopNewTrendsCommentsPastAskShowJobs

jackcook

no profile record

Submissions

Heathrow airport closed after huge fire causes power outage

telegraph.co.uk
3 points·by jackcook·в прошлом году·0 comments

When machine learning tells the wrong story

jackcook.com
305 points·by jackcook·2 года назад·29 comments

'Moon Goo' Is Shifting Under the Moon's Surface

vice.com
2 points·by jackcook·2 года назад·0 comments

Mamba: The Easy Way

jackcook.com
279 points·by jackcook·2 года назад·60 comments

MeshGPT: Generating triangle meshes with decoder-only transformers

nihalsid.github.io
738 points·by jackcook·3 года назад·157 comments

Thousands of people apparently cheat at Wordle every day

newscientist.com
1 points·by jackcook·3 года назад·1 comments

Apple’s new predictive text feature appears to be powered by GPT-2

jackcook.com
6 points·by jackcook·3 года назад·1 comments

A look at Apple’s predictive text model

jackcook.com
3 points·by jackcook·3 года назад·2 comments

comments

jackcook
·2 года назад·discuss
Thanks for reading! The two stories are of course deeply intertwined: we wouldn’t have found the new side channel without the cautionary tale about machine learning.

But the finding about ML misinterpretation is particularly notable because it calls a lot of existing computer architecture research into question. In the past, attacks like this were very difficult to pull off without an in-depth understanding of the side channel being exploited. But ML models (in this case, an LSTM) generally go a bit beyond “statistics” because they unlock much greater accuracy, making it much easier to develop powerful attacks that exploit side channels that aren’t really understood. And there are a lot of ML-assisted attacks created in this fashion today: the Shusterman et al. paper alone has almost 200 citations, a huge amount for a computer architecture paper.

The point of publishing this kind of research is to better understand our systems so we can build stronger defenses — the cost of getting this wrong and misleading the community is pretty high. And this would technically still be true even if we ultimately found that the cache was responsible for the prior attack. But of course, it helps that we discovered a new side channel along the way — this really drove our point home. I probably could have emphasized this more in my blogpost.
jackcook
·2 года назад·discuss
Websites doing this would have to be careful about it: they might become the only website triggering a lot of interrupts randomly, which then makes them easy to identify.

Our countermeasure which triggers interrupts randomly is implemented as a browser extension, the source code for which is available here: https://github.com/jackcook/bigger-fish

I'm not sure I would recommend it for daily use though, I think our tests showed it slowed page load times down by about 10%.
jackcook
·2 года назад·discuss
Thank you! Really appreciate it
jackcook
·2 года назад·discuss
Yes you're spot on, the nonlinearities come from the full Mamba blocks, which I left out of this post for simplicity/to focus on the bigger ideas the paper introduced. You can see it marked by the "X" on the right-most part of Figure 3 in the Mamba paper: https://arxiv.org/abs/2312.00752
jackcook
·2 года назад·discuss
Thank you for the kind words! I think it’s mostly to reduce complexity during training. Here’s an excerpt from page 9 of the Mamba paper:

“We remark that while the A parameter could also be selective, it ultimately affects the model only through its interaction with ∆ via A = exp(∆A) (the discretization (4)). Thus selectivity in ∆ is enough to ensure selectivity in (A, B), and is the main source of improvement. We hypothesize that making A selective in addition to (or instead of) ∆ would have similar performance, and leave it out for simplicity.”
jackcook
·3 года назад·discuss
Wow, it was quite the surprise to wake up to seeing this post near the top of HN! I wrote the post, happy to answer questions if anyone is wondering about any details.
jackcook
·3 года назад·discuss
Yes, you're right, I should have mentioned it in the post, but I used pure greedy sampling for the GPT-2 outputs since I couldn't do anything but that for the Apple model. So temperature was set to zero, and there was no repetition penalty.
jackcook
·3 года назад·discuss
I used greedy sampling (temperature 0) for all of them. Since I didn't have access to logits/probabilities for Apple's model, I wasn't able to do anything else in a way that would be fair.
jackcook
·3 года назад·discuss
Some context: In the upcoming versions of macOS and iOS, Apple is including a predictive text model which offers suggestions while you type, which they’ve said to be a "transformer model". I managed to find some details about this model, including details about its topology (which looks a lot like GPT-2) and its tokenizer, and I was even able to peek in and see several of its top predictions while typing!

Hopefully this can give some insight into some of the trade-offs that Apple went through to put a model on every iPhone and MacBook — it’s small, it has a pretty narrow scope, and it’s not very capable on its own.
jackcook
·3 года назад·discuss
Apple is including a predictive text model which offers suggestions while you type, which they’ve said to be a "transformer model". I managed to find some details about this model