r/MachineLearning • • Apr 18 '21

Research [R] Putting visual recognition in context - Link to free zoom lecture by the authors in comments

Post image
611 Upvotes

53 comments sorted by

34

u/pinter69 Apr 18 '21

Hi all,

We do free zoom lectures for the reddit community.

This talk will cover visual recognition networks and the role of contextual information

Link to event (May 24):

https://www.reddit.com/r/2D3DAI/comments/mr9nlj/putting_visual_recognition_in_context/

Talk is based on the speakers' papers:

Talk abstract:

Recent studies have shown that visual recognition networks can be fooled by placing objects in inconsistent contexts (e.g., a pig floating in the sky). This lecture covers two representative works modeling the role of contextual information in visual recognition. We systematically investigated critical properties of where, when, and how context modulates recognition.

In the first work, we focused on the study of the amount of context, context and object resolution, geometrical structure of context, context congruence, and temporal dynamics of contextual modulation on real-world images.

In the second work, we explored more challenging properties of contextual modulation including gravity, object co-occurrences and relative sizes in synthetic environments.

In both works, we conducted a series of experiments to gain insights into the impact of contextual cues on both human and machine vision:

  • Psycho-physics experiments to establish a human benchmark for out-of-context recognition and then compare it with state-of-the-art computer vision models to quantify the gap between the two.

  • We proposed new context-aware recognition models. The models captured useful information for contextual reasoning, enabling human-level performance and significantly better robustness in out-of-context conditions compared to baseline models across both synthetic and other existing out-of-context natural image datasets.

Presenters BIO:

  • Philipp Bomatter is a master student for Computational Science and Engineering at ETH Zurich.
    He is interested in artificial intelligence and neuroscience and currently works on a project concerning contextual reasoning in vision at the Kreiman Lab at Harvard University.

  • Mengmi Zhang completed her PhD in the Graduate School for Integrative Sciences and Engineering, NUS in 2019. She is now a postdoc in KreimanLab in Children's Hospital, Harvard Medical School.
    Her research interests include computer vision, machine learning, and cognitive neuroscience. In particular, she studies high-level cognitive functions in humans including attention, memory, learning and reasoning from psychophysics experiments, machine learning approaches and neuroscience.

(Talk will be recorded and uploaded to youtube, you can see all past lectures and recordings in /r/2D3DAI)

53

u/[deleted] Apr 18 '21 edited Apr 19 '21

Hot take: if a pig is always on the ground then maybe that bias isn't a bad one, you could define a pig by the way it looks, but if you define it by its behavior, then a pig in the sky would no longer be a pig, like good luck rolling in mud up there.

It feels like we're trying to force algorithms to think like humans instead of trying to find ways to unlock the potential in the way they apparently already think. Of course having algorithms behave like humans makes them more applicable, but if an ensemble of 10.000 big transformers says that background is essential to pigness, then maybe we should rethink not just our algorithms but also our own biases.

Edit: to clarify, I'm not at all saying that not incorporating these biases would improve performance, quite the contrary. It was mostly meant as a general opposition to the idea that a model performing like a human is a model performing correct, a statement that in the world of human annotated data obviously makes no sense at all. Hence, it is mostly my take on the design of models that learn their own representation of the world, as many fellow enthusiasts have pointed out below!

36

u/Wacov Apr 18 '21

It's just an extreme example of a fairly big problem. A pig crossing a road, or a pig in a hotel lobby, or upside-down on your couch or lit by a sunset or by blue police lights - that's still a pig.

2

u/[deleted] Apr 19 '21

When you define a system as the sum of its objects, yes. An alternative way to represent a system is its dynamics. So let's say our pig is eating a set amount of grass, and we replace our pig with a small cow that eats the exact same amount of grass. We would say that the pig was replaced by a cow, the proposed system would say nothing changed. There is no way for us to determine which system is superior, except maybe on a problem by problem basis.

