133 points · by Hard_Space · 4y ago · 64 comments
The meat of the paper is that the scribbles can be remarkably shitty and still get you decent pretraining.
Compared to alternatives:
imagenet: exhaustively annotated, disk-space-consuming, nonfreeforcommercialuse real world photos - huge and has licensing issues
rotnet: take random images, rotate them and ask the network whether they're right side up or not - easy, but still takes up disk space
3d renders: render realistic 3d scenes on the fly and use those as input - nvidia has enough of my money already, thx
fractaldb: generate fractal images and pretrain by predicting the fractal's parameters. - why bother with fractals if you don't need them
It is basically an experiment how the mid-to-low-level features in NNs generalize from random abstract generated images to real images.
This is not a very surprising result, because it is known NNs generalize fairly well and at these levels you mostly only have blobs and edges that do not look much different from artificial ones.
ANNs generalise atrociously badly, hence the need to train with ever bigger data to cover every nook and cranny of the instance space of each class of interest.
Incidentally, when people say that ANNs "generalise" they mean many different things, for example that they "genealise on the test set" which is usually only observed when the tests set is known in advance (and so it has been used in tuning hyperparameters and the like) or even, incredibly that they "generalise on the training set" (i.e. the validation partitions in cross-validation). Conversely, there is a glut of novel terminology like "out-of-sample" or "out-of-distribution" to describe generalisation beyond the test set, but this kind of generalisation is typically held up as a weakness of ANN, because they're genreally really bad at it.
In any case, strong evidence of robust generalisation on out-of-sample data from few examples and with no or little pre-training, in ANNs, would be a surprise, indeed.
The difference between interpolation and extrapolation is almost the most important concept in all of machine learning practice.
It's infinitesimally rare (from what I've seen so far) that a practical machine learning model can perform high quality extrapolation, for many different metrics of quality.
There's almost always far, far too many confounding variable.
This statement is meaningless without controlling for model complexity and data type. For their simplicity, ANNs generalize well on a wide variety of data. GPT-3 yields almost human-level generalization ability for some tasks.
I also clarified that the generalization is probably not far. There is not much complex "realism" to be found in low-to-mid-level features; they're almost mathematical in their simplicity, similar to basis functions.
[1]: https://proceedings.neurips.cc/paper/2021/hash/14f2ebeab937c...
However, this is now the second time this week I have spotted shoddy writing coming from unite.ai – I am referring to the conspiracy-esque spin from [2] that we saw just a few days ago. Apparently they come from the same author even, that seems to put a great deal of emphasis on their articles reaching the Hacker News front page [3]. I am not sure how I feel about this, I would like to believe that “we” as a community are better than to fall for hype and click bait; I am also very uncomfortable with the idea of there being professional prestige in getting onto the front page.
[2]: https://www.unite.ai/a-cartel-of-influential-datasets-are-do...
Wednesday was RSU vesting day. Your purchase is appreciated. <3
For example, to classify a hotdog it might be useful to first generate an intermediate representation of the image (think "cylindrical, brown, meaty thing"). Such a representation can then fairly easily be mapped to the concept "hot dog".
These representations can be learned from large image datasets alone (they do not require labels!). In our work we show that you don't even need real images, but that images that are generated from noise processes are enough to train such representations, and that these representations are surprisingly good for classification.
Hope this clarifies things a bit, and happy to answer any other questions!
It is then possible to generate arbitrary amounts of these images as samples from the stochastic process - these images exhibit certain image-like structures (such as oriented edges), but are as a whole still random and extremely varied, which is good and necessary for the representation learning.
In terms of helping, though, it is important to note that we do not achieve state-of-the-art performance yet, and when looking at absolute performance for a task like image classification, using real images is still better. That being said, something that is in the paper but generally seems to get lost is that our representations work very well when analyzing data that is very different from normal images, such as medical images or satellite images.
Back before deep learning, people used to make recognizers for features like that as a lower level of feature recognition. Now it's expected that features will be derived automatically from real imagery. This is kind of a return to that level.
A useful training set might be a big texture library used for game development or animation. Those are easily available.
But collecting lots of image data is hard so someone comes along and points out that the most important characteristic of your images is that they're appear drawn from an autoregressive process... That is that each pixel is (say) 95% correlated to the pixel 1 away, 95%^2 to the pixel two away, 95^3 three away and so on. So to compute the PCA you only need the covariance matrix anyways, so you just generate an AR0.95 covariance matrix and use the transform derived from that. And you find this works pretty well too.
This work is along those likes, they're generating random images with some simple natural-like statistical properties and training the first part of the classifier using them and getting useful results.
One interesting promising part is that this line of thinking may result in better network designs or insights that allow skipping training these initial layers: Going back to the block transform example, the next step would be to notice that the PCA of the AR0.95 matrix is the discrete cosign transformation, which is agreeable to an extremely efficient implementation.
The abstract seems to say that, but again, I could be misinterpreting: “Our findings show that it is important for the noise to capture certain structural properties of real data but that good performance can be achieved even with processes that are far from realistic.”
edited: Typo,clarity
I'm not enjoying this article. Effective at what exactly?
Actual: various detection tasks, as compared to other image networks.
Simple version: Many nn tasks work by feeding a lot of data into a network, then “refining” it with a task you want it to actually do.
So let’s say I want to detect corgis.
I take a network that can detect all kinds of shit, and feed it a bunch of images of dogs and tell it, no, only these ones please.
Why?
…because you don’t have 10TB of dog images, you have 10TB of pictures of random crap, and 1GB of corgi images.
…and fair intuitively, this works. If something knows how to tell dogs from cats from cars, it’s not a big stretch to become more specific and only detect corgis.
Now, this paper is showing that instead of feeding the initial network labelled images of cats, dogs, etc … you just feed it with procedural noise, it still works.
That’s a) surprising (wtf, why does telling the difference between a squiggly and another squiggly help you tel corgis from cats?) …
And b) really important, because it means you don’t need to spend hundreds (thousands) of hours or $$$ collecting the initial datasets.
Practically, what does that mean?
Well, here’s some food for thought: Google / Amazon etc are considered to have a fairly defensible moat for their voice recognition tech, because they are the only ones with enough data to train good models.
…but that moat vanishes in a blinding flash of steam if you can get comparable results from just feeding enough generated noise into a network.
So this is pretty interesting stuff.
https://en.m.wikipedia.org/wiki/Retinal_waves
[edit: I see the authors have already made this connection in the paper]
An image of IID pixels is a very unusual one, and I assume that picture to picture their process is IID.
Another way of looking at it, say you image an image with iid exponentially distributed pixels. The bits in the image file, however, would not be iid. So just because you can point to some part and say it's not iid doesn't make it wrong to call it random, it's just a question of what scale you're operating at.
Similarly, if you made an image that was 1/f instead of totally spectral flat, it wouldn't be IID (looking at the pixels alone, again)-- but I don't think anyone would fail to call a such an image "random noise".
The paper itself seems ok. It's certainly not ultra groundbreaking, but I think the research is useful and presents a pretraining step that could be used in many applications.
https://arxiv.org/abs/2107.10356
> However, our findings that AI can trivially predict self-reported race -- even from corrupted, cropped, and noised medical images -- in a setting where clinical experts cannot, creates an enormous risk for all model deployments in medical imaging: if an AI model secretly used its knowledge of self-reported race to misclassify all Black patients, radiologists would not be able to tell using the same data the model has access to.
Potentially the method in OP's paper could be used as an adversarial critic or similar counterbalancing effort to eliminate "secret knowledge" when it's not desirable.
Somehow this seems a little bit similar. Neural networks have a great many parameters. If training on very abstract images gives good results, then it seems like it indicates that there are certain symmetries that makes the neural network better, irrespective of dataset or task.
If that hypothesis is true, then it may be possible to change the architecture of the network to directly provide those properties without any training at all.
Consider that dimension reduction with the Locality Sensitive Hashing algo, or something like this [], has proven utility. You could make some hand-wavey argument that the approach in the article is similar in extracting features from randomness.
[] https://scikit-learn.org/stable/modules/random_projection.ht...
I expect this result to be not that interesting for most AI programmers, because you'll use a pretrained ResNet preprocessing anyway. But it is a very elegant solution for the licensing issues that come with large unsupervised image collections like ImageNet.
The researchers suggest that the current crop of machine learning architectures may be inferring something far more fundamental (or, at least, unexpected) from images than was previously thought...
Is it more plausible that this shows they are inferring something fundamental, rather than that they are differentiating images on the basis of some of their accidental (i.e. non-essential) features?