Learning to Reason with LLMs
331–340 of 1001 posts
Re: Learning to Reason with LLMs
#332Earlier quoted context omitted.
Why not? Isn't that basically what humans do? Sit there and think for a while before answering, going down different branches/chains of thought?
Except that these aren't thoughts. These techniques are improvements to how the model breaks down input data, and how it evaluates its responses to arrive at a result that most closely approximates patterns it was previously rewarded for. Calling this "thinking" is anthropomorphizing what's really happening. "AI" companies love to throw these phrases around, since it obviously creates hype and pumps up their valuatio…
Re: Learning to Reason with LLMs
#333For folks who want to see some demo videos and be amazed! HTML Snake - https://vimeo.com/1008703890 Video Game Coding - https://vimeo.com/1008704014 Coding - https://youtu.be/50W4YeQdnSg?si=IohJlJNY-WS394uo Counting - https://vimeo.com/1008703993 Korean Cipher - https://vimeo.com/1008703957 Devin AI founder - https://vimeo.com/1008674191 Quantum Physics - https://vimeo.com/1008662742 Math - https://vimeo.com/10087041…
Re: Learning to Reason with LLMs
#334BUG: https://openai.com/index/reasoning-in-gpt/ > o1 models are currently in beta - The o1 models are currently in beta with limited features. Access is limited to developers in tier 5 (check your usage tier here), with low rate limits (20 RPM). We are working on adding more features, increasing rate limits, and expanding access to more developers in the coming weeks! https://platform.openai.com/docs/guides/reasoning…
Edit, w/ real time follow up:
Prior to buying the credits, I saw O1-preview in the Tier 5 model list as a Tier 4 user. I bought credits to bump to Tier 5—not much, I'd have gotten there before the end of the year. The OpenAI website now shows I'm in Tier 5, but O1-preview is not in the Tier 5 model list for me anymore. So sneaky of them!
Re: Learning to Reason with LLMs
#335If I pay for the chain of thought, I want to see the chain of thought. Simple. How would I know if it happened at all? Trust OpenAI? LOL
Re: Learning to Reason with LLMs
#336Before commenting here, please take 15 minutes to read through the chain-of-thought examples -- decoding a cypher-text, coding to solve a problem, solving a math problem, solving a crossword puzzle, answering a complex question in English, answering a complex question in Chemistry, etc. After reading through the examples, I am shocked at how incredibly good the model is (or appears to be) at reasoning: far better tha…
Re: Learning to Reason with LLMs
#337This made me roll my eyes, not so much because of what it said but because of the way it's conveyed injected into an otherwise technical discussion, giving off severe "cringe" vibes.
Re: Learning to Reason with LLMs
#338I am not up-to-speed on CoT side but is this similar to how perplexity does it ie. - generate a plan - execute the steps in plan (search internet, program this part, see if it is compilable) each step is a separate gpt inference with added context from previous steps. is O1 same? or does it do all this in a single inference run?
Re: Learning to Reason with LLMs
#339One thing that makes me skeptical is the lack of specific labels on the first two accuracy graphs. They just say it's a "log scale", without giving even a ballpark on the amount of time it took. Did the 80% accuracy test results take 10 seconds of compute? 10 minutes? 10 hours? 10 days? It's impossible to say with the data they've given us. The coding section indicates "ten hours to solve six challenging algorithmic…
First, from the original plot, we have roughly 2 orders of magnitude to cover (~100-200x)
Next, from the cost plots: super handwaving guess, but since 5.77 / 0.32 = ~18, and the relative cost for gpt-4o vs gpt-4o-mini is ~20-30, this roughly lines up. This implies that o1 costs ~1000x the cost than gpt-4o-mini for inference (not due to model cost, just due to the raw number of chain of thought tokens it produces). So, my first "statement", is that I trust the "Math performance vs Inference Cost" plot on the o1-mini page to accurately represent "cost" of inference for these benchmark tests. This is now a "cost" relative set of numbers between o1 and 4o models.
I'm also going to make an assumption that o1 is roughly the same size as 4o inherently, and then from that and the SVG, roughly going to estimate that they did a "net" decoding of ~100x for the o1 benchmarks in total. (5.77 vs (354.77 - 635)).
Next, from the CoT examples they gave us, they actually show the CoT preview where (for the math example) it says "...more lines cut off...", A quick copy paste of what they did include includes ~10k tokens (not sure if copy paste is good though..) and from the cipher text example I got ~5k tokens of CoT, while there are only ~800 in the response. So, this implies that there's a ~10x size of response (decoded tokens) in the examples shown. It's possible that these are "middle of the pack" / "average quality" examples, rather than the "full CoT reasoning decoding" that they claim they use. (eg. from the log scale plot, this would come from the middle, essentially 5k or 10k of tokens of chain of thought). This also feels reasonable, given that they show in their API [3] some limits on the "reasoning_tokens" (that they also count)
All together, the CoT examples, pricing page, and reasoning page all imply that reasoning itself can be variable length by about ~100x (2 orders of magnitude), eg. example: 500, 5k (from examples) or up to 65,536 tokens of reasoning output (directly called out as a maximum output token limit).
Taking them on their word that "pass@1" is honest, and they are not doing k-ensembles, then I think the only reasonable thing to assume is that they're decoding their CoT for "longer times". Given the roughly ~128k context size limit for the model, I suspect their "top end" of this plot is ~100k tokens of "chain of thought" self-reflection.
Finally, at around 100 tokens per second (gpt-4o decoding speed), this leaves my guess for their "benchmark" decoding time at the "top-end" to be between ~16 minutes (full 100k decoding CoT, 1 shot) for a single test-prompt, and ~10 seconds on the low end. So for that X axis on the log scale, my estimate would be: ~3-10 seconds as the bottom X, and then 100-200x that value for the highest value.
All together, to answer your question: I think the 80% accuracy result took about ~10-15 minutes to complete. I also believe that the "decoding cost" of o1 model is very close to the decoding cost of 4o, just that it requires many more reasoning tokens to complete. (and then o1-mini is comparable to 4o-mini, but also requiring more reasoning tokens)
[1] https://openai.com/index/openai-o1-mini-advancing-cost-effic...
Extracting "x values" from the SVG:
GPT-4o-mini: 0.3175
GPT-4o: 5.7785
o1: (354.7745, 635)
o1-preview: (278.257, 325.9455)
o1-mini: (66.8655, 147.574)
[2] https://openai.com/api/pricing/ gpt-4o:
$5.00 / 1M input tokens
$15.00 / 1M output tokens
o1-preview:
$15.00 / 1M input tokens
$60.00 / 1M output tokens
[3] https://platform.openai.com/docs/guides/reasoning usage: {
total_tokens: 1000,
prompt_tokens: 400,
completion_tokens: 600,
completion_tokens_details: {
reasoning_tokens: 500
}
}