r/programming • u/3urny • Dec 10 '22
StackOverflow to ban ChatGPT generated answers with possibly immediate suspensions of up to 30 days to users without prior notice or warning
https://stackoverflow.com/help/gpt-policy452
u/magestooge Dec 10 '22
How will they know?
578
u/Raunhofer Dec 10 '22
There already are some models that are capable of detecting AI's handywork. Especially ChatGPT seems to follow certain quite recognizable patterns.
However, I don't think nothing prevents you from ChatGPTing the answer and using your own words.
205
u/drekmonger Dec 10 '22
Especially ChatGPT seems to follow certain quite recognizable patterns.
Only the default "voice". You can ask it to adopt different styles of writing.
24
Dec 10 '22
Iâve found the overall structure and patterns of responses to be pretty recognisable. Even if you ask it to use different voices you can still tell. Maybe ChatGPT 4 will improve on that
→ More replies (4)→ More replies (98)10
u/vaxinate Dec 10 '22
Kind of. You can get it to write in the style of someone else or an invented style but you have to be really specific. Even if you say âWrite <whatever> in the voice of George Washingtonâ itâs going to spit something out that reads like GPT wrote it and then overlaid some George Washington-ness onto it.
You need to get really really specific to get it to really give output that doesnât include any of the algorithmâs âverbal ticsâ
→ More replies (2)13
u/Ribak145 Dec 10 '22
... the last thing is basically the reason why people go to stackoverflow in the first place, so they can take some stuff they found there and implement it with a small tweak into their own systems :-)
how the turn tables
→ More replies (1)→ More replies (7)6
u/Xcalipurr Dec 10 '22
Ah yes, the ironic Turing test, making an AI that tells computers and humans apart when humans can't.
→ More replies (1)62
u/Pelera Dec 10 '22
The real telltale sign is that for anything not previously seen in the model, it comes up with extremely confident sounding answers that don't pass the smell test if you actually know anything about the subject matter. It has weirdly specific gaps in knowledge and makes very odd recommendations. It'll do things like telling people the right configuration, but then tells them to stuff it in the wrong configuration file where you'll get an obvious parse error or whatever. Sometimes the suggested config will leave obvious artifacts of some specific project it ripped it from.
Judging this is going to be hard. People have brainfarts like that too. But if there's a pattern of really specific brainfarts, it's probably someone sneaking in ChatGPT answers. And because of SO's policy of deleting duplicates and over-eager mods that delete most of the posted content within 5 seconds, I imagine that ChatGPT will have a pretty high failure rate for anything that survives moderation.
66
u/Xyzzyzzyzzy Dec 10 '22
I guess they'll know if the answer reads like the fine print on an ad for incontinence medicine.
"Given your question, here's one possible answer:
possibly correct answer. However, the correct answer will always depend on the conditions. There are a variety of conditions where this question may be asked, and this answer may not be appropriate in every case. It's possible that there are situations where this answer may be inappropriate or counterproductive. You should always check with an expert programmer before using any answer, including this one."57
0
Dec 10 '22
[deleted]
16
7
u/Dealiner Dec 10 '22
In some cases it's probably obvious, in other it doesn't really matter that much. The biggest problem is quality of those answers. I guess they mostly just aim to scare away people posting generated answers without any redaction.
→ More replies (1)5
u/Tavi2k Dec 10 '22
It's much more obvious if you have a pattern of multiple posts in quick succession. And those are the problematic cases due to the sheer volume of plausible-looking crap you can generate with ChatGPT.
→ More replies (1)→ More replies (12)16
u/BadFurDay Dec 10 '22
It is not possible to determine with certainty whether a comment was written by a specific language model, such as ChatGPT, without additional information. Language models are trained to generate text that is similar to human-written language, but it is not always possible to distinguish their output from that of a human. In general, the best way to determine the source of a comment is to ask the person who posted it.
81
u/kyay10 Dec 10 '22
Lemme guess, this was generated by ChatGPT? I can recognise it quite well because it legitimately uses the same writing style I use when trying to be professional and informational lol.
→ More replies (3)43
u/BadFurDay Dec 10 '22
Hi kyay10, the comment above was not generated by ChatGPT. It was written by a human user. ChatGPT is a large language model trained by OpenAI to generate human-like text based on the input it receives, but it is not capable of generating comments on its own. It is important to always read the context of a conversation and evaluate the source of the information being shared before making assumptions or drawing conclusions.
→ More replies (5)15
u/drekmonger Dec 10 '22 edited Dec 10 '22
Funny. But it's possible ask ChatGPT to write in any style you can think of.
Proof:
There's no way to detect that first example was written by ChatGPT.
Bonus sonnet:
In this digital age of endless chatter, Where words and thoughts come quick and easy, We oft forget the source that matters And blindly trust the things we see. But when a comment leaves us in doubt, And we cannot tell for sure its source, We must remember to seek it out And ask the person who set it loose. For language models can craft a phrase That sounds as human as can be, But only those who wrote can say The true intent and verity. So when in doubt, do not be swayed, But ask the one who wrote the words today.→ More replies (1)
400
u/nesh34 Dec 10 '22
ChatGPT is absolutely excellent. But it is frequently wrong, and it's wrong with calm and assured confidence.
Easy to believe it unknowingly.
101
u/polmeeee Dec 10 '22
I once asked it to solve an algorithm problem and it solves it perfectly, even providing the runtime. I then asked it to solve the same thing in O(1) time complexity, which is impossible. It proceeds to reply with the same answer but now claimed it runs in O(1).
55
5
u/Accurate_Plankton255 Dec 11 '22
I asked it to implement some algorithm and it included a hash function that simply returned random ints buried within it.
30
u/rooplstilskin Dec 10 '22
It's not great at writing complete code, which seems like many people are testing it for.
It's pretty good at writing cookie cutter stuff, and templates for stored procedures. And pretty decent with Bash. Sometimes you have to refine how you type out the requirements though.
Anecdotally, I had it write out an SSO connection for a service I use in Go, and it was about 80% complete. I wrote in some missing things, and rewrote the error handling a bit, but it worked.
→ More replies (2)3
u/nesh34 Dec 10 '22
Yeah, I've not pushed the boat out this far. Amongst the easy tasks I've given it, it still got some wrong.
2
→ More replies (13)2
73
u/Embarrassed_Bat6101 Dec 10 '22
I asked chatgpt for a c# program that would give me the first hundred digits of pi. The answer it gave was some very nice looking code that I immediately plugged into a console app and eagerly ran, only to find it out it didnât work. Even after fixing some bugs that I could find it still didnât work.
Chatgpt is pretty cool but I wouldnât rely on its coding skills yet.
5
u/your_mind_aches Dec 11 '22
On the other hand, I asked it to do some stuff in Python and in Bootstrap and it worked perfectly or at the very least have me a good starting point that I could then build on
→ More replies (1)→ More replies (4)8
u/StickiStickman Dec 10 '22
Definitely don't 100% rely on it, but it doesn't need to be at that point to be a super useful programming tool.
It already helped me shave of >75% of coding time for several projects and did entire functions without issue.
10
u/danielbln Dec 10 '22
Same, I always keep in mind not to trust its output sight unseen and for output I can't fully grok I ask it to provide test cases and such. It's been an absolute boon for my productivity (GPT3 already helped a lot, ChatGPT makes it a lot better and so much more convenient).
44
u/No-Two-8594 Dec 10 '22
things like ChatGPT are going to make good programmers better and bad programmers worse. The bad ones are just going to start copying shit and not even understand when it is wrong.
17
u/Johnothy_Cumquat Dec 11 '22
The bad ones are just going to start copying shit and not even understand when it is wrong.
This has been happening for quite some time now.
139
u/AceSevenFive Dec 10 '22
I like AI, but this is entirely reasonable. ChatGPT is often confidently wrong, which is quite dangerous to have when you're looking for right answers.
→ More replies (11)
48
u/robberviet Dec 10 '22
I love how some people commented: ChatGPT is just fluent bullshit. And fact checking those is hard.
7
u/Password_Is_hunter3 Dec 11 '22
The solution to P=NP turns out to be, instead of certain problems being hard to solve but easy to check, every problem is easy to solve, but hard to check
75
u/chakan2 Dec 10 '22
Will ChatGPT tell me my question sucks and refuse to answer it?
30
15
6
5
Dec 10 '22 edited Dec 10 '22
Not often enough to be useful. Here's a prompt I tried recently:
how do I write a multi-user Python webapp to show and update records from an excel spreadsheet?
Sure enough, it responds with a detailed description of such a webapp.
3
u/colexian Dec 11 '22
I asked it how to be more popular, and it got mildly upset and gave a lecture about how being popular isn't a great approach and that generally being a good person would go farther towards being popular than being popular would go towards being a good person.
2
u/bz63 Dec 10 '22
it will tell you this isnât even the right question to ask then give you an unrelated answer
→ More replies (1)→ More replies (1)2
143
u/atSeifer Dec 10 '22 edited Dec 10 '22
The decision for Stackoverflow to ban ChatGPT was decided days ago.
https://meta.stackoverflow.com/questions/421831/temporary-policy-chatgpt-is-banned
93
u/Dealiner Dec 10 '22
If by months ago, you mean five days ago then yes, you're right.
→ More replies (1)18
13
4
u/mastycus Dec 10 '22
Source?
11
u/atSeifer Dec 10 '22
It appears my time scale was off.
This was banned 5 days ago, I edited my answer above to reflect the new information.
31
u/ganja_and_code Dec 10 '22
Good. (I'd even be in favor of permanent bans, as opposed to 30 day suspensions.)
I get on StackOverflow to see answers from other programmers. If I want answers from ChatGPT, instead of real people, I'll use ChatGPT, instead of StackOverflow.
→ More replies (5)
8
Dec 11 '22
So many people praise ChatGPT that I found it suspicious. I asked it a bunch of basic stuff like data conversions, methods that do XYZ (simple things) and overall it did provide correct responses. As soon as I got into less known things / more advanced code it would often make up absolute bullshit even when telling it to use a specific nuget. It would use non existent methods/classes/services. It would make up different fake code every time it was asked the exact same question. Be careful as it is 100% confident even when it writes absolute bullshit.
→ More replies (2)6
u/cdsmith Dec 11 '22
Praising it in what way?
Just to be clear, ChatGPT is obviously marked as a research project, shared to get feedback about it from the broader community. I will happily praise it for being an extremely impressive research project. I have even found it useful for talking things out and connecting ideas in ways I didn't anticipate.
I don't know anyone at all, though, praising it as a reliable source of information. If you do know these people, you should obviously ignore them, because they are clueless.
→ More replies (8)
6
u/lovebes Dec 10 '22
What happens when GPT4 starts studying on contents written by GPT3? Feedback loop of ML generated text learning on ML created text? Kinda like a Mad Cow Disease in AI hehe
6
u/moonsun1987 Dec 11 '22
Good! If I wanted automated answers, I can ask the automated system myself.
57
Dec 10 '22
They had to ban it because ChadGPT's answers are nicer than SullyB with 42,069 nerd points telling you to just read the documentation.
37
→ More replies (1)9
u/amroamroamro Dec 10 '22
so you should just take SullyB's answer and pass it through ChatGPT to rewrite it in a nicer tone, basically "say RTFM in a nice way"
19
14
u/devraj7 Dec 10 '22
It's only a matter of time before ChatGPT gives more accurate and more targetted answers to developers than StackOverflow.
I would be quite worried if I were them.
11
u/ConejoSarten Dec 10 '22
I would be quite worried if I were them.
Except our job is not about answering questions in SO
→ More replies (8)2
Dec 11 '22
Our feelings are complex but can be summed as...
Panic
Awe
Denial - "I asked it 200 questions and it got something wrong, I know because I wrote the book on the field." or "I tried googling for it and found nothing so I asked CGPT and it gave me a good answer but it was still wrong so this tool is basically useless..."
For me personally I am still trying to grasp what this thing really is and its implications outside of writing code... we were already in a situation where we could believe little of what we read on the internet... now what?
26
28
u/plutoniator Dec 10 '22
If anything, stackoverflow themselves could have a machine generated answer or Q&A section, and restrict the rest of the thread to human replies.
60
u/repeating_bears Dec 10 '22
Why would they bother? If someone is happy to receive an AI answer then they can ask chatGPT directly
→ More replies (5)30
u/plutoniator Dec 10 '22
You can vote on the answer.
→ More replies (2)11
u/repeating_bears Dec 10 '22
I think you vastly overestimate the willingness of qualified humans to review AI-generated content that could well be complete gibberish. Even if there was the appetite to do that, there's not the capacity.
6
u/MachineOfScreams Dec 10 '22
Excellent. ChayGPT is âgoodâ for generating text that look like it comes from a source of deep understanding, but ultimately produces things that would make those in the know rip their hair out.
→ More replies (1)3
8
u/matthieum Dec 10 '22
Relevant XKCD: Constructive.
One day AI bots will be able to provide relevant, correct answers.
Today is not yet this day.
3
3
u/jwm3 Dec 10 '22
A few subs here just did the same thing. Gpt is a karma farmers dream. Things are going to start getting weird around here.
→ More replies (2)
3
3
u/cajmorgans Dec 11 '22
Iâm studying machine learning at university atm, we have an ethics course regarding AI and a lot of AI related issues are due to people overthrusting AIâs decisions. I can clearly see this regarding ChatGPT, when people donât understand something, they rate it as magical. Look up Clever Hans everyone
7
u/dethb0y Dec 10 '22
It seems to me that a good answer from ChatGPT should be indistinguishable from a human-generated post.
It's not like the human posts on stackoverflow are infalliable - it's given me bad (or outdated) advice before. that's just the nature of things.
→ More replies (2)
15
u/ragnarmcryan Dec 10 '22 edited Dec 11 '22
JFC folks. When will you learn. These tools arenât meant to do the job for you. Itâs meant to help you. ChatGPT is awesome. It does exactly what it says it does. I canât believe the top gilded comment on here is about how âI aSkEd FoR c++ InFo AnD iT gAvE mE tHe WrOnG aNsWeRâ. Of course it did, itâs a bot. Itâs supposed to point you in a general direction and then you use something it doesnât have: your brain.
Sometimes this world makes me angry
5
u/ClintFlindt Dec 10 '22
I agree with this. I've found it to be extremely useful in discussing philosophical questions, as well as generating ideas for dungeons and dragons games.
It even straight out tells you that it doesn't know the difference between truthful and fals information, or that it doesn't know if it's right or wrong since it's you know it a non sentient computer program. It isn't even a machine.
→ More replies (1)→ More replies (4)2
4
u/hackers238 Dec 10 '22
Can someone just write a browser plug-in that asks ChatGPT via API when youâre on any stack overflow page? Just have it had the title and tags of the post, and include it as an answer.
6
Dec 10 '22
Ok, but a lot of people are just using ChatGPT and never going to StackExchange at all
→ More replies (2)
2
u/thedancingpanda Dec 10 '22
I had a side project a while back that was basically alerts for anything. Like you could just type "alert me when the new game of thrones book is released", and it would just poll the Internet periodically and send you a text when it happened.
The problem I eventually came across is it might be impossible to programmatically tell if an arbitrary statement is true or false. It requires trusted sources, which you don't have enough of. Kinda gave up on the idea after that.
OpenGPT might have the same issue. It's just writing something that reads like someone who is correct would write. But telling if the things it's writing are actually correct might be beyond what is possible. Or maybe someone figures out that problem
2
2
u/os12 Dec 10 '22
Well, it will be getting progressively more and more difficult to detect answers from ChatGPT (and friends). So, will they try to deploy their own model to rank/predict?
2
2
u/jgerrish Dec 10 '22 edited Dec 10 '22
So begins the arms race. Which will spill into other technical areas.
Here's to this generation's TRW, building the equivalent of ChatGPT Vela detection systems.
And then at the end of that, START, right?
Sorry for the military metaphors, I'm a creature of my environment.
2
u/Yekab0f Dec 10 '22
This is terrible news... how else am I supposed to farm upvotes
Do you think I know anything about coding.
2
u/ImMrSneezyAchoo Dec 10 '22
Hopefully the reputation system on stack exchange will really prove itself in this case. If not we are in for some trouble with "technical disinformation". As if political disinformation weren't bad enough...
2
u/KlyptoK Dec 11 '22
It would be hilarious if ChatGPT offered a paid service to verify if output looks similar to what it recently said in the past.
Create a problem and then offer a solution.
2
2
2
u/ClinchySphincter Dec 11 '22 edited Feb 25 '26
This specific post has been removed and anonymized. Whether for opsec, privacy, or to limit AI data scraping, Redact handled the deletion.
profit screw skirt waiting shocking marble plate normal paltry yam
2
2
Dec 11 '22
I see these models as keyboards like SwiftKey, only instead of spitting out words, they spit paragraphs. I don't know why anyone would rely on them without thoroughly double checking everything.
2
u/--dany-- Dec 11 '22
Iâd love to know how stack overflow knows itâs a robotâs answer? Itâll just get harder over time.
5
u/itsfuckingpizzatime Dec 11 '22
Itâs funny because ChatGPT is basically stackoverflow except it actually answers your question and doesnât make you feel like an idiot for asking.
→ More replies (2)
3
3
u/pbagel2 Dec 10 '22
I'm still seeing so many comments that are acting like this enables them to continue dismissing ai generation and stick their heads firmly in the sand and refuse to think long-term until it's too late. But it will only get better, more accurate, faster, etc. It will disrupt many existing industries and it is inevitable. So we may as well figure it out now before it's fully upon us.
→ More replies (1)
3
Dec 11 '22
Last thing we need is AI generated authoritatively incorrect answers being posted all across stackoverflow. That website is crucial for new developers and them propagating dodgy code will be a detriment to the industry as a whole. There's already some questionable answers on stack as it is, we don't need more of that!
→ More replies (1)
4
u/nicpro85 Dec 10 '22
Iâve asked it how to write a network request in swift and it did. Then I asked it if he could rewrite it using the async await syntax and it did. It might be wrong but itâs still an absolutely insane machine.
→ More replies (1)2
u/Franks2000inchTV Dec 11 '22
Was it really any better than the top Google search for the same thing?
→ More replies (1)
6
u/LloydAtkinson Dec 10 '22
It's ironic, ChatGPT has been able to solve all manner of weird and edge case code I've thrown at it that would have taken a few hours to fully write and unit test otherwise. Sure, it gets stuff wrong but a few prompts usually fixes the worst problems.
Compared to trying to post the same question with the skeleton code to Stack Overflow, the experience was like night and day. It would have been closed as a fake duplicate, or "needs more context", or some other bullshit reason a power tripping neckbeard stack overflow user comes up with.
14
u/cag8f Dec 10 '22
It's ironic, ChatGPT has been able to solve all manner of weird and edge case code I've thrown at it that would have taken a few hours to fully write and unit test otherwise. Sure, it gets stuff wrong but a few prompts usually fixes the worst problems.
For us that have never used it to do things like this, can you give some examples? Or point me to some?
→ More replies (1)16
u/itsdr00 Dec 10 '22
Can you be more specific in what you used it for that saved you time? I've tried to solve a couple problems with it, but in the end, lost time explaining myself and debugging. Still learning what works and what doesn't, though.
3
u/StickiStickman Dec 10 '22
For me, generate SVGs from a pretty complex custom JSON data format. It would at least have taken me 10H+, but I did it in 30 minutes with ChatGPT. I ended up with a 200 line function where 99% of it was by it.
→ More replies (1)→ More replies (15)4
u/CAPSLOCK_USERNAME Dec 10 '22
Sure, it gets stuff wrong but a few prompts usually fixes the worst problems.
This is the problem. It requires a knowledgeable programmer to identify what is wrong and lead it to a correct solution.
Not people with no idea copy-pasting the raw output trying to farm stackoverflow points.
4
u/sunplaysbass Dec 10 '22
Technology punching itself
42
u/tolos Dec 10 '22
They make clear the problem is (1) that the answers are wrong. This is not a new problem. Anyone can sign up for SO and post a bad answer. But the answers are (2) convincing, which is also not a new problem. It's been happening before the internet. Speak authoritatively and address concerns and people will believe you. The final part is that (3) downvotes/moderators can't keep up with bots posting convincing but incorrect answers (also not a new problem lol, SO has never kept up with moderation).
I'd like to think if an AI tool was capable of giving correct coding answers it would be allowed on SO. Or made available by a competitor that understands that tools make things easier ...
13
u/rwilcox Dec 10 '22
Well and Stackoverflow karma farming has a bit of a problem on SO. It involves speed, getting an answer, getting a lot of upvotes from people browsing, maybe getting it accepted as the answer, kinda in that order. But this is a very low percentage game.
Now normally it takes a fairly long time (anywhere from 5-30 minutes) to answer a SO question, which puts a cap on the amount of shots you can take, and thus the amount of karma you can farm.
But ChatGPT answers mean one could spam answers that seem correct (even if they introduce other problems or arenât quite right) very quickly. Copy/paste 30 seconds move on to the next. Youâre probably not really helping people, youâre spamming SOâs systems and youâre introduced an arms race: the only way to hit 100,000 rep on SO (or whatever number will look good on a resume) is to use an AI. (Currently the only way is to get lucky with a new topic, framework or language)
→ More replies (1)→ More replies (2)7
1
1
1
u/m4xc4v413r4 Dec 10 '22
GPT gives amazing answers that are also amazingly wrong, they just look amazing. So this is a good idea.
1
Dec 10 '22
I wonder how this will work?
StackOverview mods: "ChatGPT - did you create this reply?"
ChatGPT: "It looks like a thoughtful, intelligent, response."
StackOverview mods: "So that's a yes?"
ChatGPT: "Let me conduct a survey on Reddit ..."
1
1
u/Whiispard Dec 10 '22
if someday in future ,or right now, I got access to an AI which can identify which text is written by ChatGPT and I scan this comment section, and find out that 80% or maybe everyone except mine is written by ChatGPT. I may just doubt the software but who knows if it was actually real?
how do you know if someone is arguing against ChatGPT, spreading hatred against it, is not written by bot?
(and no,no! my answer wasn't written by ChatGPT,unlike common ChatGPT arguments)
1
u/PrestigiousDino Dec 10 '22
If it starts contributing to the source material it trains on, is it inbreeding? I propose we call it digital inbreeding.
1
u/fusionhahh Dec 10 '22
If they haven't banned it, people would post a lot more question like here's lines of code about a topic I do not intend to learn and AI generated. Solve the exception in this.
1
u/baggier Dec 10 '22
chatgtp, why are you banned from Stackoverflow?
I am not a person, but rather a large language model trained by OpenAI. I do not have the ability to create accounts or participate in online forums such as Stackoverflow. My purpose is to assist users in generating human-like text based on the input provided to me. I am not capable of being banned from anything because I am not a physical entity and do not have the ability to engage in online activities.
1
1
u/animen_z Dec 10 '22
This is a great move from StackOverflow. I asked it to write a class implementation using pointers since I wasn't all too well versed with it. The answer it gave looked sound and it seemed to answer all my questions as to why it implemented certain functions in a certain way.
I copy the code, run it, and get a segmentation fault đ
1
u/ivancea Dec 10 '22
I mean, I'd temporary ban anybody repeatedly posting wrong answers, just it. ChatGPT is just a tool after all
→ More replies (2)
1
u/me7e Dec 11 '22
That's the first time I look for what is ChatGPT, "for some reason" google doesn't return anything.
1
1
u/djuvinall97 Dec 11 '22
I've only dabbled into ChatGPT but I've had a few scripting questions that were answered by me using very inefficient searched engine wording and the answers were very clear and consise, like top comment, but for me they were actually correct.
I don't think this will take the role of developers but will definitely be a very useful and powerful tool in the devs arsenal.
1
u/ibnjay20 Dec 11 '22
I asked it probability question. Where you find n, sample size for a given margin of error and confidence interval. Itâs explanation was right but totally wrong answer. I think my job is safe for now.
1
u/monkeyman512 Dec 11 '22
I think the important thing to remember is that the model isn't really generating new information. It's at most mashing up multiple sources of human generated data with no capacity for judging the quality of the source.
3.9k
u/blind3rdeye Dec 10 '22
I was looking for some C++ technical info earlier today. I couldn't find it on StackOverflow, so I thought I might try asking ChatGPT. The answer it gave was very clear and it addressed my question exactly as I'd hoped. I thought it was great. A quick and clear answer to my question...
Unfortunately, it later turned out that despite the ChatGPT answer being very clear and unambiguous, it was also totally wrong. So I'm glad it has been banned from StackOverflow. I can imagine it quickly attracting a lot of upvotes and final-accepts for its clear and authoritative writing style - but it cannot be trusted.