My point being that if a network learns its own system, a pig might no longer be a pig. So firstly we're asking it to discover things that aren't clearly present in the dataset and secondly we're assuming that our way of perceiving things is the right way, where right is defined as the ability to solve a given problem.

So in conclusion it feels to me like forcing human biases into systems is a great hack for applications, not a direction for research.

4

u/Cybernetic_Symbiotes Apr 19 '21 edited Apr 19 '21

What works best is what captures invariant properties in a manner robust across environments. Evolution has found schemes which work close to optimally for medium scaled objects navigating the world (with atomic as small and large as interstellar scales). A scheme found nearly an eon ago can't be human bias.

Besides, it is extremely useful when operations on basis functions allow arbitrarily decomposing into constituents and recombining for whatever portioning scheme most suits a current need. Humans are decent at that too.

I don't think it's necessary to read too much into this failure other than a lack of both breadth and granularity in training tasks that's been difficult to overcome.

1

u/[deleted] May 07 '21

Well this has been interesting, Facebook recently came out with a paper that looked at the attention maps of vision transformers in an unsupervised way, and they basically all look at a scene in a way comparative to the way humans look at them, as loose objects.

11

u/AiasTheGreat Apr 18 '21

I halfway agree. If this is what you think than the algorithms are literally speaking a different language. The confusion arises precisely because they don't think the same way as humans. When I say pig I mean something different than what the model means when it says pig. They are both valid interpretations of the data given nobody has made a mistake, but if we want to guarantee communication then we need to make the model think more like humans. (Which would be easier than adjusting the biases of all of humanity; some of which are hard wired into the brain.)

20

u/BB_Bandito Apr 18 '21

4

u/StackOfCookies Apr 19 '21

Off-topic but did they really just describe Musk as “shy and reclusive” in the first sentence of that article. He’s one of the biggest loud-mouthes out there.

3

u/BB_Bandito Apr 19 '21

I'm quite sure that was sarcasm.

2

u/StackOfCookies Apr 19 '21

Yeah good point, I guess sarcasm doesn't work on my brain when I just woke up

4

u/[deleted] Apr 19 '21

Obviously what is wrong is not a supposed human "bias", but the way algorithms are designed and trained. What humans have is not a "bias", but a priori which is adequate to deal with how the real world actually works, since the real world is built from objects, not arbitrary functions from some function space. Of course a priori is necessary (either explicit or implicit in the architecture), because of the no free lunch theorem. The priori humans have say that objects are defined by their interior characteristics and not their surroundings characteristics. This is simple enough to design, and deals with the problem mentioned in the talk, leading to harder training but better robustness and generalization.

1

u/[deleted] Apr 19 '21

Very true, I guess what I'd like to see is what sort of priori a computer would come up with. There was this paper a while ago, which subtracted the test loss from the train loss on MNIST, effectively saying: "get as high as you can on the training dataset and as low as you can on the test dataset", and they got comparable accuracy on the train dataset as without that loss term and absolutely terrible test accuracy. This, although in a rather shaky way, presents an interesting argument of the properties of the loss landscape.

I wanna see what priori develop if you set a neural network in an approximately real world environment. And just let this loss landscape run its course.

2

u/[deleted] Apr 19 '21

To develop a “priori” (although, if it is developed in the training, it is not actually a priori) that captures objectness, the algorithm would probably have to be trained on interactive 3d environments. The thing is that they are being trained on 2d images, so that they don’t have all the information about what that means (they have no way of figuring out that those pictures are projections from a higher 3d space, or that a thing present there can be moved independently) so their guess that the environment defines the objects is completely justified. That’s why you have to give then an actual prior (that is, something that is built into the architecture). In this case, object segmentation should be followed by the background being erased and only then classification. Object segmentation should itself be robust enough to be background independent, but this is more expected.

1

u/[deleted] Apr 19 '21

