by nopinsight · 3y ago · 0 comments
Iteratively refines code, shifting “accuracy bottleneck” from correct code gen to correct test gen
HumanEval accuracy:
-Reflexion-based GPT-4 88%
-GPT-4 67.0%
-CodeT 65.8%
-PaLM 26.2%”
with link to code in the Tweet:
https://mobile.twitter.com/johnjnay/status/16393620718075494...
21% improvement after adding a feedback loop and self-reflection to GPT-4, which just went public 12 days ago. (The approach is based on a preprint published 4 days ago.)
Human coders often need a feedback loop and self-reflection to properly “generate” code for problems novel to them as well.
-----
A larger question: Are we hurling ourselves toward a (near) future of unaligned AGI with self-improvement capabilities?
Screenshots, video demo, and process here: https://mobile.twitter.com/mortenjust/status/163927657157489...
It seems plausible to me now that a junior developer position would be hard to find in 2-3 years (I thought it would be ~5 years).
The question is only when does the "exponential regime" turn into the flat; and the answer is often fairly obvious if you don't begin from the "time = magic" premise.
There's an entire industry of public (pseudo)-intellectual who's schtick is to draw logistic phenomena with exponential curves and then cry, "the sky is falling!".
it reminds me of the thinking-fast vs. thinking-slow dichotomy. Current llms are the thinking fast type. Funnily people’s complains about its errors are reminiscent of this. It answers just to quick and only with its instant response neural net. A thinking slow answer would be more akin to a chain of thought answer. Allowing the llm a more flexible platform than CoT promptin might well be the next step. Of course it would als multiply compute cost. So it might not be in your 20$ subscription
This is evident by its ability to generalize from the training set to new problems within many domains.
It's still unable to generalize as well as a smart human beyond the distribution it was specifically trained on, which is evident by its poor performance on AMC, Leetcode medium and hard, and Codeforces problems. But most humans are not great at these kinds of problems either.
Benchmark and test results: https://openai.com/research/gpt-4
We are running towards a brick wall and people are not paying attention. Setting up self-reflection loops today is actually fairly trivial and can be done programmatically, all the model needs is to produce a solution, invoke the evaluation and keep iterating.
A few other tests show that GPT-4 would achieve much better results than 67% for something it has sufficient training data on like GRE Verbal and AP Macroeconomics.
https://openai.com/research/gpt-4
Yes, it still can’t generalize properly outside its training distribution. However, when armed with feedback and self-reflection, it seems better at that too.