Live data from Hacker News

Machine Learning Confronts the Elephant in the Room

quantamagazine.org

81–90 of 116 posts

Re: Machine Learning Confronts the Elephant in the Room

#81
post #52

Earlier quoted context omitted.

> a low confidence score Neural nets should return a low confidence score. But, the popular approach (described below) ignores that. Neural nets ignore confidence because of a technique called softmax [1]. This happens as the final operation of a neural net, and is required for training. Softmax is a tool to make an array of positive numbers look like a probability distribution: out = x / x.sum() x[i] is a class pred…

Note that you can get a form of confidence by just not applying softmax to the output during inference. Softmax is primarily to aid in training.

How well do neural networks train with no normalization at all, compared with softmax?

Re: Machine Learning Confronts the Elephant in the Room

#82

Please, correct me if I'm wrong, but isn't the whole machine learning testing approach based on the recognition the whole image at once in full resolution in one attempt? If so, it's not how animals see and observe the world and this could be a key difference between AI and living beings. What if an algorithm actually had a focused sight? Look at the brightest feature, blur the rest, then try to find another distinct…

Yes but children can pass these tests when presented with a single photo as well (if I understand the setup correctly), so I'd say it's a fair comparison. The algorithm can "look" at the picture as long as it wants as well, e.g. using many different convolutional filters that can "see" features in different parts of the image and then combine these in later stages of the analysis.

[deleted]

Re: Machine Learning Confronts the Elephant in the Room

#83
post #57

I know very little about machine vision, so forgive the naïvete of this question: > an ability humans have that AI lacks: the ability to understand when a scene is confusing and thus go back for a second glance. Wouldn't the machine return a low confidence score when a scene is confusing? If not, why is this difficult to get around? If so, why can't we just call this a computation difficulty problem, simply requiring…

> simply requiring a way to go back and spend more effort later when required Present neural nets have no "more effort" or "less effort" knob. For the same input they always produce the same output. The article says a different thing: humans rerun the "algorithm" again, but this time with the knowledge that something was wrong in the previous run (lets say color), and this knowledge will tweak the way it runs again,…

Naively, doing an ensemble of different networks is effectively this. I don't know if folks doing that, though. Pretty sure these edge cases don't matter nearly as much as lack of data for most of us.

Consider, can you recognize that distant relative you have never seen? Why not?

Re: Machine Learning Confronts the Elephant in the Room

#84
I'm aware of the vision algorithm in my head to a certain extent and I'm not sure if machine vision does the same. You can run simple thought experiments to see what your brain actually does to analyze an image. First of all when I look at a scene I am 100% aware of geometry. Irregardless of meaning, words and symbols I can trace out the three dimensional shape of things without associations to words.

How do I know I can do this? Simple. Every scene I look at I can basically translate or imagine that scene in my head as wireframe scene or some low poly scene as if it was generated by a computer. Similar to if I look at wireframe scene generated by a computer, my mind can translate it into a scene that looks real. Try it, you can do it.

Second, I can look at an actual low poly wireframe model of an elephant and associate it with the word 'elephant.' I do not need color, or detail to know it's an elephant. In fact, with just color and detail alone it is harder for me to identify an elephant. For example if someone takes many very closeup photographs of parts of an elephant like its eye, skin, ear, etc.. and asks me to guess the subject by interpreting the pictures... I become fully aware that I would be accessing a slower, different part of my brain to deduce the meaning. This is a stark contrast to the instantaneous word association established when I look at a wireframe model of an elephant. The speed difference between both ways of identifying an elephant indicate to me that geometric interpretation is the primary driver behind our visual analysis and details like color or texture are tertiary when it comes to the identification of an elephant. I believe the visual cortex determines shape first, then subsequently determines word from shape.

If you feed a white sculpture of an elephant or a wireframe of an elephant into one of these deep learning networks it is unlikely you will get the word 'elephant' as output. But if you feed it a real picture of an elephant it can correctly identify the elephant (assuming it was trained against photos of an elephant). Because the delta between a white sculpture of an elephant and an actual picture of an elephant is just color and detail this indicates to me that when you train these deep learning networks to recognize an elephant you are training the network to recognize details. It's a form of over fitting, the training is not general enough to catch geometry. It is correlating blobs of pixels , color and detail with an elephant rather then associating a three dimensional model of it to the word... the opposite of what humans do. In fact I bet you that if you took those very closeup photographs of an elephant and fed it into the network it'd do a better job at recognition versus the picture of a white sculpture of an elephant.

This indicates to me that to improve our vision algorithms, the algorithm must first associate pixels with geometry then identify the associated word to the geometry rather than try to associate blobs of pixels to words. Train geometry recognition before word association.

