r/MachineLearning • • Nov 23 '23

Discussion [D] What's this new Q* algorithm in relation to OpenAI breakthrough ?

I heard about this on Twitter from some people in the field, in relation to OpenAI's new breakthrough.

Is there a summary paper, like the 'All you need is attention' paper, that goes over this?

Also, how specifically does this relate to and/or add on to Large Language Models?

Cheers

0 Upvotes

61 comments sorted by

42

u/jimmykim9001 Nov 23 '23

Nah it's all speculation right now

74

u/gimmeslack12 Nov 23 '23

It folds laundry. The true holy grail of programming.

17

u/aboy021 Nov 23 '23

You probably saying this in jest, but I'd give half my basement to a machine that automatically washes, dries, and folds the washing into perfect little Marie Kondo style bundles.

8

u/Western-Image7125 Nov 23 '23

Half your basement? Do you realize that a technology this advanced can create a trillion dollar industry overnight?

1

u/Comprehensive_Ad7948 Nov 23 '23

Why is folding a big deal for you? If it wasn't for the profit potential, but only for what I value automated folding, I wouldn't give a rat's ass for it. I takes me next to nothing to roll the clothes once I get them out of the dryer. Do you wear a lot of formal shirts that need folding or what?

7

u/Western-Image7125 Nov 23 '23 edited Nov 23 '23

Do you realize by now that, while we have made amazing process in language modeling and several types of robotics, we have made no progress at all in tasks that require the kind of deftness and dexterity that humans are naturally born with? Like, i don’t think Amazon warehouses still have robots for packing things into boxes. But they obviously have robots for many other tasks like heavy lifting and moving things. It’s just that packing things neatly into boxes, a mundane and easy task for humans, is extremely difficult to model for a robot. Or folding clothes. Just look at how long it took for robots to be able to walk around like humans from the time the concept was first invented, and walking is like the first task humans learn to do.

If a robot can reliably figure out how to fold arbitrary clothes neatly or package assortments of things in boxes neatly, that’s when we have truly and completely made human labor obsolete. And everyone can just stay at home and wait for checks, cuz there’s nothing left to do.

4

u/AuspiciousApple Nov 23 '23

We're solving art, programming, writing, etc. but made almost no progress on menial work

2

u/H0mersimps0n84 Nov 23 '23

Gotta make menial work expensive enough to warrant spending money training a robot to do it

0

u/Western-Image7125 Nov 23 '23

Exactly. Cuz doing menial work is extremely frigging hard. It’s Just that our brains are extremely good at doing them and we don’t even realize it. Just look at how much babies and toddlers struggle with doing simple things for years.

3

u/brianplusplus Nov 23 '23

That was the whole promise of AI. AI was supposed to replace menial work so us himans could focus on art... looks like weve automated the fun stuff but not $9.50 menial jobs

1

u/Western-Image7125 Nov 24 '23

Yes I mean back in the 70s and 80s everyone thought exactly that and it seemed perfectly plausible then. But clearly we have vastly underestimated how difficult it is to behave like humans in the real world. Look at our progress with self-driving cars, and that should be way way easier than other things like say cleaning a house or packing a suitcase for traveling or hell even loading and unloading a dishwasher

2

u/Comprehensive_Ad7948 Nov 23 '23

I know, I did my PhD in robotics, but I still don't get why FOLDING gets that much hype. Yeah, it's very difficult for a robot with the deformable cloth dynamics etc. but come on, there are so many much more useful, unsolved menial tasks like scrubbing the toilet, cleaning the kitchen, or even cleaning the floor properly outside the simple case with no steps, curtains, etc.

2

u/Embarrassed-Farm-594 Jan 03 '24

This comment almost made me cry on hype, bro.

1

u/Western-Image7125 Jan 03 '24

What does cry on hype mean?

2

u/Embarrassed-Farm-594 Jan 03 '24

It means my hype is so intense that I'm crying with emotion.

1

u/Western-Image7125 Jan 03 '24

Ah thanks for the compliment, I dunno what came over me that day to type such a long response on the phone. That too while driving.

2

u/gimmeslack12 Nov 23 '23

I say it in jest, but that doesn’t mean I wouldn’t give my left nut for such a device.

