News for hackers. Stuff that matters.
Re:Do Machine Learning Models Memorize or Generalize? by ComputerGuru on Thursday August 10, 2023 @01:06PM (#37078770)
That’s not exactly true, there doesn’t seem to be an upper bound (that we can reach) on storage capacity in the brain [0]. Instead, the brain actually works to actively distill knowledge that doesn’t need to be memorized verbatim into its essential components in order to achieve exactly this “generalized intuition and understanding” to avoid overfitting.

[0]: https://www.scientificamerican.com/article/new-estimate-boos...

Re:Do Machine Learning Models Memorize or Generalize? by downboots on Thursday August 10, 2023 @01:34PM (#37079133)
Can "distill knowledge" be made precise ?
Re:Do Machine Learning Models Memorize or Generalize? by ComputerGuru on Thursday August 10, 2023 @01:53PM (#37079437)
As best as I’ve been able to research, it’s still under active exploration and there are hypotheses but no real answers. I believe research has basically been circling around the recent understanding that in addition to being part of how the brain is wired, it is also an active, deliberate (if unconscious) mechanism that takes place in the background and is run “at a higher priority” during sleep (sort of like an indexing daemon running at low priority during waking hours then getting the bulk of system resources devoted to it during idle).

There are also studies that show “data” in the brain isn’t stored read-only and the process of accessing that memory involves remapping the neurons (which is how fake memories are possible) - so my take is if you access a memory or datum sequentially start to finish each time the brain knows this is to be stored verbatim for as-is retrieval but if you access snapshots of it or actively seek to and replay a certain part while trying to relate that memory to a process or a new task, the brain rewires the neural pathways accusingly. Which implies that there us an unconscious part that takes place globally plus an active, modifying process where how we use a stored memory affects how it is stored and indexed (so data isn’t accessed by simple fields but rather by complex properties or getters, in programming parlance).

I guess the key difference from how machine learning works (and I believe an integral part of AGI, if it is even possible) is that inference is constant, even when you’re only “looking up” data and you don’t know the right answer (i.e. not training stage). The brain recognizes how the new query differs from queries it has been trained on and can modify its own records to take into account the new data. For example, let’s say you’re trying to classify animals into groups and you’ve “been trained” on a dataset that doesn’t include monotremes or marsupials. The first time you come across a platypus in the wild (with its mammaries but no nipples, warm-blooded but lays eggs, and a single duct for waste and reproduction) you wouldn’t just mistakenly classify it as a bird or mammal - you would actively trigger a (delayed/background) reclassification of all your existing inferences to account for this new phenomenon, even though you don’t know what the answer to the platypus classification question is.

Re:Do Machine Learning Models Memorize or Generalize? by clord on Thursday August 10, 2023 @01:56PM (#37079498)
imo, it amounts to revisiting concepts once more general principles are found — and needed. For instance, you learn the alphabet, and it's hard. the order is tricky. the sounds are tricky, etc. but eventually, it get distilled to a pattern. But you still have to start from A to remember what letter 6 is, until you encounter that problem many times, and then the brain creates a 6=F mapping. I think of it in economic terms: when the brain realizes it's cheaper to create a generalization, it does so on the fly, and that generalization takes over the task.

Somtimes it's almost like creating a specialist shard to take over the task. Driving is hard at first, with very high task overload, lots to pay attention to. With practice, it becomes a little automated part of yourself takes care of those tasks while your main general intelligence can do whatever it likes, even as the "driver" deals with seriously difficult tasks.

Re:Do Machine Learning Models Memorize or Generalize? by pyinstallwoes on Thursday August 10, 2023 @07:05PM (#37082854)
It’s almost like a tuning fork. When the mapping becomes 6=F the two separate tuning forms are now sympathetic to a frequency.
Re:Do Machine Learning Models Memorize or Generalize? by esafak on Thursday August 10, 2023 @02:41PM (#37080049)
Re:Do Machine Learning Models Memorize or Generalize? by __loam on Thursday August 10, 2023 @04:11PM (#37081121)
Unless you know something the neuroscientists don't, it cannot.
Re:Do Machine Learning Models Memorize or Generalize? by jjk166 on Thursday August 10, 2023 @02:05PM (#37079619)
Distilling knowledge is data compression.
Re:Do Machine Learning Models Memorize or Generalize? by w10-1 on Thursday August 10, 2023 @03:40PM (#37080760)
You're conflating memorization with generalization, no?
Re:Do Machine Learning Models Memorize or Generalize? by jjk166 on Thursday August 10, 2023 @05:58PM (#37082302)
Memorization is storing data. Generalization is developing the heuristics by which you compress stored data. To distill knowledge is to apply heuristics to lossily-compress a large amount of data to a much smaller amount of data from which you nevertheless can recover enough information to be useful in the future.
Re:Do Machine Learning Models Memorize or Generalize? by staunton on Thursday August 10, 2023 @08:06PM (#37083396)
> Generalization is developing the heuristics by which you compress stored data

such that

> you nevertheless can recover enough information to be useful in the future.

I disagree (in case you meant to imply it) that compression implies generalization.

Re:Do Machine Learning Models Memorize or Generalize? by jjk166 on Friday August 11, 2023 @10:19AM (#37088970)
I did not mean to imply compression implies generalization, if anything the reverse. Compression is the act of cutting, generalization is the whetstone by which you may sharpen a blade, which is the compression heuristic. A more general heuristic is to compression what a sharper blade is to cutting.
Re:Do Machine Learning Models Memorize or Generalize? by nonameiguess on Thursday August 10, 2023 @02:09PM (#37079653)
I've thought about this a lot in the context of the desire people seem to have to try and achieve human immortality or at least indefinite lifespans. If SciAm is correct here and the upper bound is a quadrillion bytes, we may not be able to hit that given the bound on possible human experiences, but someone who lived long enough would eventually hit that. After a hundred million years or whatever the real number is of life, you'd either lose the ability to form new memories or you'd have to overwrite old ones to do so.

Aside from having to eventually experience the death of all stars and light and the decay of most of the universe's baryonic matter and then face an eternity of darkness with nothing to touch, it's yet another reason I don't think immortality (as opposed to just a very long lifespan) is actually desirable.

Re:Do Machine Learning Models Memorize or Generalize? by imtringued on Thursday August 10, 2023 @03:44PM (#37080803)
Longtermists argue that we will be harvesting hawking radiation from blackholes trillions of years after the heat death of the universe.
Re:Do Machine Learning Models Memorize or Generalize? by __loam on Thursday August 10, 2023 @04:12PM (#37081127)
The last civilizations will be built around black holes.
Re:Do Machine Learning Models Memorize or Generalize? by mewpmewp2 on Thursday August 10, 2023 @04:57PM (#37081674)
I imagine there would be perhaps tech or technique which you can choose to determine which memories to compress and countless of others techniques like extra storage that you can instantly access, so I don't see all of these as being real arguments why not become immortal. If I have to choose to be dead and memoryless compared to losing some of my memories, but being still alive, why should I choose being dead and memoryless?

And when losing memories you would first just discard some details, like you lose now anyway, but you would start compressing centuries into rough ideas of what happened, it's just the details that would lack a bit.

I don't see it being a problem at all. And if really something happens with the Universe, sure I can die then, but why would I want to die before?

I want to know what happens, what gets discovered, what happens with humanity, how far do we reach in terms of understanding of what is going on in this place. Why are we here. Imagine dying and not even knowing why you were here.

Re:Do Machine Learning Models Memorize or Generalize? by p1necone on Thursday August 10, 2023 @09:20PM (#37083965)
My naive assumption would be that it would be a fairly gradual process. You'd just always have a sliding window of the last N years of memories, with the older ones being progressively more fuzzy and unreliable.
Re:Do Machine Learning Models Memorize or Generalize? by halflings on Thursday August 10, 2023 @02:25PM (#37079867)
> That’s not exactly true [...] Instead, the brain actually works to actively distill knowledge that doesn’t need to be memorized verbatim into its essential components

...but that's exactly what OP said, no?

I remember attending an ML presentation where the speaker shared a quote I can't find anymore (speaking of memory and generalization :)), which said something like: "To learn is to forget"

If we memorized everything perfectly, we would not learn anything: instead of remembering the concept of a "chair", you would remember thousands of separate instances of things you've seen that have a certain combination of colors and shapes etc

It's the fact that we forget certain details (small differences between all these chairs) that makes us learn what a "chair" is.

Likewise, if you remembered every single word in a book, you would not understand its meaning; understanding its meaning = being able to "summarize" (compress) this long list of words into something more essential: storyline, characters, feelings, etc.

Re:Do Machine Learning Models Memorize or Generalize? by JieJie on Thursday August 10, 2023 @03:50PM (#37080865)
Re:Do Machine Learning Models Memorize or Generalize? by WanderPanda on Thursday August 10, 2023 @05:05PM (#37081788)
Compression = Intelligence

http://prize.hutter1.net/

Re:Do Machine Learning Models Memorize or Generalize? by briansm on Saturday August 12, 2023 @11:49AM (#37101390)
Nope, more specifically:

Lossy compression = Intelligence

That's where the Hutter Prize falls down, it's based on lossless compression, which is nothing like how the brain works.

Re:Do Machine Learning Models Memorize or Generalize? by ComputerGuru on Thursday August 10, 2023 @05:58PM (#37082303)
> but that's exactly what OP said, no?

Not precisely. We don’t know if verbatim capacity is limited (and it doesn’t seem to be) but the brain operates in a space-efficient manner all the same. So there isn’t necessarily a causative relationship between “memory capacity” and “means of storage”.

> Likewise, if you remembered every single word in a book, you would not understand its meaning

I understand your meaning but I want to clarify for the sake of the discussion that unlike with ML, the human brain can both memorize verbatim and understand the meaning because there is no mechanism for memorizing something but not processing it (i.e. purely storage). The first pass(es) are stripped to their essentials but subsequent passes provide the ability to memorize the same input.

Re:Do Machine Learning Models Memorize or Generalize? by whimsicalism on Thursday August 10, 2023 @06:40PM (#37082642)
> verbatim capacity is limited

I am but a simple physicist and I can already tell you it is.

Re:Do Machine Learning Models Memorize or Generalize? by ComputerGuru on Thursday August 10, 2023 @09:48PM (#37084149)
I mean in terms of our ability to reach those limits, naturally.
Re:Do Machine Learning Models Memorize or Generalize? by SanderNL on Thursday August 10, 2023 @06:32PM (#37082580)
We know for certain it is limited. Do brains not adhere to physics?
Re:Do Machine Learning Models Memorize or Generalize? by astrange on Sunday August 13, 2023 @07:33AM (#37108929)
They only live 100 years and the write rate is only so high.
Re:Do Machine Learning Models Memorize or Generalize? by cmpalmer52 on Thursday August 10, 2023 @06:37PM (#37082608)
There’s a story by Jorge Luis Borges called “Funes the Memorious” about a man who remembers everything, but can’t generalize. There’s a line about him not knowing if a dog on the square glimpsed at noon from the side is the same dog as the one seen from the back at 12:01 or something like that. Swirls of smoke from a cigarette are memorized forever. He mostly sits in a dark room.
Re:Do Machine Learning Models Memorize or Generalize? by DevKoala on Thursday August 10, 2023 @08:22PM (#37083518)
Thank you for reminding me of this story. He is my favorite author.
Re:Do Machine Learning Models Memorize or Generalize? by mikewarot on Friday August 11, 2023 @05:50PM (#37094486)
Long ago, I was introduced to the theory of Mappers and Packers[1], which are polar opposites in the ways that people can learn things. Mappers (like me) have a mental model of the universe which represents facts and knowledge as puzzle pieces that have to fit together into a coherent whole. Any inconsistencies in the fit between those pieces drive us nuts. When we encounter a new set of facts, we have a background process that tries to make them fit. Then all the new connections arise over time as we realize new ways we can combine old facts.

On the other extreme, are packers. They have optimized for packing facts in bulk, with little regard for how they fit together. If you give this type of person a set of instructions that require a wider knowledge of how things fit, they will get lost, frustrated, and/or need support. If you anticipate this, and spend a bit extra time to show how to handle all of the possible contingencies, (and give them a document of this) they're good, and will be quite happy with your support.

I think that mappers take more time figuring out the model, compressing the facts to save space, and increase applicability in general.

[1] https://wiki.c2.com/?MappersVsPackers

Re:Do Machine Learning Models Memorize or Generalize? by gattilorenz on Thursday August 10, 2023 @05:04PM (#37081780)
Is there a “realistic upper bound” in things that should be memorized verbatim? Ancient greeks probably memorized the Iliad and other poems (rhyming and metre might work as a substitute for data compression, in this case), and many medieval preachers apparently memorized the whole Bible…
Re:Do Machine Learning Models Memorize or Generalize? by TheRealSteel on Thursday August 10, 2023 @05:51PM (#37082244)
You seem to have just re-stated what the other person said.
Re:Do Machine Learning Models Memorize or Generalize? by whimsicalism on Thursday August 10, 2023 @06:39PM (#37082632)
Thank you, thought I was losing it for a second
Re:Do Machine Learning Models Memorize or Generalize? by firecall on Thursday August 10, 2023 @08:33PM (#37083597)
Does the brain require more energy to store more information?

Or is it always running at the same pace regardless of if it’s empty or not?

I guess the Brian doesn’t really work like that…. But I’m curious :-)

Re:Do Machine Learning Models Memorize or Generalize? by ReactiveJelly on Thursday August 10, 2023 @10:02PM (#37084232)
The brain doesn't seem to ever "clock down" when it's idle, which is interesting to me

https://en.wikipedia.org/wiki/Human_brain#Metabolism

> The energy consumption of the brain does not vary greatly over time

Re:Do Machine Learning Models Memorize or Generalize? by gmadsen on Thursday August 10, 2023 @10:59PM (#37084632)
maybe between sleep and normal waking idle because there is actually quite a bit going on during sleep. There has been quite a bit of research though regarding higher "clock up" states consuming far more energy, such as grandmasters playing a chess tournament
Re:Do Machine Learning Models Memorize or Generalize? by lobocinza on Saturday August 12, 2023 @11:16AM (#37101034)
My lazy research pointed to 6K calories which is a lot more than a typical person can burn by physical exercise.
Re:Do Machine Learning Models Memorize or Generalize? by oneTbrain23 on Friday August 11, 2023 @01:52AM (#37085517)
You obviously hand wave alzheimer and dementia. Human don't know exactly how brains works. The computational storage is just an estimate of what we understand von Neuman computer storing data 1 and 0. In every psychological test conducted on human mind, they clearly have a limit.