Live data from Hacker News

Orca 2: Teaching Small Language Models How to Reason

arxiv.org

11–20 of 82 posts

Re: Orca 2: Teaching Small Language Models How to Reason

#11
post #3

It fails other benchmarks vs Mistral-7b. https://twitter.com/Teknium1/status/1726846755344634020 (There is some doubts about the validity of the comparaison in the comments)

Also, worth mentioning the next tweet:

  Update, I benchmarked 13b Orca 2, its still not surpassing gpt4all score of

  Base Mistral or OpenHermes 2.5 7B:

  Hermes 2.5 7B Mistral score: 73.12%

  Mistral Base 7B score: 71.16%

  Orca 13B GPT4All score: 70.58%
https://twitter.com/Teknium1/status/1726833004117635414

Re: Orca 2: Teaching Small Language Models How to Reason

#12

Are we beginning to see "specialized SLMs"? We've already seen some pretend-agent based solutions (where the same model is given several different roles and made to act as eg. ceo / architect / dev / sales in a startup). I wonder if the way forward is to train smaller models with different sets of "skills" or "neural affinities". One for reasoning, one for summarization, one for math, one for code, etc - then combini…

Isn't this the whole idea with Mixture Of Experts approach that is GPT-4 is using?

Re: Orca 2: Teaching Small Language Models How to Reason

#13

Are we beginning to see "specialized SLMs"? We've already seen some pretend-agent based solutions (where the same model is given several different roles and made to act as eg. ceo / architect / dev / sales in a startup). I wonder if the way forward is to train smaller models with different sets of "skills" or "neural affinities". One for reasoning, one for summarization, one for math, one for code, etc - then combini…

Isn't this the whole idea with Mixture Of Experts approach that is GPT-4 is using?

Isn't MoE with switch transformers massively inefficiemt compared to being able to customize which LLMs you are using?

I've seen a lot of agent swarm concepts in the smaller llm space that seem to provide some feedback that this is a viable avenue of research.

Re: Orca 2: Teaching Small Language Models How to Reason

#15
A really important nuance here is that they are building on top of Llama-2, the pretrained model, and not Llama-2-chat.

I really think the entire field is doing a degree of damage with the chat fine tuning beyond what might be expected, because regularly part of that chat instruction is an emphasis on identification as a LLM.

The problem with this is that nearly all of the training data it's performing next token prediction on is text generated by humans.

So there's an inherent narrowing of the model scope with most of the fine tuning I've seen such that while pretrained models are harder to use, I regularly prefer them over chat models when both are available as even at similar temperatures the quality and variety of language is much improved in the pretrained over chat model.

This fine tuning was only introducing bias towards logical step by step analysis and problem solving techniques, and the results are great. But I'm willing to bet that an identical fine tuning on top of the chat model would have been much worse on the evaluations - not just the compounding of a typical fine tuning loss of a few percent, but more like a double digit relative difference.

It's quite frustrating that the anxiety over model safety is likely throwing out tens of millions of dollars worth of data in the pretrained model when only chat models are available for the SotA, and I hope in the future a lighter touch is taken on fine tuning the pretrained model and instead of focusing on safety inherent to the model it is just set behind a safety oriented discriminator or 'editor' which filters or modifies responses accordingly.

I'd happily take a 2-3x increased API cost for a much more broadly capable and performant model with similar safety characteristics but without the handicaps that come with it.

So while a lot of the gains here might be due to the fine tuning, I expect at least part is shrugging off the baggage of the chat/safety fine tuning as well. Even in the first detailed example, we can see that while Llama-2 goes off rambling later on, its statement of the relative knowledge of John vs Llama-2-chat is much more clear and connected between initial conditions and result particularly regarding theory of mind (i.e. "he assumed" vs the latter's "it must be in").

Re: Orca 2: Teaching Small Language Models How to Reason

#16
> Progressive Learning: We start with LLaMA-2-7B or LLaMA-2-13B checkpoint and finetune it on the train split of FLAN-v2 dataset for one epoch. Note that FLAN-v2 dataset contains both zero-shot and few-shot problems. We then train on 5 million ChatGPT data from Orca 1 for 3 epochs. Then we train on the combination of 1 million GPT-4 data from Orca 1 and Orca 2’s 817K data for 4 epochs.

I think people are missing why they are comparing against Llama-2 13B/70B. They improved Llama-2 7B/13B and reach the level of a 5-10x larger model of the same base.

This is huge. Models on HF.

https://huggingface.co/papers/2311.11045

Re: Orca 2: Teaching Small Language Models How to Reason

#17
post #15

A really important nuance here is that they are building on top of Llama-2, the pretrained model, and not Llama-2-chat. I really think the entire field is doing a degree of damage with the chat fine tuning beyond what might be expected, because regularly part of that chat instruction is an emphasis on identification as a LLM. The problem with this is that nearly all of the training data it's performing next token pre…

Adding to this - it's really interesting the safety stuff that *is* in this paper. Such as:

> We probe some of the categories where we see a larger difference (e.g., violent) and observe that Orca 2 tends to counter the harmful positions more often (which is penalized by the metric), while models that have gone through RLHF safety training tend to decline to respond more often (which is rewarded by the metric).

Or the fact Orca 2 is less likely to extend hate speech than Llama-2-chat which theoretically went through safety fine tuning even though Orca 2 did not have any explicit safety fine tuning.

Research over the past year has really demonstrated (a) just how impactful fine tuning can be - to the point of transmitting capabilities from larger models to smaller, and (b) that we're still clumsily wading through that process with only partial clarity on best practices as the foundational pretrained models get better and better at astounding rates.

Re: Orca 2: Teaching Small Language Models How to Reason

#18

Are we beginning to see "specialized SLMs"? We've already seen some pretend-agent based solutions (where the same model is given several different roles and made to act as eg. ceo / architect / dev / sales in a startup). I wonder if the way forward is to train smaller models with different sets of "skills" or "neural affinities". One for reasoning, one for summarization, one for math, one for code, etc - then combini…

Yes, I think that is the general trend. Have one model tuned for reasoning that decides a plan, based on which you invoke other models as tools (see e.g. the ReWOO paper[0]). If I had to guess, an approach like this is what powers the recent Custom GPT/Assistant API products (based on the lag between tool invocations I would guess that they also re-prompt for plan adjustments between every set of tool calls).

Do that with a small model and hot-swap LORAs, and it should be possible to build a quite powerful local assistant on consumer hardware.

[0]: https://arxiv.org/abs/2305.18323

Post reply on HN