8 ms·
Multimodal Neurons in Artificial Neural Networks
- gallerdude 6y agoI’ve always thought it’s wild how we can apply one concept to so many different types of things. For example, if I say something is “soft,” you probably think of the opposite of firmness. But at the same time, I can describe a person as “soft,” and the same descriptor can say something meaningful about their character. Seeing the Spider-Man neuron work on multiple types (pictures, drawings, text), makes it seem like we can teach AI to learn these same type connections. And if we scale up the network size enough, what if we could see these types through the equivalent of a being with 1000IQ? What connection types are the most effective for a being like that? Can we even understand them? Maybe they would be deep, and archetypical in the way that Odysseus and Harry Potter are the same, despite the fact that one is an ancient Greek king, and the other is a modern British wizard. Even more interestingly, maybe the connections would be completely inexplicable to us, with no apparent rhyme or reason perceptible to humans.
- colah3 6y agoI'm really excited about the dream that we'll be able to learn from neural networks. Shan Cater and Michael Nielsen wrote a really inspiring article on this (https://distill.pub/2017/aia/ https://distill.pub/2017/aia/). I also wrote something about this a while back (http://colah.github.io/posts/2015-01-Visualizing-Representations/ http://colah.github.io/posts/2015-01-Visualizing-Representat...). One of the amazing things about this project exploring CLIP was seeing some hints of this. For example, one day I was studying one of the Africa neurons and it generated the text "IMBEWU" -- it turns out this is a popular TV show in South Africa (https://en.wikipedia.org/wiki/Imbewu:_The_Seed https://en.wikipedia.org/wiki/Imbewu:_The_Seed). That's a trivial example, but it begins to hint at something interesting. I'd really love to see what a domain expert analyzing CLIP would make of things. For example, I'd love to hear what ethnographers think of the region neurons, or what historians think of the time period neurons. Especially for future, larger models.
- visarga 6y ago> What connection types are the most effective for a being like that? That would be analogous to: What kind of tokens when put together make state of the art algorithms? - they are just tokens, even if it's the best implementation. Intelligence is in the game, including the agent, the environment and goals. It's not in some kind of special neuron connections, it's in the way the brain is connected to opportunities and dangers outside.
- biasdose 6y agoI'm impressed with OpenAI confronting this head on. "Our model, despite being trained on a curated subset of the internet, still inherits its many unchecked biases and associations." If these models find themselves into production environment - if they are good enough and profitable enough - they will eventually become legacy systems quietly perpetuating the biases of past times.
- practice9 6y agoI wouldn't say it's only past times. You would be surprised how many people still hold those opinions (not only white supremacist types). Internet just brings out the things the people sometimes think about, but do not express in their everyday lives (unless they're under some kind of pressure or stressed). So these models for now can be treated as a very reductive snapshot of humanity (at least English-speaking segment), warts and all
- fpgaminer 6y agoWhat's interesting about this to me is that ultimately we _want_ our AIs to learn bias. The whole point of a predictive AI is to model the behavior of the thing its predicting. So for AIs trained against humans, which CLIP is, it by necessity must learn our prejudices. If it didn't, it wouldn't be good at predicting how we describe images. The model learning bias isn't the issue. You could ask me what I think the racist members of my family might write about a given image. I'd then be able to emulate them inside my head and accurately predict their responses. We all do that. It's how we have moments like "I knew you were going to say that."; "That's typical of you to say."; "Why am I not surprised?"; etc. The fact that I, and everyone else, can do that does not imply that we are biased. It's how we behave that determines if we are biased. We want our AIs to do the same. The real ethics question here is not how to we prevent AIs from learning bias. It's how do we get AIs to not _express_ those biases. We need a way to put them into "impartial" mode, much like we take biased and fallible humans and make them judges in courtrooms. Personally I don't think that's going to be as hard as some imagine. Again, remember that these AIs are learning to emulate humans, _including_ judges. Give GPT-* a bunch of court documents and transcripts and it will learn the capacity to emulate a judge. Then you just need to carefully craft its prompt text so that for any given query, you can be reasonably sure it's acting impartially.
- kowlo 6y agoThe typographic attacks are great fun. Labelling an apple as a toaster is all it takes!
- HPsquared 6y agoIt needs a 'shenanigans' neuron.
- astrange 6y agoSome of the answers aren't that wrong, it's trying to answer a silly question. The authors are asking what the image "is" but an image isn't one thing. They're also covering up the most identifying parts of the original object - like with the coffee cup, they're covering the handle with the label.
- iujjkfjdkkdkf 6y agoCan someone give more technical detail on what they are showing with the "neurons"? They say "Each neuron is represented by a feature visualization with a human-chosen concept labels to help quickly provide a sense of each neuron", and these neurons are selected from the final layer. I don't think I understand this.
- the8472 6y agoStart with random input, then incrementally optimize the input to maximize the activation of one of the nodes in the graph, the neuron. The visualization is one of those inputs that hit a maximum.
- colah3 6y agoFeature visualizations are described in this article: https://distill.pub/2017/feature-visualization/ https://distill.pub/2017/feature-visualization/ The ones you see in this work are mostly a variant of the standard feature visualization, which tries to show different "facets" in neurons that respond to multiple things. The details are explained in the appendix of the paper (https://distill.pub/2021/multimodal-neurons/ https://distill.pub/2021/multimodal-neurons/ ).
- nl 6y agoWorth noting that Chris Olah (who wrote this comment) has led much of the interesting work in making feature visualisations useful. If you look for "Visualizing Neural Networks" on his page https://colah.github.io/ https://colah.github.io/ you'll find lots of other interesting links in this area.
- iujjkfjdkkdkf 6y agoThank you! Has there been any study of variability in these activation images - like are there many disconnected local maxima depending on the initialization, or how they vary with retraining the network (or e.g. with dropout, etc), or varying the model parameters in some direction that keeps the loss in a local minimum. I could picture that maybe they always look the same, but sometimes there would be cases where they have different modes that accomplish the same thing.
- endisneigh 6y agoI'm not sure what you would call it, but is there any research into the dilemma that exists when an artificial intelligence surpasses its creator? How exactly would we evaluate its decisions? I'm not suggesting this example is the case, but with AlphaZero, for example many of the moves are beyond an average players comprehension. What happens when it's beyond the greatest of us? Exciting times are ahead!
- nl 6y agoYes there is research in this area. It's controversial because most practising researches in the field of building AI don't believe it is a concern on any close timescales. https://theconversation.com/singularity-how-governments-can-halt-the-rise-of-unfriendly-unstoppable-super-ai-121999 https://theconversation.com/singularity-how-governments-can-... provides some starting points.
- endisneigh 6y ago> It's controversial because most practising researches in the field of building AI don't believe it is a concern on any close timescales. I'd agree with that, but I wouldn't be surprised if some narrow domains are completely surpassed.
- nl 6y agoOh absolutely. It's increasingly hard to find benchmarks where humans aren't beaten (outside Francois Chollet's work).
- Veedrac 6y agoNote that a very significant fraction do believe human level machine intelligence is likely within about 50 years, and a good few on closer timescales, though the precise numbers are endlessly debatable. Two major AI corporations, DeepMind and OpenAI, are explicitly aiming to create AGI. https://arxiv.org/abs/1705.08807 https://arxiv.org/abs/1705.08807, https://www.youtube.com/watch?v=HOJ1NVtlnyQ https://www.youtube.com/watch?v=HOJ1NVtlnyQ
- nl 6y agoThe misclassification of a poodle as a piggy bank by putting "$$$" in text on it is amazing to see work: The finance neuron [1330], for example, responds to images of piggy banks, but also responds to the string “$$$”. By forcing the finance neuron to fire, we can fool our model into classifying a dog as a piggy bank.
- colah3 6y agoDirect link to paper: https://distill.pub/2021/multimodal-neurons/ https://distill.pub/2021/multimodal-neurons/
- jtsiskin 6y agoIt’s very cool that this interactive HTML is the actual published and peer reviewed ‘paper’. I didn’t know such journals existed
- d110af5ccf 6y agoI don't know, I have pretty mixed feelings about the whole thing. In theory, it appears that the articles are supposed to be self contained Git repositories. In practice, this article loads a bunch of assets from Google's Cloud Storage. Blocking them appears to partially break various bits in subtle ways - figure 6 is particularly bad. It also fails to render correctly without a couple third party scripts hosted by Cloudflare. It's hardly an ideal state of affairs. Articles that aren't self contained make it frustratingly difficult to view offline copies. They also raise the possibility of the publication changing over time as anything hosted by a third party is outside the control of the journal. This lack of an immutable version is highly concerning because it means that no single canonical form exists for incorporation into the scholarly record. (Note that even redacted, entirely fraudulent papers have traditionally remained available from the original publisher with appropriate warning labels attached.) Reflowable text and interactive figures are very welcome additions, but the concept of a mutable scientific literature is absolutely horrifying.
- jtsiskin 6y agoOh wow, did not realize it was loading from external sources. Totally agree it should be completely self contained and versioned
- skybrian 6y agoFigure 1 has an intriguing caption: "You can click on any neuron to open it up in OpenAI Microscope to see feature visualizations, dataset examples that maximally activate the neuron, and more." I have been unable to get this to work. Does it work for anyone else? (Each neuron has a dropdown menu, but it sounds like there's more to it.)
- sendtown_expwy 6y agoThe model was trained to match an image with its caption. So its unsurprising to find a neuron that fires across spider man the character and a spider: those are both instances of valid captions. Same with the "iPod" example. Seems a stretch to suggest equivalence to biological neurons (unless you think those are also trained by text supervision. Which is an open hypothesis I suppose.)
- ravi-delia 6y agoThe basic idea of having concept aggregation to match incoming and outgoing information in various modes is applicable to both.
- Imnimo 6y agoI think the surprising thing is that it's the same exact neuron that does the different modes, not that the network has the ability to detect a photo of spiderman and a picture with the text "spiderman". You might instead imagine that the network would have some neurons specialized to reading text, and others specialized to recognizing faces, and those would be like two separate paths through the network.
- chromanoid 6y agoI think the OP meant that the network writes spider-man in both cases. So the multi-modal "Spider-man" neuron is more a "write spider-man" neuron. It is impossible to tell (at the moment) if its forming and purpose is really comparable to how biological multi-modal "think about spider-man" neurons evolve and work. IMO it is not very probable.
- Imnimo 6y agoWell, that's not really what's going on here. CLIP has two components - a text encoder that encoders candidate captions, and an image encoder. There's no part that does "writing" - it just makes an encoding for the image, and then sees which candidate text encoding is the most similar. Further, what's being looked at here, as I understand it, is JUST the image encoder part. The neuron in question isn't seeing or generating caption text, it's just a step along the way in trying to come up with a representation of the image. So it's surprising that that same neuron is strongly activated both by the word "spiderman" appearing in an image, and an actual picture of spiderman.
- gillesjacobs 6y ago> A CLIP model consists of two sides, a ResNet vision model and a Transformer language model, trained to align pairs of images and text from the internet using a contrastive loss. It isn't surprising that a model trained for alligning photos and corresponding text labels has neurons that have learned higher semantic concepts as that is exactly the goal of generalisation.
- skybrian 6y agoPresumably that’s why they tried it? They’re reporting on how well it worked, and in particular how it seems to be encoded.
- deleted 6y ago[deleted]
- natch 6y agoThey did use the Halle Berry neuron as one of their examples so although I haven’t checked I think it’s a safe bet that they referenced that work.
- nicholastsmith 6y agoI thought neuroscience had largely moved away from the idea of "grandmother neurons" in favor of sparsity [1]. This seems to suggest that the model is functioning differently than the human brain... [1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6822296/ https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6822296/
- Voloskaya 6y agoFound the "Operating Systems" neurons that reacts to Windows, Linux and Penguins [1], as well as what seems to be the "overweight" neuron [2] [1] https://microscope-azure-edge.openai.com/models/contrastive_4x/image_block_4_5_Add_6_0/415 https://microscope-azure-edge.openai.com/models/contrastive_... [2] https://microscope-azure-edge.openai.com/models/contrastive_4x/image_block_4_5_Add_6_0/22 https://microscope-azure-edge.openai.com/models/contrastive_...
- h4kor 6y agoDid you just call me "4/5/Add/6 Unit 22"?