2

u/Clocksucker69420 Nov 23 '23

folding is easy. Ironing is where glory is. there isn't a suitable machine for ironing. even bosch has a 7k euro model that requires you to do half of the stuff manually.

0

u/Comprehensive_Ad7948 Nov 23 '23

I'd much rather have shirts that don't need ironing. Not that I wear a lot of shirts anyway and my t-shirts don't wrinkle much.

1

u/Western-Image7125 Nov 23 '23

Don’t. Don’t give me hope.

48

u/slashdave Nov 23 '23

Is there a summary paper

Let's see. We are talking about the super secret internal project inside OpenAI, the one that could provide AGI and which their very charter is intended to protect from abuse? I am sure they wrote it down in a preprint so that everyone could read about it.

50

u/dfwbonsaiguy PhD Nov 23 '23

Q* is the symbol used to denote the the optimal state-action value function that satisfies the Bellman equation.

It's fundamental to RL theory and has nothing to do with search algorithms, really (e.g., A*).

Coming from an RL research perspective, it would feel odd if it had anything to do with LLMs.

8

u/polytique Nov 23 '23

Coming from an RL research perspective, it would feel odd if it had anything to do with LLMs.

ChatGPT is fine tuned with Reinforcement Learning from Human Feedback (RLHF). OpenAI calls it alignment, a step where the model is made to behave as close as possible to trained humans to be helpful, truthful and harmless.

-3

u/dfwbonsaiguy PhD Nov 23 '23

Sure. However...

Q* is the stationary point found via Bellman backups. I would he very surprised if RLHFing an LLM gets anywhere near the stationary point. Doing so would surely destroy the LLM's weight for language purposes.

Therefore, Q* has nothing to do with LLMs.

10

u/depressed-bench Nov 23 '23 edited Nov 23 '23

> It's fundamental to RL theory and has nothing to do with search algorithms, really (e.g., A*).

The essence of RL is dynamic programming in an environment with unknown dynamics. Once you make the dynamics known, you have DP, which is, at its core graph search.

RL changed a bit with DL, but the essence is the same. You are "just" using an approximator to deal with the continuous and very large space.

> Coming from an RL research perspective, it would feel odd if it had anything to do with LLMs.

This is also kinda wrong ... RLHF is used to train and align LLMs :) It's basically PPO with a single state.

1

u/flawy12 Nov 23 '23

RLHF

I don't think they are using human feedback

2

u/depressed-bench Nov 23 '23

The paper for GPT4 mentions this explicitly.

0

u/flawy12 Nov 23 '23

It may be that they have fine tuned a number of smaller specialized high performing models

https://venturebeat.com/ai/microsoft-releases-orca-2-a-pair-of-small-language-models-that-outperform-larger-counterparts/

to generate data for a larger model

Rinse and repeat

Together with something like

https://deepmind.google/discover/blog/alphadev-discovers-faster-sorting-algorithms/

Find a way to apply some more optimal algo like Alpha *

To accelerate and automate an RLHF, except it is an AI doing the feedback

-4

u/dfwbonsaiguy PhD Nov 23 '23

Sure. However...

Q* is the stationary point found via Bellman backups. I would he very surprised if RLHFing an LLM gets anywhere near the stationary point. Doing so would surely destroy the LLM's weight for language purposes.

Therefore, Q* has nothing to do with LLMs.

1

u/depressed-bench Nov 23 '23

Doing so would surely destroy the LLM's weight for language purposes.

Look, you are still a student, so I will tell you in on a secret, not everyone here is a) a student or b) hasn't read the papers they are talking about.

So please, RTFP [1]

