Better HN
topnewbestaskshowjobs
Log inSign up

laginimaineb

407 karma · joined Aug 4, 2015 (11y ago) · 48 submissions

Submissions

1.

Beyond Transformers: Can LLMs redesign themselves as they train?(doubleai.com ↗)

2 points · by laginimaineb · 2w ago · discuss

comment 1mo ago · link · parent

To name a couple.

(a) Scope: Maxwell can optimise portions of both your own code, but also of underlying libraries too (think libc), according to your data flow and env. These aren't places where you necessarily have source code or an easy way to replace it.

(b) It's dynamic: like a JIT, if your data flow _changes_, Maxwell detects new bottlenecks and reoptimises. A good example is an inference pipeline where e.g. the concurrency or seqlens can change suddenly (depending on what your users do). If you reoptimise for each such case, you'll do so forever (and there are many different operational points, each requiring their own algorithmic approach).

comment 1mo ago · link · parent

Uhm I wrote the blog, and I'm quite proud to say it is human written... And nowhere did I say anything about AI assistance. Happy to address any questions about substance if you like.

comment 1mo ago · link · parent

I don't follow.

If you don't use Maxwell everything works as is.

Maxwell does swaps in memory during runtime, not on disk.

And we of course sign every output and do externalise the proof of equivalence.

comment 1mo ago · link · parent

Actually Maxwell can reuse optimisations across users by clever caching. (A cool side effect is that the more it is used, the faster it becomes for everyone).

comment 1mo ago · link · parent

