logoalt Hacker News

sweetjuly • yesterday at 6:22 PM • 1 reply • view on HN

Code signing weights and publishing the signatures conspicuously would at least mitigate the targetability/prevent tainted models from being sent only to specific countries or companies. It won't help, as you point out, if the model is malicious to everyone, but indiscriminately attacking everyone who uses a given model is much more likely to be caught.


Replies

foota • yesterday at 9:24 PM

That's a fair point. I guess there's a few different threat models, and it would protect against some of them. Although, I feel like if you don't trust the org that trained your model you're in a bad place (e.g., in theory they could serve different checksums to different people). So I think it's most useful against untrusted intermediaries, at which point, maybe just get them straight from the source? It would make that sort of attack harder at least though for a malicious model trainer since they'd have to worry about the "real" checksum leaking. (E.g., you got sha256:X? I got sha256:Y!)

Maybe more interesting would be some way to checksum weights that would survive non-malicious quantization, but I suspect that's not possible.