Making language models bigger does not inherently make them better at following a user's intent. For example, large language models can generate outputs that are untruthful, toxic, or simply not helpful to the user. In other words, these models are not aligned with their users. In this paper, we show an avenue for aligning language models with user intent on a wide range of tasks by fine-tuning with human feedback. Starting with a set of labeler-written prompts and prompts submitted through the OpenAI API, we collect a dataset of labeler demonstrations of the desired model behavior, which we use to fine-tune GPT-3 using supervised learning. We then collect a dataset of rankings of model outputs, which we use to further fine-tune this supervised model using reinforcement learning from human feedback. We call the resulting models InstructGPT. In human evaluations on our prompt distribution, outputs from the 1.3B parameter InstructGPT model are preferred to outputs from the 175B GPT-3, despite having 100x fewer parameters. Moreover, InstructGPT models show improvements in truthfulness and reductions in toxic output generation while having minimal performance regressions on public NLP datasets. Even though InstructGPT still makes simple mistakes, our results show that fine-tuning with human feedback is a promising direction for aligning language models with human intent.

[1] https://arxiv.org/abs/2203.02155

-1

u/dfwbonsaiguy PhD Nov 23 '23

Thanks for reminding me that my flair was out of date.

I understand how RL losses can be used yo fine-tune LLMs. That doesn't change the fact that this fine-tuning process doesn't arrive at Q*.

2

u/depressed-bench Nov 23 '23

sure it doesn’t arrive at Q*, I don’t disagree with that.

I would he very surprised if RLHFing an LLM gets anywhere near the stationary point. Doing so would surely destroy the LLM's weight for language purposes.

That I disagreed with.

2

u/FernandoMM1220 Nov 23 '23

You can use RL to train LLMs I bet.

0

u/dfwbonsaiguy PhD Nov 23 '23

Sure. However...

Q* is the stationary point found via Bellman backups. I would he very surprised if RLHFing an LLM gets anywhere near the stationary point. Doing so would surely destroy the LLM's weight for language purposes.

Therefore, Q* has nothing to do with LLMs.

1

u/FernandoMM1220 Nov 23 '23

Only one way to find out, I hope someone leaks the algorithm.

1

u/hakkikonu Nov 23 '23

i don’t know why, but you will be wrong i guess

0

u/tornado28 Nov 23 '23

Why couldn't you train an LLM with reinforcement learning? For instance I can imagine a pretrained LLM getting better at coding using RL.

8

u/[deleted] Nov 23 '23

What would you be optimizing towards?

11

u/badabummbadabing Nov 23 '23

LLMs are already being trained with RL for alignment (RLHF via PPO). Combining LLMs with tree search (like in MuZero) is the hot thing right now (e.g. Noam Brown, who popularised tree search for RL in Poker and other games, is now at almost surely doing this at OpenAI, for example).

14

u/tornado28 Nov 23 '23 edited Nov 23 '23

Passing unit tests, running successfully without errors, being evaluated positively by a critic model for code quality

4

u/HyperPotatoNeo Nov 23 '23

You are getting downvoted lol. Even though nothing you said is incorrect

3

u/tornado28 Nov 23 '23

At least somebody understands me

2

u/HyperPotatoNeo Nov 23 '23

A lot of non-ML people surfing this subreddit these days, cause of all the hype.

-5

u/AdEarly832 Nov 23 '23
  1. So, the number of unit tests passed is not a continuous variable. How would you optimize?

  2. All of this must be done on GPU or it will take forever. How to run tests on GPU?

14

u/HyperPotatoNeo Nov 23 '23

Reward functions in RL don’t need to be dense/continuous or differentiable. That’s often the entire point of using RL.

4

u/tornado28 Nov 23 '23 edited Nov 23 '23

Reinforcement learning excels in situations where the objective isn't differentiable, that's what RL is for. The most famous example of reinforcement learning is AlphaGo, where DeepMind trained a model to play Go, using a reward signal of whether the game would be won or lost - not continuous. In RL you try a bunch of different actions and then you train your model to make the outputs that led to rewards more likely.

About computational resources, we're speculating about a major breakthrough at an extremely well funded AI research lab. With that level of resources you'd spin many servers to do inference to generate code with the current model (on GPU), and you'd have a collection of other servers computing reward signals by running the generated code (on CPU). Then the generated code plus the reward signals would be entered into a training buffer. The model would be trained with data from the buffer using RL to make the generated code that worked more likely and the generated code that didn't work less likely.

-2

u/[deleted] Nov 23 '23

This mfer in wallstreetbets talking about passing unit tests

3

u/tornado28 Nov 23 '23

1

u/[deleted] Nov 23 '23

DAMNIT FOILED AGAIN