Bend is a formal language, but its use is quite different (also, Bend is much too narrow for Maxwell's use case...).

We need proofs of equivalence (including for code with side effects!) between original code, and new code, possibly in some other language. Say Python and a raw SIMD implementation. To do this we have a full 'embedding' of said languages in the same formal framework. It also requires modeling exactly what 'state' means in dynamic high level languages.

comment 1mo ago · link · parent

That gets you nowhere near the same level of acceleration.

comment 1mo ago · link · parent

More technical details forthcoming of course, including about formalisation... We indeed do not redo the same work over and over, but rather cache intelligently. We take special care not to interfere with debugging workflows (much in the same way that, e.g., the Tier 2 JIT does, in CPython). And as for visibility into the level of source code, what do you mean? The rewritten binary portions don't always have associated code, let alone in the language of origin.

comment 1mo ago · link · parent

Yes, CEMs can also help reduce bugs. To give an example, we found several memory safety bugs in core CPython code, through our formalisation. We'll release more details on that soon.

comment 1mo ago · link · parent

The verification is, which allows the optimisation to be extremely broad and non deterministic.

It's really unlike a compiler. For example, for a function like 'sort', the optimisation can:

- Use quicksort if the data distribution is generic.

- Use insertion sort if the data is nearly sorted

And so on... As long as these can be proven sound, Maxwell can pick the best optimisation in real time.

11.

Maxwell: A new kind of model that sits between code and hardware(heymaxwell.ai ↗)

137 points · by laginimaineb · 1mo ago · 70 comments

comment 6mo ago · link · parent

(I work at doubleAI.) The benchmark numbers (90% wins, 2.24x speedup on average, with key attention workloads accelerated ~15x) are one part of the story. The other: AI-generated kernels can pass simple verifiers with room to spare and still break in production. Our writeup walks through one such case: a fused embedding-gradient + RMSNorm backward kernel. As an example, we took the fastest (highest scoring) submission on the benchmark, for this task, submitted by other competitors, put it in our training code, and... everything broke (the loss diverged). The bug turned out to be subtle and hard to nail down (even changing the input distribution or the optimiser made it invisible). More details are in our blogpost.

We find these kinds of bugs very interesting: defending against humans is not the same problem as defending against agents. As models are becoming more powerful, they're also getting great at subverting verifiers (going through the 'path of least resistance'). This means that stronger verifiers are becoming increasingly more necessary, something we at doubleAI specialise in. You can also read our previous blogposts where we discuss this.

Happy to answer technical questions.

13.

WarpSpeed Approaches Speed of Light on Blackwell(doubleai.com ↗)

7 points · by laginimaineb · 6mo ago · 1 comment

14.

WarpSpeed automatically rewrites Nvidia core library, achieves 3.6-100x speedup(doubleai.com ↗)

9 points · by laginimaineb · 8mo ago · discuss

comment 10y ago · link · parent

Actually, I would imagine they are nothing like one another.

However, Exynos uses a TrustZone TEE implementation to implement the KeyMaster module, just like Qualcomm's Snapdragon. This means that unless that TEE implementation uses a hardware key which is not software accessible, the same issue would be present. Of course, reverse-engineering a new TEE implementation would take a long time... But it sounds like it could be fun.

comment 10y ago · link · parent

You're right. Let's take a second to go over the issues:

1. The arbitrary code-execution in TZ has already been privately disclosed and fixed.

2. As for the second issue - I would argue that it's not an issue at all. TZ should be updated (otherwise how would they fix the TZ code-exec vulnerabilities?).

However, in this case gaining code execution in the TZ kernel directly leads to the disclosure of the keys which are meant to bind the KDF to your device. This is in direct contract with Apple's KDF. The key here is that software shouldn't be trusted, by design.

3. As for the last issue, I would argue that this is just a clever form of social-engineering. After all, who's to say they didn't just swap the phone with a dummy phone to make you insert the correct password?

However, in Android's case, you wouldn't even need to cooperate. OEMs could simply flash the new TZ code, extract the KeyMaster keys, and bruteforce the key. All without having any help from you.

comment 10y ago · link · parent

I believe so.

comment 10y ago · link · parent

I'll definitely try and get around to it sometime soon. However, I wouldn't be surprised if the situation is the same... After all, the KeyMaster module was initially only meant to keep encryption keys on the device, not to safeguard FDE.

19.

Extracting Qualcomm's KeyMaster Keys – Breaking Android Full Disk Encryption(bits-please.blogspot.com ↗)

341 points · by laginimaineb · 10y ago · 98 comments

20.

Hijacking Qualcomm's TrustZone Kernel(bits-please.blogspot.com ↗)

2 points · by laginimaineb · 10y ago · discuss

comment 10y ago · link · parent

FWIW, formal verification requires a complete and exact spec - the TZ kernel is very complex and interacts with nearly all the peripherals on the SoC, it doesn't just manage QSEE applications. I think creating a spec for something like that would be really hard.

22.

War of the Worlds – Hijacking the Linux Kernel from QSEE(bits-please.blogspot.com ↗)

2 points · by laginimaineb · 10y ago · discuss

comment 10y ago · link · parent

Widevine DRM is integrated into virtually all Android phones. If you're building your own ROM, you could remove the widevine.bXX files from the ROM image itself - I've never tested it, but it could probably soft-fail. There's no other way to remove it.

Anyway, this specific issue has already been fixed (but there are probably more bugs lurking either there on in other trustlets).

24.

QSEE privilege escalation vulnerability and exploit(bits-please.blogspot.com ↗)

22 points · by laginimaineb · 10y ago · 3 comments

25.

Exploring Qualcomm's Secure Execution Environment(bits-please.blogspot.com ↗)

3 points · by laginimaineb · 10y ago · discuss

comment 10y ago · link · parent

I believe so

comment 10y ago · link · parent

Don't think I'll collect it, but I will release all the details so people can do it themselves.

comment 10y ago · link · parent

It will work on the Turbo! :)

But you'll either need a version old enough to be vulnerable to this TrustZone exploit, or you can wait a couple of weeks until I release a new exploit (which also works on the Turbo).

comment 10y ago · link · parent

Thanks! I'm also on twitter in case that helps (@laginimaineb).

As for Sunshine - I'm publishing a new (even broader) zero-to-TZ saga, complete with exploits, but I'm not going to create a product out of it. So ultimately, as long as there are people behind Sunshine who are willing to make it work with relative ease, I'm sure most people won't mind spending a few dollars to unlock their device.

As for the more tech-savvy crowd; I hope they choose to do it themselves with the exploits provided - it is much more fun that way, IMHO.

12