Well during training in my eyes is the only option, human priori aren't magical either, they're the result of evolution. AI just has the benefit that it gets to learn all this.

2

u/[deleted] Apr 19 '21

Evolution inside 3d interactive environments. To correctly interpret 2d images, the algorithms need appropriate priors. That’s why you use convolutions, because without it the algorithm has no way of knowing that objects in different positions in the image should be the same.

2

u/soggez Apr 18 '21

It may be good thing when the inference environment is really different from trading dataset one

2

u/[deleted] Apr 19 '21

I fear I've been unclear about my goals in the post, I hope after the edit it makes a bit more sense

3

u/Veneck Apr 18 '21

You took the seed of thought I had and took it half way to greatness.

3

u/[deleted] Apr 19 '21

[removed] — view removed comment

4

u/Elodil Apr 19 '21

Consider that even the notion of an 'object' is a human bias. The objective universe is only atoms and the void.

2

u/Cybernetic_Symbiotes Apr 19 '21

Calling it a human bias does not seem right either, as this has been a property of visual systems in animals for at least hundred of millions of years. It's plainly a useful way of working with long ranged spatiotemporal correlations.

Also, there is no escaping the picture frame, the very notion of 'void and atoms' or more properly, fluctuations in quantum fields, is much more human biased conceptualization than 'object' is.

1

u/red75prim Apr 20 '21

The objective universe is only atoms and the void.

The objective universe is probably a gigantic quantum density matrix. But you don't need such representation to throw a stone.

1

u/[deleted] Apr 19 '21 edited Apr 19 '21

Forcing NNs to thing in shape outlines rather than texture or background would definitely be a hack that improves generalization. However, from an AGI perspective, you don't want to have these things forcibly built in if you can help it, or at least that's how I'm looking at it.

Although if you create an architecture that could learn that importance, where "focus on shape outlines rather than textures" is learnt rather than enforced (similar to how transformers compare to regular FF NNs), then I'd 100% agree that it's a step forward

2

u/[deleted] Apr 19 '21

[removed] — view removed comment

2

u/[deleted] Apr 19 '21

Mixture of experts indeed!

Regarding the built in parts in human intelligence, you're absolutely right, of course any system is eventually gonna have things built in because there are gonna be biases present in the dataset. I meant in the way of starting with infinite possibilities and filtering out the useful ones, or in the way of an NN analogy, a transformer can perfectly mimic a CV NN, but the other way around is to my knowledge impossible. To me starting with a higher degree of possibilities seems beneficial.

Now of course this is all just speculation, so take it with half a mountain of salt.

-5

u/aegemius Professor Apr 18 '21 edited Apr 18 '21

Thank you for providing free content. However, Zoom does not respect users--their freedom or their privacy--which I would think would be at odds with your motives here. I ask that you consider using a free and open source alternative.

9

u/cloudone ML Engineer Apr 18 '21

Is there even an open source video conference tool that works?

6

u/MuffinBomber Apr 18 '21

Jitsi is used by the FSF, don't know how good it is though.

2

u/CactusOnFire Apr 18 '21

Jitsi is fantastic

3

u/GeronimoHero Apr 18 '21

Nothing that’s really what I’d call good. Almost anything is better than zoom though when it comes to user privacy.

0

u/grid_world Apr 18 '21

RemindMe! April 24, 2021

1

u/RemindMeBot Apr 18 '21 edited Apr 18 '21

I will be messaging you in 5 days on 2021-04-24 00:00:00 UTC to remind you of this link

1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

31

u/[deleted] Apr 18 '21

Hahahah Guillotine at 74.4%.

9

u/c3534l Apr 19 '21

Its interesting because while it seems completely wrong, if you look up pictures of guillotines there is something distinctly furniture-like about them.

1

u/[deleted] Apr 19 '21

Yea they do kind of have a chair structure too, as one plane of the guillotine would be higher than the other to accommodate the blade drop.

8

