News for hackers. Stuff that matters.
Re:Mistral NeMo by jorgesborges on Thursday July 18, 2024 @11:29AM (#40996505)
I’m AI stupid. Does anyone know if training on multiple languages provides “cross-over” — so training done in German can be utilized when answering a prompt in English? I once went through various Wikipedia articles in a couple languages and the differences were interesting. For some reason I thought they’d be almost verbatim (forgetting that’s not how Wikipedia works!) and while I can’t remember exactly I felt they were sometimes starkly different in tone and content.
Re:Mistral NeMo by miki123211 on Thursday July 18, 2024 @11:38AM (#40996655)
Generally yes, with caveats.

There was some research showing that training a model on facts like "the mother of John Smith is Alice" but in German allowed it to answer questions like "who's the mother of John Smith", but not questions like "what's the name of Alice's child", regardless of language. Not sure if this holds at larger model sizes though, it's the sort of problem that's usually fixable by throwing more parameters at it.

Language models definitely do generalize to some extend and they're not "stochastic parrots" as previously thought, but there are some weird ways in which we expect them to generalize but they don't.

Re:Mistral NeMo by planb on Thursday July 18, 2024 @12:06PM (#40997026)
> Language models definitely do generalize to some extend and they're not "stochastic parrots" as previously thought, but there are some weird ways in which we expect them to generalize but they don't.

Do you have any good sources that explain this? I was always thinking LLMs are indeed stochastic parrots, but language (that is the unified corpus of all languages in the training data) already inherently contains the „generalization“. So the intelligence is encoded in the language humans speak.

Re:Mistral NeMo by michaelt on Thursday July 18, 2024 @12:50PM (#40997458)
I don't have explanations but I can point you to one of the papers: https://arxiv.org/pdf/2309.12288 which calls it "the reversal curse" and does a bunch of experiments showing models that are successful at questions like "Who is Tom Cruise’s mother?" (Mary Lee Pfeiffer) will not be equally successful at answering "Who is Mary Lee Pfeiffer’s son?"
Re:Mistral NeMo by spookie on Thursday July 18, 2024 @02:54PM (#40998623)
Isn't that specific case just a matter of not having enough data _explicitly_ stating the reverse? Seems as if they are indeed stochastic parrots from that perspective.
Re:Mistral NeMo by layer8 on Thursday July 18, 2024 @05:31PM (#40999964)
Yes, and your conclusion is correct.
Re:Mistral NeMo by mlyle on Friday July 19, 2024 @12:07PM (#41007904)
You know, I'm not sure that humans are so good at that kind of reverse task. Information can be very easy to access from one direction but very hard to reach from others. We're not databases.
Re:Mistral NeMo by moffkalast on Thursday July 18, 2024 @01:49PM (#40998091)
> language already inherently contains the „generalization“

The mental gymnastics required to handwave language model capabilities are getting funnier and funnier every day.

Re:Mistral NeMo by PoignardAzur on Friday July 19, 2024 @07:32AM (#41005166)
> Do you have any good sources that explain this?

The most famous result is OthelloGPT, where they trained a transformer to complete lists of Othello moves, and the transformer generated an internal model of where the pieces were after each move.

The rough consensus is that if you train a model to predict the output of a system for long enough with weight decay and some nebulous conditions are met (see "lottery ticket hypothesis"), eventually your model develops an internal simulation of how the system works because that simulation uses fewer weights than "memorize millions of patterns found in the system", and weight decay "incentivizes" lower-weight solutions.

Re:Mistral NeMo by dannyw on Thursday July 18, 2024 @11:46AM (#40996786)
Anecdata, but I did some continued pretraining on a toy LLM using machine-translated data; of the original dataset.

Performance improved across all benchmarks; in English (the original language).

Re:Mistral NeMo by benmanns on Thursday July 18, 2024 @12:01PM (#40996977)
Am I understanding correctly? You look an English dataset, trained an LLM, machine translated the English dataset to e.g. Spanish, continued training the model, and performance for queries in English improved? That’s really interesting.
Re:Mistral NeMo by bionhoward on Thursday July 18, 2024 @11:46AM (#40996796)
There is evidence code training helps with reasoning so if you count code as another language then, this makes sense

https://openreview.net/forum?id=KIPJKST4gw

Is symbolic language a fuzzy sort of code? Absolutely, because it conveys logic and information. TLDR: yes!

Re:Mistral NeMo by bernaferrari on Thursday July 18, 2024 @11:32AM (#40996562)
no, it is basically an 'auto-correct' spell checker from the phone. It only knows what it was trained on. But it has been shown that a coding LLM that has never seen a programming language or a library can "learn" a new one faster than, say, a generic LLM.
Re:Mistral NeMo by StevenWaterman on Thursday July 18, 2024 @11:43AM (#40996746)
That's not true, LLMs can answer questions in one language even if they were only trained on that data in another language.

IE you train an LLM on both English and French in general, but only teach it a specific fact in French, it can give you that fact in English

Re:Mistral NeMo by hdhshdhshdjd on Thursday July 18, 2024 @02:37PM (#40998475)
You, you can write a prompt in English, give it French, and get an accurate answer in English even with the original Mistral.

Still blows my mind we came so far so fast.