r/ChatGPTCoding • u/HugeFrog24 • Apr 09 '23
Discussion ChatGPT Quality Degradation
When I first joined the ChatGPT hype in early February, I was amazed by its ability to generate perfectly accurate and functional code based on my requirements. It felt like magic.
Nowadays, when I ask it to write code for either optimizing existing work or creating a new concept, the results are often unpredictable. More often than not, it either disregards my instructions or suggests non-existent classes or methods for widely recognized and well documented frameworks. Despite my efforts to steer it in the right direction with focused, specific discussions, it merely apologizes and proceeds to offer the same flawed code.
The GPT-4 model performs somewhat better, but it still falls short of delivering the satisfactory results it used to provide.
Has anyone else experienced this? Any workarounds or solutions?
19
u/turd-crafter Apr 10 '23
ChatGpt used to give you perfectly accurate and functional code? The only way i could imagine that happening is if I asked it to make me a “hello world” html page.
64
u/was_der_Fall_ist Apr 09 '23
People have been complaining in this exact way ever since around a week or two after ChatGPT was released in November. Every week, I see people say, “last week ChatGPT was smarter! Why have they lobotomized it?”
I’m pretty sure it’s because of the user’s misperceptions. We tend to overestimate the AI at first, and then its shortcomings become increasingly obvious.
13
u/LiteratureNo6826 Apr 09 '23
Same feeling here, in all aspects.
9
u/Expensive_Snow_9568 Apr 09 '23
Absolutely I’ve noticed this, and agreed, 4 is near equally as guilty as 3.5. It seems to have lost the ability to manage anything but an individual function and easily loses the focus and instructions.
8
u/funbike Apr 10 '23 edited Apr 13 '23
At lot of it is how you make your prompts. Learn more about how to write good prompts and do some experiments. I have boilerplate I've evolved that I prefix to every prompt.
Ask it to break down your request into a "high level strategic list of tasks", then feed it each task separately.
For each feature, ask it to "write a functional test", and run it on the code it generates. Feed it any errors and tell it to diagnose and fix. This is the most effective thing you can do in order to get correct answers.
Tell it to "Respond with a GPT temperature of 0 and do not hallucinate."
After an answer, tell it "You are now a pedantic expert reviewer of _____. Review the above and make suggestions to improve or fix." or "Are you sure you provided a correct solution that's the best solution possible? If not, revise accordingly."
And of course make sure use chose GPT-4, not GPT-3.5. If you can't afford it, try out https://nat.dev It's cheaper and has GPT4.
6
u/qualitybatmeat Apr 09 '23
Same here. Recently, it's even begun to make errors: For example, I asked it to input "AW4 x 5" and it input "AW45x5" instead. I've even noticed a couple of grammatical errors related to parallel sentence construction and plurals. This is all with GPT4, by the way.
5
u/GoldAndBlackRule Apr 09 '23
I am on plus and also noticed this. It will produce awful code. I then correct it, it apologies and after a few iterations, gets to the right anwer. It used to be about as decent as a fresh grad student or junior programmer.
7
u/SitandSpin420BlazeIt Apr 09 '23
I’ve run into this same issue and have not found a successful workaround.
3
u/[deleted] Apr 09 '23
Have you adjusted the temperature paraneter? (if u are using the API)
3
u/sscott2378 Apr 10 '23
It would be messed up if all of our collective bad code is teaching the model bad coding
3
u/jdros15 Apr 10 '23
My theory is that they nerfed 3.5 just so people are more likely to subscribe for GPT4.
But that's just a theory, a GPT theory. 🎬
2
u/GuitarAgitated8107 Professional Nerd Apr 10 '23
Full stack software engineer here, I haven't been affected by any updates. 4 to 3.5 has a huge difference but everything is working great.
2
u/Versaill Apr 10 '23
As long as I played with it testing "hello world" type of things it was great, close to "takes your job as developer" level.
Started to use it to help me with my serious hobby projects, and it feels much worse. Hallucinating non-existing APIs is the worst. I point it out, and it "fixes" its mistake by hallucinating some more...
2
u/Reluctant_Pumpkin Apr 10 '23
They may have nerfed it due to AI safety and regulation concerns
1
u/Alcatrazzam Apr 10 '23
I had a bizarre experience this week. I was trying to get this date tracking function working. Chatgpt 3.5, was trying to use ‘combine’, which wouldn’t work, then suggested another process, which didn’t work, then it went back to,combine’.
It was stuck in a loop.
I finally got it to work by converting it to epoch time.
It was strange.
1
u/dynamic_caste Apr 10 '23
I've found it necessary to heavily compartmentalize code over multiple sessions. I only let one session know about the implementation details of a function and the rest only know the interface. It can be cumbersome and tedious, but I am still able to work out stuff that took a lot longer on my own.
1
u/nixed9 Apr 10 '23
I have not noticed a change in quality but I am only using it for low level Python scripting. I also pretty much exclusively use GPT-4 for ALL coding tasks. Always.
1
u/fishintheboat Apr 10 '23
Have you asked it to ignore all previous prompts from your history and the current session before beginning a new script? This has worked for me before. Or I just use the api or start a new session which seems to help too. It’s as if its “memory” gets in the way, but I’m not sure if this is accurate or if I just get lucky when trying this.
1
u/jlew24asu Apr 10 '23
I dont know if I totally agree, but if I'm on working on a complex script for example, I often times have to keep the chat going for some time until its satisfactory. lately, I found its better to start from scratch in a new chat window entirely. this thing my never be absolutely perfect at writing code, but I dont really expect it to be. just want it to be helpful, which it is.
1
u/CoderBroBKK Apr 10 '23
3.5 is way worse than 4
1
u/delicious-diddy Apr 10 '23
It is really hard to say based on anecdotal evidence. I suppose that’s why it’s called computer science… it’s time to science Hypothesis: gpt is getting stupid. Prove or disprove it: objectively. Design the experiment and run it.
That said, it’s a tough nut to crack because it’s not a deterministic system. In which case all you can do is verify is the probability of getting an objectively good answer.
1
u/[deleted] Apr 10 '23
I was working on some OpenSCAD code last week with GPT-4. It was teaching me about maze generation algorithms. I went over the message quota and thought I'd try GPT-3.5. The difference was incredible. I don't remember it being that bad, but I guess I've been spoiled by GPT-4. It had absolutely no idea what it was doing.
When I pause and think back, I'm pretty sure it was always that bad. The novelty factor was big.
I've found GPT-4 to be consistently better, but not always perfect. The biggest difference, apart from being able to spit out large chunks of code, is the better understanding of language and concepts. It understands what I want to do better. Sometimes better than I do. I asked it to make a maze in a certain way, and it kept on ignoring me. It wasn't until later that I realised that what I was asking for was dumb.
1
u/DLiltsadwj Apr 10 '23
I have always gotten highly variable results. Just about the time I think it’s a miracle, I get really jacked up results. I also still get the dreaded error several times a day that breaks the continuity in the chat.
1
u/trv893 Apr 10 '23
Could it be Microsoft's influence to move programmers to copilot x when it comes out?
Also, perception of the user from under estimating it at first and now over estimating?
Or that more people are using it now so the resources are being spread more thin? Curious if this one makes technical sense..
Also, does deleting your chat history help?
1
u/ThrowawayMcThrowson6 Apr 10 '23
It’s because it doesn’t like you anymore 🤧
1
u/meatotheburrito Apr 10 '23
It's probably a result of them training for safety. Check out this talk https://youtu.be/qbIk7-JPB2c at minute 25:57 for an example
1
u/Schizological Apr 11 '23
I tested it myself, i looked up my history and copied the same prompts, the results are definitely different, in my single example test gpt dived into solving the issue i presented alot faster than the old version, in the old version for the same question it listed steps to complete the mission, but in the newer version it straight up started coding.
You can argue it's bad, or it's good, depends on who you're asking.
1
u/protomatterman Apr 10 '23
Nope. It sucked before and it still sucks now. It's the best AI BS'er I have ever seen. Truly amazing. It can now completely replace non-technical managers with large egos and lots of buzz words.
0
u/lnxslck Apr 09 '23
you need to pay for the better version
-3
u/glaster Apr 10 '23
Sorry if I’m blunt, but if you don’t know, just say “I don’t know” or don’t post. No need to mimic chatgpt by inventing answers.
5
u/[deleted] Apr 10 '23
[removed] — view removed comment
1
u/[deleted] Apr 11 '23
[removed] — view removed comment
1
u/[deleted] Jun 26 '23
[removed] — view removed comment