270 karma · joined May 29, 2021 (5y ago) · 277 submissions
comment 5y ago · link · parent
For crowdsourcing, I mean that the crowd is a distribution network and not the attack creator (e.g., they are a self-distributing virus/“worm”). The attacker takes those images (the initial “worm” programs) and uploads them to reddit as a catchy meme for worldwide distribution. Meme sharers wouldn’t be aware that the meme has a hash collision with CP.
The entire defense of this sort of thing is obscurity (further obscured by using “magical” machine learning), since nothing is proven about how collision resistant the algorithm is. At Apple’s scale, it’s as careless as rolling your own crypto hash.
comment 5y ago · link · parent
Anyhow, adversarial attacks transfer reasonably well across models so you could create attacks on models you think Apple would use internally.
I’d imagine the first think Apple would do is put attack spammers on an ignore list. However, that would only work until the images start propagating on the wider internet via forums and social media.
comment 5y ago · link · parent
comment 5y ago · link · parent
The hashing isn’t really so relevant apart from pigeonhole arguments. It’s a machine learning problem of classification between CP and not, and hashing is an implementation detail. The way I would attack this reading a few papers would be to approximate any non-differentiable parts of the hashing with a smooth proxy function, then use an off-the-shelf gradient-based attack such as Fast Sign Gradient Method. The hashing guarantees that even at hashing distance 0, you have a huge amount of collisions, so that is blind spot 1. Blind spot 2 is the CNN is not-robust to mild-perturbations, so you can “squeeze” inputs together in hash space by modifying them. You can likely attack both simultaneously by doing the attack I said above.
comment 5y ago · link · parent
To your point, people did have a “programming language” for databases and it was called CODASYL. It died in the 1970s in favor to the relational model. NoSQL and other recent trends have similarly been criticized pretty heavily compared to relational databases.
I guess the point is that SQL and friends may feel restrictive but alternatives sacrifice on performance or safety.
comment 5y ago · link · parent
Assume we had this perfect hash knowledge. I’d create a compression algorithm to uniquely map between images and the 256 bit hash space, which we probably agree is similarly improbable. It’s on the order of 1000x to 10000x more efficient than JPEG and isn’t even lossy.
comment 5y ago · link · parent
comment 5y ago · link · parent
N is usually much bigger than M, since you have the combinatorial pixel explosion. Say images are 8 bit RGB 256x256, then you have 2^(8x256x256x3) bit combinations. If you have a 256-bit hash, then that’s only 2^256. So there is a factor of 2^(8x256x3) difference between N and M if I did my math right, which is a factor I cannot even calculate without numeric overflow.
comment 5y ago · link · parent
Even if it is true that papers are unclear, the incentives for academics is to get prestige, which follows from getting papers accepted, which follows from getting (usually) 3 experts to say their paper is the least terrible paper in their stack. Professors need 30-40 papers in 5-6 years so journalists reading their paper for a 2 minute story is probably not on their radar. The process for getting a paper accepted is tuned precisely to be understood by the 3 reviewers, and further synthesis is out of scope.
Basically, it is incorrect to view papers as a way to spread knowledge to the masses (this is a common stance taken by science), but they are rather a form of academic currency which can be converted into other digestible forms, such as books. Often the knowledge in the paper is not even yet broadly accepted and may even be unsafe/incorrect e.g., medical research. So yes, consult with experts.
comment 5y ago · link · parent
For a concrete example, you can’t explain algorithmic complexity precisely and also make the explanation accessible to general audiences. One is inherently mathematical and the other is just intuition. The math is exactly precise and for the same reason hard to digest.
comment 5y ago · link · parent
One question: One of the advantages about having a clean design is that performance is easier to optimize, since the 80%/20% rule of performance becomes much more obvious. How true was this in your experience? Were there any major performance-related design changes or was performance optimization a matter of tuning a few selected functions?
comment 5y ago · link · parent
comment 5y ago · link · parent
AlexNet (2012) is out of date. The performance each parameter brings is less than newer models. Newer models, apart from just being better, use convolutions more extensively, which have less parameters than linear/affine layers. The authors describe this choice in Section 4, even showing how they have to retrofit a 224x224 model to the small fashion MNIST 28x28 dataset they use.
Therefore, when you embed a big payload into AlexNet, you should not be surprised that you lose little accuracy. Your model is a low accuracy model to begin with and the model’s parameter counts are fluffed up by its choice of layers.
comment 5y ago · link · parent
Also, the newest JPEG standard is nearly Turing complete, so you can possibly compress the data into a program which is the same size as the Kolmogorov complexity of the data.
comment 5y ago · link · parent
comment 5y ago · link · parent
Before AlexNet and GPU-optimized kernels, deep learning took too long to train large models, so large models were not used, and other ML methods seemed more promising.
I agree a killer product is what you want, but I think the incentives are wrong for a startup to get both algorithms/hardware right before funding runs out. Just getting a working compiler is out of reach of many of these startups.
comment 5y ago · link · parent
comment 5y ago · link · parent
https://www.youtube.com/watch?v=naed4C4hfAg
At 1:20:00
comment 5y ago · link · parent
* approach “A” was invented in 1970 or so and didn’t work
* “B” extends “A” in multiple ways and now works
* noobs assume “B” invented “A” and treat “B” as the root of modern knowledge. “B” often has more market presence so noobs (without deep understanding) don’t see the relationship to prior attempts.
Examples:
* AlexNet/deep learning/ML in general
* MapReduce/databases/functional programming primitives
* Docker/chroot “Jail” Containers
* Bitcoin/90s coins/blockchains
Ego and ignorance are rarely a great combination :)
comment 5y ago · link · parent
If you’re running VMs in production, VM performance is the main metric you care about. If not, benchmarking in a container limits performance interference to networking and disk, mostly.
Performance measurements are supposed to be like “real science” experiments. Doing it the “right way” would have controls, multiple trials, and different setups to help control for measurement effects. Unfortunately, most experiments do not have sufficient rigor. The post shows how to document experiment setup, which allows you to replicate, but it may not actually be able to reproduce the hypothesis/conclusion.