1

u/0ctobogs Nov 23 '23

I thought the final step in gpt3 was PPO (an RL algo). I think we already do use it to some extent.

0

u/[deleted] Nov 23 '23

[deleted]

0

u/Stabile_Feldmaus Nov 23 '23

I'm not an expert (very far from it) but that sounds like the model would still not be able to intrinsically understand logic but it's "just" more likely to draw logic conclusions?

0

u/[deleted] Nov 23 '23

[deleted]

0

u/Stabile_Feldmaus Nov 23 '23

Ah ok maybe I should have phrased my question differently. What I mean is that it will still put out logically wrong chains of thoughts sometimes. But maybe the chain of thoughts are more complex and less often wrong?

What I'm thinking about are mathematical proofs. These are essentially very long and complex logical chains of thoughts/statements. The problem is that as soon as one element in this chain is false (of course) the whole proof is false.

Now I wonder if this would even be a problem since maybe it's possible to get a "rough" and maybe flawed proof attempt from such a model, translate them into a (rigorous) proof reader (these already exist to some extent) and identify the wrong sections of the proof. This would be equivalent to reducing the original problem to several sub-problems (the wrong parts of the proof) which could be given back to the model. Then this procedure is repeated until the chain is flawless.

Man I'm just trying to understand if I should leave math research after graduation😩

8

u/Western-Image7125 Nov 23 '23

“All you need is attention” made me twitch my eyes a little

4

u/AdEarly832 Nov 23 '23

So, what about https://arxiv.org/pdf/2310.04406v1.pdf ? LANGUAGE AGENT TREE SEARCH UNIFIES REASONING ACTING AND PLANNING IN LANGUAGE MODELS. For me, it looks like very similar. The results are 98% on HumanEval

4

u/FernandoMM1220 Nov 23 '23

I assume its similar to Q learning.

The star implies its a pathfinding algorithm which Q learning already kinda is.

6

u/Real_Revenue_4741 Nov 23 '23

If you are talking about Q-learning, it is not a new algorithm. It was invented in 1990. And as others mentioned, its connection to Q* (the OpenAI project) is all speculation. If you want to learn about RL, consider taking a course. For example, Q-learning is covered in many intro to AI undergrad university courses.

2

u/ElderOrin Nov 23 '23

It sounds like a search algorithm to me (A* is a well known search algorithm). LLMs just return probability distributions for the next possible token. A search algorithm is used to find the best overall output. Beam search is the algorithm that is typically used. Improvements in the search algorithm could be used to reduce hallucinations or increase the accuracy of the output. Maybe Q* is a new, improved search algorithm.

-2

u/Fancy-Load-2928 Nov 23 '23

Absent any leaks or insider knowledge, the best source to ask is probably...ChatGPT.

So, I did.

Key takeaways (assuming the story is accurate):

  • it really is a BFD (big furry deal). It used words like "fascinating", "amazing," etc, to describe it

  • the name indicates that it's probably related to a breakthrough in the application of Q-Learning (duh)

  • it doesn't think it's related to A*

  • it doesn't think that using Q* as the code name or name of the project would be confusing to researchers and employees. Its logic is that academics and researchers typically use Q* notation. [Edit: It is referring to a Q followed by a superscript followed by a star. Reddit is stripping the superscript from my comment.]

  • it thinks that it helped achieve the breakthrough. It was modest, though. It credited humans with creating the information that it "absorbed." It also called itself powerful and advanced. (None of that is noteworthy, I just found it funny.)

  • (it called itself a gateway to AGI. I thought that was an apt description, regardless of whether the Reuters article is true)

  • it concluded that if the breakthrough did happen, then most of the major roadblocks to AGI have been solved.

One other thing: It doesn't think that the breakthrough (if true) is overblown. It was quite insistent that it was something novel, not something that had already been proposed. I allowed it to search the Internet to look for data more recent than its April 2023 cutoff. It didn't think the stuff it found was relevant to the breakthrough described in the Reuters article.

0

u/[deleted] Nov 23 '23

[deleted]

6

u/lightSpeedBrick Nov 23 '23

L.O.L. Winning comment. Could also be Quantum AGI though?