News for hackers. Stuff that matters.
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by ratel on Friday March 08, 2019 @07:23AM (#19336914)
I quite surprised at the comments on HN so far as nobody seems to see the significance of this. Yes, the image is ambiguous. The point is that Google Cloud Vision gives an unambiguous answer of that image based on the rotation. Transformations of an image are regularly used to improve the results of image recognition. That process fails quit dramatically if in the course of a transformation the answer given is presented with higher confidence than should be.
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by gambler on Friday March 08, 2019 @10:30AM (#19338337)
I'm glad that at least someone here sees the problem, but I am not surprised by the typical reaction of AI apologists in this thread. You always get at least one of the two responses:

"OMG, this is amazing, it's just like humans. We're probably close to AGI."

"Ha-ha, humans are stupid, so the algorithm giving unexpected result is just a proof that it's better and less biased."

Here, we have both in response to the same demo.

Still, I honestly don't know why some people are so biased in favor of neural nets and have zero interest in edge cases and flaws (the most interesting parts if you want to gain deeper understanding of how the algorithm actually operates). Wishful thinking, I guess.

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by hn_throwaway_99 on Friday March 08, 2019 @10:47AM (#19338510)
Can someone explain why this is a problem? I'm not an "AI apologist", but I would consider it a good thing that the model pegs it as a rabbit when it is in more of a "rabbit orientation" and a duck when it is in more of a "duck orientation".
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by gambler on Friday March 08, 2019 @11:35AM (#19339118)
In the real world, you don't want AI to instantly flip from 90% confidence in one direction to 90% confidence in the other direction, because it would cause erratic behavior. What would be preferable is a large zone where it gives both labels .45 score. Then you can apply higher-level reasoning based on the possibility that the object could be either of those two labels (i.e. act on the possibility of the most dangerous or most beneficial scenario of the two).
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by ivanhoe on Friday March 08, 2019 @03:15PM (#19341742)
But it doesn't instantly flip the decision in a way that can oscillate, it recognizes the similarity in specific positions where humans would also recognize it, and doesn't recognize anything in between (again the same as humans would). Isn't that the goal, to mimic how us humans do it? Imagine recognizing numbers 6 and 9, you want AI to recognize it with high certainty depending on what part of the digit is up, you don't want 45% certainty that it might be 9 or 6. Or am I missing something?
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by sangnoir on Friday March 08, 2019 @03:07PM (#19341682)
That doesn't make intuitive sense to me - I don't think humans have such a zone for (all) binary choices. An example that comes to my mind is the rotating Spinning Dancer Illusion[1] - I am 100% confident that she's spinning to the left, or 100% confident she's spinning to the right - there is no middle-ground where my brain tells me "it could be either direction".

Multistable/Bistable perception is not unique to Google Cloud vision - it afflicts humans too.

1. https://en.wikipedia.org/wiki/Spinning_Dancer

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by karakrakow on Friday March 08, 2019 @06:15PM (#19343177)
This. Maybe the AI needs to know somehow that it's the same image it saw a few seconds ago, but now presented at a different angle or the AI itself should look at an image at different angles, just to be sure, that is how humans sometimes look at pictures if they are confused. Something to contextualize every image wrt to what it recently saw and make the current decision a little less overconfident.
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by angry_octet on Friday March 08, 2019 @07:12PM (#19343507)
CV usually does look at images with different rotations, scaling, stretch. The point is that GCV doesn't get stuck on duck when the duck is upside down, it behaves the same way as a human classifier.

I'm looking forward to ReCAPTCHA asking "Click the images of things that are upside down."

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by joshuamorton on Friday March 08, 2019 @05:23PM (#19342792)
You'd think, but the entire reason that softmax is so common in ml is because the artificial certainly is the preferred behavior.
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by armamut on Friday March 08, 2019 @01:21PM (#19340390)
In "real world", you expect AI to behave like human. Isn't that the definition?
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by SlowRobotAhead on Friday March 08, 2019 @11:27AM (#19339002)
In this case, a rabbit and duck are approximately the same size and danger level. So few cases where there is harm possible.

What if it was AI looking at bacteria? Or scanning a roadside for IEDs? Or when a guy on a bike when turned and rotated the correct way appears to be a crosswalk paint mark of a guy on a bike?

If our current AI is making different “DEFINITE” determinations based only on image rotation - there is a problem.

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by mjburgess on Friday March 08, 2019 @03:34PM (#19341897)
Not sure why you're being down-voted, this is exactly the issue.

The image is both a rabbit and a duck regardless of orientation, capturing the object it depicts as a single class with a confidence measure is a mistake.

The magnitude of this mistake becomes apparent when you connect it to real-world decision making, and it becomes highly unsafe.

As is most of ML because it only uses statistical (rather than causal) modelling of the world -- so really, it is only offering us generalised statistical associations. It cannot cope with statistical discontinuities.

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by rjf72 on Friday March 08, 2019 @02:28PM (#19341265)
AI has become exactly like most complex issues with multiple distinct 'sides'. For whatever reason everybody is expected to have an opinion even though, of all people, it's generally safe to say < 1% have the knowledge and experiential basis to form an educated opinion. So the other 99% are mostly just picking sides semi-arbitrarily. And it's this arbitrariness that leads to overly, and inappropriately, simplistic responses to issues. This simplicity in turn also tends to drive responses that are either radically 'for' or radically 'against' something. Understanding drives nuance, and nuance drives uncertainty.

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. - Bertrand Russell

Though in this case, stupid/intelligent are probably overly harsh. Intelligent people are certainly not immune to this 'trap'. In some ways they can be even more susceptible since they may themselves know very little, but that very little is still enough to put them ahead of 80% of the rest which can yield unjustified confidence. So let's just say uninformed/informed.

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by dusted on Wednesday March 13, 2019 @06:38AM (#19377435)
I'm just saying it's as a rabbit in one orientation, and valid as a duck in another orientation.

Many things belong in distinct groups depending on their orientation or other physical attributes.

A bucket is, amongst other things, a bucket when standing flat on the ground with the hole facing upwards.

Turn it around, and it becomes the cover for a mole trap, place it on someones head, it becomes a rain cover. Mount a light bulb inside it and it becomes a lampshade.

It's still a bucket, but it's not _primarily_ a bucket in all cases, and shouldn't necessarily be classified as a bucket in all cases. Rotate the plus symbol 45 degrees and you got the letter x. And it is definitely, 100% certainly an x in one orientation and a + in another orientation.

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by Shorel on Monday March 11, 2019 @12:26PM (#19360210)
Humans reading a text in Latin letters will find that d, b, p, and q are different letters.

In most fonts, the only difference is rotation and/or mirroring.

Yet they represent different sounds, they have different meanings.

Rotation is another data point, not something entirely independent from the data.

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by cubano on Friday March 08, 2019 @10:41AM (#19338445)
Probably, and I do hate being the cynic in the room, it's due to the huge salaries and interesting, specific use-case work that NN-based AI is generating these days.
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by Klathmon on Friday March 08, 2019 @03:15PM (#19341743)
But the human brain fails at this if it's rotated also...

If you showed me the rabbit rotation of the picture, i'd tell you with pretty high confidence that it's a rabbit.

If you showed me the duck rotation, i'd tell you with pretty high confidence that it's a duck.

That's the point of this, it's an illusion.

And it did give a bit of an "I don't know" answer for many of the rotations in the middle of the gif/video, which is exactly as I would expect it to, and when I pause the video at those points and glance at it, it doesn't look like much of anything to me either.

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by 2muchcoffeeman on Friday March 08, 2019 @04:19PM (#19342290)
But a human brain should only falls for it once. You have your initial reaction, realise it might be the other animal and then from there you know it’s an illusion and the rotation of the picture no longer matters.
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by joesb on Sunday March 10, 2019 @11:57PM (#19356554)
What's the correct answer for this? Is it definitely a rabbit regardless of the orientation. Or is it definitely a duck regardless of the orientiation?

I still fail to see how human brain only fall for this illusion once.

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by angry_octet on Friday March 08, 2019 @07:07PM (#19343474)
If they chose to allow a classification option of (c) optical illusion, then the system could easily learn that. In fact, you could probably make a GAN ambiguous image generator.
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by 2muchcoffeeman on Saturday March 09, 2019 @06:18AM (#19345639)
An ambiguous image is not always ambiguous.

Eg clever animal camouflage. A caterpillar that looks like a snake should not be classified as ambiguous. It should always be caterpillar.

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by angry_octet on Saturday March 09, 2019 @10:08AM (#19346464)
Ah, but then you open the door to more complex and meaningful classification. For example "insect camouflaged as a stick" or the classic "couch with leopard print pattern".
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by tziki on Friday March 08, 2019 @07:37AM (#19336985)
Eh, you use rotations if you're specifically looking for rotation invariance. Also, it's hard to tell how confused the network actually is since it's not really predicting 'probability' of a class (even though the term is commonly used). Quite often neural nets just output the most 'probable' class with an oversized probability estimate due to how the most common classification layer works.
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by randyrand on Friday March 08, 2019 @10:37AM (#19338405)
problem? this is a feature imo. it uses the rotation I give it to help deduce ambiguous content, which is helpful.
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by ratel on Friday March 08, 2019 @01:08PM (#19340254)
It is only a feature, because you have the information about which rotation you provide and relate it to the result. If I just try to classify an image the information about which rotation the image is under might be not there at all. Just an example. Say there is a drone: The Elmer-2 that takes an image of a sign. Now depending on which angle this picture is taking from it might think it is duck season instead of rabbit season and never look twice.
Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by SilasX on Friday March 08, 2019 @10:35AM (#19338393)
They have scale-invariant feature transforms (SIFTs[1]). I wonder if they could do rotation-invariant ones that wouldn't have a different answer depending on rotation?

[1] https://en.wikipedia.org/wiki/Scale-invariant_feature_transf...

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by sjburt on Friday March 08, 2019 @10:57AM (#19338655)
SIFTs are rotation invariant. However, they are not good for classification.

Anyway, the early layers of an NN should be performing an encoding that creates scale and rotation invariance though, so that later layers can classify. That's what makes this result interesting. Well that and the ambiguity matches the human ambiguity.

Re:Is It a Duck or a Rabbit? For Google Cloud Vision, Depend... by jefft255 on Friday March 08, 2019 @12:45PM (#19339966)
Lookup spherical CNNs and tensor field networks, both are rotation invariant using spherical harmonics. They are not really used in practice however.