Better HN
topnewbestaskshowjobs
Log inSign up

bertday

270 karma · joined May 29, 2021 (5y ago) · 277 submissions

Submissions

comment 5y ago · link · parent

For what it’s worth, an attack similar to above is now demonstrated.

https://news.ycombinator.com/item?id=28219068

comment 5y ago · link · parent

For transferring, I mean specifically that it is known that attacks transfer in a general sense e.g., https://www.usenix.org/system/files/sec19-demontis.pdf It’s not easy in this setting due to the information asymmetry, but if someone wants to dedicate the resources it should be possible. They could get N random models and create images that fool all N.

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

I was under the impression that the hashes were the only thing transferred, as the source image is encrypted. (Edit: On second thought, manual reviewing needs the source image.)

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

I would guess that the main point has to be hardware accelerated features, such as ray-tracing. I agree though that it seems pointless to buy a budget GPU when it’s basically a scaled up iGPU. Perhaps it makes sense if you want a mid-range CPU without a iGPU and you can’t operate it headlessly, or if you have an old PC that needs a mild refresh.

comment 5y ago · link · parent

My favorite example is compound interest. Imagine having to solve a compound interest test to get a credit card. It seems like a basic precaution to me (like a driving license), but yet I’m not convinced all in the US can do it.

comment 5y ago · link · parent

It’s an attack vector because, either directly or indirectly, people will get access to the hash function. Therefore, they will have a testbed to launch attacks against the hash. Once they learn an attack, they will hash your harmless pictures into being classified as CP by applying a potentially perceptually invisible modification to your images. Imagine every image on reddit’s frontpage being classified as CP. The distribution of natural images is irrelevant as long as people can modify images arbitrarily.

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

Convolutional Neural Network e.g., deep learning

comment 5y ago · link · parent

SQL expresses programs via the relational model. Pandas is similar. I’m not an expert on the areas, but it seems that relational modeling is the best tradeoff between performance and abstraction.

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

But you cannot know that a-priori so it’s either an attack vector for image manipulation or straight up false positives.

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

If Apple is indeed using CNNs, then I don’t see why any of the black-box adversarial attacks used today in ML wouldn’t work. It seems way easier than attacking file hashes, since there are many images in the image space that are viable (e.g., sending a photo of random noise to troll with such an attack seems passable).

comment 5y ago · link · parent

If images have cardinality N and hashes M and N > M, then yes, by pigeonhole principle you will have collisions regardless of hash function, f: N -> M.

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

You need to provide an example of a highly cited paper with low clarity otherwise the clarity concept is vague.

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

It’s impossible to argue meaningfully without an example (for a field with tens of thousands of papers a year), but the purpose of academic papers is to convince experts of the ideas. If the paper is clear enough for an expert, it is serving its intended purpose. People are free to write blog posts and summarize papers on YouTube in a simplified way but it’s not compatible with technical writing and will likely get the paper rejected if it is done there. Journalists should consult with experts not unlike any layman consulting a lawyer for legal advice.

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

Thanks for the post.

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

Latex is my personal example of bad compiler messages, as well. The other day I added a duplicate bibtex entry and/or added two keys for the same entry. The error messages are a dump of the entire bibliography rather than a simple line number.

comment 5y ago · link · parent

I’d be interesting to study how people read Latex compiler errors, which I find to be unhelpful and an extreme case of bad error messages. I think part of the problem is an extensive use of macros, which expand out into gibberish with little line number information. I personally just bisect my commits rather than read the logs.

comment 5y ago · link · parent

How much of that hardness is necessary, though? Backward compatibility is quite costly.

comment 5y ago · link · parent

Paper is stretching by picking favorable benchmarks. It’s not ResNet on ImageNet, folks. It’s AlexNet on Fashion-MNIST.

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

They use AlexNet, which is way out of date at this point and I believe understood to be parameter inefficient. Most of those model parameters are likely useless, and at least less useful than those of other newer models. The model they chose is basically zero-padded and they are appending to the zero-d region.

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

I don’t know about nodejs, but serving a twitter-like feed with an in-memory database of everyone’s tweets is one use-case. It’s a database query workload and would benefit from caching raw data or views of the twitter feed and has a latency requirement of 100 milliseconds or so.

comment 5y ago · link · parent

It’s a Catch 22. New algorithms stink because conventional hardware stinks at running them and vice versa.

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

Most of the effort is in fine tuning the existing methods, which is important, but also leads to reinforcing the status quo in terms of algorithms. In other words, transistor scaling gets a sizable fraction of optimization, and the viable algorithms are ones most similar to dense matrix multiplication. If you unfix the algorithms (e.g., analog or very sparse models), you’ll fall off this optimization efforts and your model will eat dust.

comment 5y ago · link · parent

I don’t think it’s irrelevant to look at changing timescale. If the law broke down to be 3 years, there isn’t any reason it won’t be 4, 5, or some other N years in the future.

comment 5y ago · link · parent

On the same podcast you can find David Patterson (known for writing some widely used computer architecture books), who disputes this claim.

https://www.youtube.com/watch?v=naed4C4hfAg

At 1:20:00

comment 5y ago · link · parent

I’d just like to add that “Dynamic Programming” is one example of word fluff. “Dynamic” is somewhat of an ambiguous marketing buzzword, unfortunately.

comment 5y ago · link · parent

The question is how much those features were worth in terms of cost (is a feature bloat?). If you don’t have a cost constraint, then yes, you have feature diversity but the cost for any feature can be arbitrarily high.

comment 5y ago · link · parent

Windows 95 needed 4MB memory. Windows 7 needed 1GB. Try running Windows 10 with less than 4GB.

They all run processes, do they not?

comment 5y ago · link · parent

> Which software exactly is functionally the same yet consumes more resources? Can you give some specific examples?

Operating systems, particularly Windows. Given fixed hardware, you cannot expect an operating system to continue working indefinitely.

comment 5y ago · link · parent

Same is true in academic research (though old-timers catch it often). The common pattern is:

* 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

Depends. You can make the same argument about an OS not giving bare-metal performance. For example, disk bandwidth may be different from filesystem performance. You may have some daemon doing e.g., disk-defragmentation in the background. If you’re trying to be really scientific, you should note any sources of measurement interference, because they always exist. You have to pick your battles.

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.

1
678910