u/keepthepace Apr 19 '21 edited Apr 19 '21

Both ground truths are false. Backpacks are bigger than a steak or a broccoli. Whatever that object is supposed to be, that's something small sitting in a plate.

Chairs are smaller than cars, this is not a chair. Street signs, pole are closer categories.

The fact that we need so artificial samples to fool modern algorithms is a testament on how far we have come in computer vision.

9

u/interesting-_o_- Apr 19 '21

Small backpacks are still backpacks.

Giant chairs are still chairs.

The fact that these algorithms depend so heavily on scale context to identify clear objects is alarming and worthy of investigation.

2

u/keepthepace Apr 20 '21 edited Apr 20 '21

Backpacks are bags you can put on your back. Chairs are things you can sit on. What you have on the first one is a out-of-scale, out-of-context shopped picture and in the second case it is a sign, a sculpture, an advertisement.

These two objects are shaped like backpacks and chairs, but the scale indicates they are not.

And actually, especially with the chair one, the results you see from the models indicate that they understand what it is but can't really express it (not exactly a street sign, not exactly a pipe or a gas station, but something that shares some properties with them).

I think the implicit prior behind most models is that we want to use them for robotics at one point and want to identify objects based on their functions, not on their artistic intent.

2

u/Dagrix Apr 21 '21

The chair example seems especially artificial to me. I think you could argue systems should be able to recognize out-of-context photoshopped but otherwise actual objects like the backpack, like we're able to do.

For all intents and purposes that thing is literally not a chair. I can see it looks like a giant chair, but I would be hard-pressed to describe it exactly. Honestly I'd go as far as to say the ground truth is wrong, it's more an advertising sign/prop than a chair.

0

u/red75prim Apr 20 '21

One hot encoding is just not expressive enough to describe such pictures. It's a small backpack and a gigantic chair. No need to invent new classes for them to make the shortcomings look better than they are.

2

u/Ambiwlans Apr 18 '21

How useful would this skill be... and what's the point of testing algos that haven't been trained to do this task?

17

u/Gordath Apr 18 '21

I'd consider this to be more of a warning. If you use the current DL methods in the real world then they will fail completely in some scenarios.

2

u/HINDBRAIN Apr 19 '21

Do we really care if the algo can't recognize a tiny backpack photoshopped on top of mashed potatoes?

If "by some scenarios" you mean "different angle, at night, sky background, occluded by another object...", then yes, these are problems, but people are already aware of that!

2

u/Ambiwlans Apr 19 '21

I mean, this isn't the real world if you have a 3inch across backpack hovering over a plate of food.

2

u/noweightleftbehind Apr 19 '21

I think it depends. The kind of common sense reasoning we do with visual concepts would suggest that we can still parse out the fact that there is a 3 inch backpack across a plate of food. It's a strange scene but doesn't make us wrongly classify/ignore objects with a high degree of confidence.

Maybe this is something related more to the narrow focus of a classification task rather than the architecture itself.

1

u/Ambiwlans Apr 19 '21

But successfully classifying under these circumstances is only useful in..... describing surrealist art? Like, it doesn't seem to useful.

2

u/noweightleftbehind Apr 19 '21

I'd say a lot of edge cases in safety-critical scenarios involving perception might involve what can be described as "surrealist art" where contextual clues and common sense might make the difference. There was that fatal incident with a Tesla where the autopilot couldn't distinguish the white side of the tractor-trailer from the brightly lit sky. I guess in this scenario the backpack is the tractor-trailer and the sky is the mashed potatoes, if that makes sense.

1

u/Ambiwlans Apr 19 '21

The concern is if you make an algo that is good at spotting clowns in a bucket but worse at spotting tractors on a road.

1

u/noweightleftbehind Apr 19 '21

Yeah I see where you're coming from. The hope would be to make it good at all of the above.

0

u/helpturkey Apr 19 '21

!remindme may 23