My guess is that our minds have specific and genetically determined built in geometry recognition algorithms honed to turn a 2d image into a 3d shape. We do not learn to translate 2d to 3d we are born with that ability hardwired. Where learning comes in is the translation of this shape to a word. Whereas most of the machine learning we focus on in research is image recognition, I believe the brain is actually learning shape and geometry recognition.

Re: Machine Learning Confronts the Elephant in the Room

#85

Earlier quoted context omitted.

Is this what softmax is? Simply dividing a vector by sum of its components? If so, then how does it deserve a name , not to mention a long Wikipedia page full of formulas?

No, it's not. It's actually e ^ x_i / sum(e ^ x_j for x_j in x), which is in fact different. Simply dividing by the sum wouldn't work for "squashing to a probability distribution" in a large number of cases.

So pointwise exponentiation composed with dividing by the sum. Still don't need a new word.

Re: Machine Learning Confronts the Elephant in the Room

#86

Earlier quoted context omitted.

> a low confidence score Neural nets should return a low confidence score. But, the popular approach (described below) ignores that. Neural nets ignore confidence because of a technique called softmax [1]. This happens as the final operation of a neural net, and is required for training. Softmax is a tool to make an array of positive numbers look like a probability distribution: out = x / x.sum() x[i] is a class pred…

Is this what softmax is? Simply dividing a vector by sum of its components? If so, then how does it deserve a name , not to mention a long Wikipedia page full of formulas?

Softmax has two components:

1. Transform the components to e^x. This allows the neural network to work with logarithmic probabilities, instead of ordinary probabilities. This turns the common operation of multiplying probabilities into addition, which is far more natural for the linear algebra based structure of neural networks.

2. Normalize their sum to 1, since that's the total probability we need.

One important consequence of this is that bayes' theorem is very natural to such a network, since it's just multiplication of probabilities normalized by the denominator.

The trivial case of a single layer network with softmax activation is equivalent to logistic regression.

The special case of two component softmax is equivalent to sigmoid activation, which is thus popular when there are only two classes. In multi class classification softmax is used if the classes are mutually exclusive and component-wise sigmoid is used if they are independent.

Re: Machine Learning Confronts the Elephant in the Room

#87

Earlier quoted context omitted.

> a low confidence score Neural nets should return a low confidence score. But, the popular approach (described below) ignores that. Neural nets ignore confidence because of a technique called softmax [1]. This happens as the final operation of a neural net, and is required for training. Softmax is a tool to make an array of positive numbers look like a probability distribution: out = x / x.sum() x[i] is a class pred…

Is this what softmax is? Simply dividing a vector by sum of its components? If so, then how does it deserve a name , not to mention a long Wikipedia page full of formulas?

Coming from pure math, I often feel this way now learning statistics and ML. In pure math, it feels like the threshold for how a novel a concept should be before it gets its own word is much higher.

E.g, we have "regression" and "classification" instead of "supervised continuous prediction" and "supervised discrete prediction".

Re: Machine Learning Confronts the Elephant in the Room

#88

First, the chair wasn't replaced with a couch - you can see there is yet another rectangle just a few pixels to the left, that likely says "chair". Second, even many people are surprisingly bad at decoding incongruous scenes, which is why hidden object games are a thing.

The disappearing cup and book are caused by a similar issue. They "only show detection results with confidence value that exceeds 0.5". The cup is shown at 50% in the original image, so it "disappears" if the presence of the elephant lowers its score even slightly. Same of disappearing books.

Presumably the couch showed up because it rose from <0.5 to 0.57. They don't tell us what the score is for the chair, it might even be higher than the score for the couch, since their visualization clearly doesn't sort by probability.

Re: Machine Learning Confronts the Elephant in the Room

#89
post #52

Earlier quoted context omitted.

Note that you can get a form of confidence by just not applying softmax to the output during inference. Softmax is primarily to aid in training.

How well do neural networks train with no normalization at all, compared with softmax?

You need to perform some kind of normalization, since probability must be between 0 and 1 (and being wrong on a confident prediction gives huge penalties using the popular maximum likelyhood loss functions).

But you can use component wise normalization (sigmoid) instead of combined normalization (softmax). These correspond to the assumption that the classes are independent (component wise sigmoid) or mutually exclusive (softmax).

Re: Machine Learning Confronts the Elephant in the Room

#90

First, the chair wasn't replaced with a couch - you can see there is yet another rectangle just a few pixels to the left, that likely says "chair". Second, even many people are surprisingly bad at decoding incongruous scenes, which is why hidden object games are a thing.

Agreed. Also, what exact architecture were they using, how were they segmenting, etc. This feels like a rehashing of known challenges using a random implementation struggle to make some broad "AI" judgement.
Post reply on HN