154 points · by famouswaffles · 3y ago · 69 comments
From the future work section:
> better determining the number of <pause> tokens (perhaps using model confidence)
If the number of pause are learned, using model confidence + regularisation (so that the model doesn't always use the maximum number of pauses), then we effectively have the System 1/2 switch. If it's a task the model has seen tons of times before, it just goes with the first inference pass. If it's low confidence, then it keeps expending more inference passes until it reaches an acceptable confidence threshold.
> Readers of “Thinking: Fast and Slow” should read the book as a subjective account by an eminent psychologists, rather than an objective summary of scientific evidence
https://replicationindex.com/2020/12/30/a-meta-scientific-pe...
While most of the psychology field is crumbling and filled with bullshit (even though most people didn't catch on yet). There's still _some_ truth lying in there.
It might look bad in isolation, but Kahneman's work is one of the few that actually holds up to scrutiny.
This post by Scott Alexander is pretty good in summarising the few good bits left. https://www.astralcodexten.com/p/heres-why-automaticity-is-r...
---
But regarding the initial point. The goal is not to fully emulate human thinking. It might sound wishy-washy, but there's _obviously_ _some_ truth to the system 1/2 model. It's not perfect! But I think it's useful.
We as humans do most decisions without thinking (hard), but we have a way to _switch_ into a more reliable but expensive mode. We see some evidence that artificially inducing LLMs to 'think' more improves their output.
So it stands to reason that adding this capability to a model would make it better. And what better way to do it than swallowing the bitter pill and have that decision be made by the model itself, on a case-by-case basis by learning it from data.
Yes, not all people think like that. But that also means that there are people who do think like that, based on the application of the pigeonhole principle on your own statement.
All avenues for internal computation should be done to improve model accuracy & results, including this method.
In the paper, the model doesn't really learn to use padding tokens effectively till after training so it's the only thing.
For instance, I tested whether asking a model to produce "a b c d e" before solving a math problem improves performance.
is of course not what you would expect to work. It is not about dumping meaningless stuff into the input but intermediate results. If you have to add two long numbers but are only capable to add single digits, you want to dump the carry into the output and get this fed back as input so that you can take it into account when adding up the next two digits. Dumping unrelated stuff into the output will of course not help. Chain of thought does exactly this, it solves part of the overall problem and feeds that back for consideration when tackling the next piece of the problem.
1. Train without pauses for fast response
2. Train with variable numbers of inserted pauses, so the model can take more time (computation) to improve its performance.
Where pauses are represented both by pause tokens, and a new pause countdown element.
I.e:
Sequence:
…, token, pause, pause, pause, token, …
Pause element: …, 0, 3, 2, 1, 0, …
3. Train the model model to generate its own next pause value (insert its own pauses), to optimize a meta-performance tradeoff function that ranges from the regular performance measure (independent of delay) vs. delay.The tradeoff is based on an “urgency” value between 0 and 1, that adjusts the tradeoff meta-performance weighting between just delay-independent accuracy vs. just speed.
The urgency is used at each step to calculate the tradeoff meta-performance, and as a new urgency input element so the model knows what tradeoff level it is supposed to optimize.
4. Train the model to generate its own urgency values, based on examples of prompts which either communicate urgency based on request or context.
“Quick, give me an estimated value for …”
“The reactor is about to explode, what are the shutdown codes?”
Note, that the model generated urgency value and the next urgency input don’t have to be the same.The generated urgency could be pushed higher or lower algorithmically, to get the next urgency input, if the model is being used in a context that has its own urgency relevant information.
—-
So many good ideas. It’s clear models are going to improve quickly.
Next step beyond a model that can leverage pauses for better performance, and a model that controls its own pauses, is a model that can be interrupted.
Interruptions could be urgency related, cancellations, modifications, or irrelevant:
“Hurry up”
“Forget that, do this other thing.”
“Oh, and the answer should be odd.”
“While you think, I am enjoying a nice cup of tea.”What’s worse, memory use is quadratic in sequence length so adding 10x tokens is just not very smart.
You don't have to use 10. That's just what they found optimal for a particular benchmark. For others it was lower.
>What’s worse, memory use is quadratic in sequence length so adding 10x tokens is just not very smart.
Everyone uses flash attention these days. Memory is no longer quadratic in scaling.