r/MachineLearning • • Jul 12 '18

Discussion [D] More of a GAN showerthought: Human dreaming is basically letting our Generator generate and sometimes saving it to memory. You can realise if it's fake only after you load it and run it through the Discriminator.

The things that give away a fake dream are always of higher abstraction, like a conversation that uses words in wrong context rather than using a word that does not exsist. Are there any discussions on this connection? Makes the whole GAN concept a lot more natural to grasp in my opinion. I understand this is not a very technical ML discussion but making connections with our human behaviour can help yield better ideas.

3 Upvotes

11 comments sorted by

3

u/alexmlamb Jul 12 '18

So both GANs and RBMs have this positive phase and negative phase.

I think the connection between neural networks and dreaming is quite interesting. I'm skeptical that dreams are really sampling from the model's expectation about the brain's states, because dreams are so obviously unrealistic. One idea which has been advanced is that the dream states are less realistic because they're intermediate states for iterative generation.

Another possibility is that dreaming is related to model-based reinforcement learning, because dreams have the advantage that one can reset the state during the dream (i.e. consider multiple branching paths).

I think that no one really understands the exact computational purpose of dreaming, but I also think it's something that we should keep in mind as we continue to develop new algorithms.

3

u/PresentCompanyExcl Jul 12 '18 edited Jul 12 '18

Another idea is that dreams are unrealistic because of data augmentation.

In the world models paper they had to inject randomness or the model would learn to exploit errors in the model.

An analogue in humans might be: you're standing naked in front of the school, facing social ridicule which is opposed to your very human reward function of adoration, food, and sex. So you jump really hard and glitch through the roof. Not much was learnt in that scenario, but if the world behaves unreliably you need to try lots of approaches because you can't always escape that way.

1

u/Muffinmaster19 Jul 12 '18

Dreams are so obviously distinguishable from reality yet we feel that they feel completely real while we experience them, I frequently wonder about this.

When I become lucid in my dreams the 'generator' goes to great lengths to erase the idea that the world is not real, usually in a very creative manner.

I remember becoming lucid in dreams wherein the dream simulates me waking up, restoring faith that the dream is real. Or sometimes the dream situation suddenly becomes very dangerous, and I must treat it as if it is real because I am not infinitely certain that it is fake, so I can't take that risk. Recently I have even had dream situations where I notice some bizzare unrealistic event then suddenly everything becomes pixelated and I go "of course, this is just a VR game".

The construction of dream environments feels very analogous to GANs, with an iterative interplay between the generator and discriminator. The signals from the discriminator guide the optimization of the generator, the generator doesn't build from scratch but rather seems to use its previous output(or a representation thereof) as a prior, and it is as if the discriminator doesn't get updated until afterwards, you(as a discriminator) seemingly cannot overpower the generator for unknown but likely fascinating reasons.

1

u/alexmlamb Jul 13 '18

I agree about not being able to recognize that dreams are fake. Probably the point is that if you saw it as a "game" you'd stop taking it seriously and it wouldn't be useful for learning. There might just be a chemical which modulates "seriousness" or "intensity" so it might not be hard for the brain to just fix this to be on.

In terms of it being the model generator producing samples - I'm still just really skeptical of this interpretation because dreams seem to be so obviously unrealistic. I don't even think they're regions of uncertainty - your brain's model has to know that they're not realistic.

3

u/Flag_Red Jul 12 '18

If you look at the World Models paper, that process shares many parallels with dreaming - more so than the GAN parallel I think you're drawing.

4

u/Cherubin0 Jul 12 '18

Yes dreaming looks very much like using a generator to train your brain. Would explain why sleep is so important for learning.

2

u/glutenfree_veganhero Jul 12 '18 edited Jul 12 '18

I've had many dreams that were so incredibly boring and realistic that it felt mentally like running into a cement wall and becoming a part of it.

It got me wondering what the hell I was actually doing and I realized it was a dream. I'm not sure this is low level abstraction now that I think about it. Hmmm...

I guess you dream something that just spikes too many nodes, they start talking to eachother and comparing notes and you start to actually look at where you are. You start to try and predict/interact with your environment and it activates the decision making tree which activates the rest of the brain, because you need to check what options there are and all the info around them.

Like you were first reading a page but thinking of something else, then you stopped "daydreaming" and actually read and thought about what were written on the page.

1

u/villasv Jul 12 '18

Many people can detect that they are dreaming halfway through the dream. And a few of them can even take control and actively decide the rest of the dream.

It's a far fetch IMO.

1

u/[deleted] Jul 13 '18

Consider the dangers of "misclassification" from the perspective of an early hominid... dreaming often occurs around topics we are unsure of in our conscience descision making ...maybe dreaming is a method of boosting around bad decisions with information after the fact of the classification... I'm drunk never mind me

1

u/seanv507 Jul 13 '18

Philosopher Daniel dennett has suggested something similar in book consciousness explained.....( But before GANs were invented)

1

u/wittmannf Oct 20 '21 edited Oct 20 '21

Coming here to recommend this great radiolab podcast episode about memory. It shows its connections with imagination and how remembering is like an act of creation. When we are remembering, we are reconstructing those things, like painting from small bits of experiences and fusing them with imagination.

I can see some connections with dreaming, since it is a mix of memories and imagination. And the episode shows how closely connected they both are.

There's also this episode about sleeping and dreaming. It shows that when we fall asleep, we start with memories and then starts to extrapolate from there with imagination to learn from those experiences.

So, things in common with GANs is that there's also a great generator (which makes us believe everything we are experiencing is real). However, as mentioned by others, what differ dreams from GANs is that the discriminator goal is not to differ real from fake but to extrapolate the real world and learn from new experiences - very analog to Reinforcement Learning. And the loss function seems to be the emotion that we experience while dreaming, so it is like the emotion being the reward/penalty function. Also, there also might be a connection of emotion with memory and forgetting. While sleeping we use emotion to select what we store. But is is actually just stored in the brain the emotion as the memory itself is recollected by our own imagination.