This is not a good look for what is the de facto go-to (from my perspective) reference guide for web development. I’m not too crazy about MDN, but I expected better from them.
They could for example only use LLM's to match query's and use as source for responses like many other -docs as AI- implementations do, wondering why Mozilla wouldn't do exactly the same. as Hallucinations are a normal occurance if not doing so.
That's a fairer comparison that I read it as. I'd say they're more like a pharmacy, usually dispensing medicine. But we don't really know how half the medicine works, and sometimes it hurts people.
Oh, please. Have you never read the little insert that's packed in with all prescription medicine? Whether the mechanism is fully understood or not, it's at least been studied and demonstrated to have some benefit, and has _specific_ warnings about the ways it's been seen to harm people and how often.
Unless you're referring to the scam-filled supplements aisle, in which case I agree wholeheartedly with your comparison.
Your own links demonstrate the fundamental difference. The side effects have been studied and can be identified. I'm at this very moment taking a break from a medication because I was able to recognize a severe side effect that came up. I can't recognize when an LLM has generated a nonsensical piece of technical documentation; if I could, I wouldn't need to use it in the first place.
The side effects of incompatible code are similar to the side effects of incompatible medication. Thanks to the identified undesirable effects, you usually identify the problem and resolve the issue with other resources. Occasionally the problem is more severe or persists unidentified. We should definitely be working to minimize these effects and prevent them where possible, but that doesn’t mean we stop trying/utilizing medicine. These are honestly just all the same arguments used against Wikipedia.
- “Incompatible code”? What does this even mean? “Incompatible” with what?
- Have you actually read the examples in the linked github issue? What “undesirable effect” are you able to identify when an LLM tells you that a JS function simply doesn’t exist? Or when something fails subtly enough that the code you wrote based on the LLM’s advice isn’t the obvious culprit? Do you do much debugging?
- Wikipedia requires references, while this LLM directly contradicts the one data source that it’s meant to help explain. Failing to see the comparison.
If a medication is incompatible with a person's specific biology, they don’t see improvement (or their health declines). If a function is described incorrectly, you won’t see improved functionality (or you’ll see bugs). It was incompatible with the syntax/compiler/the rest of the code.
Though this one won't, LLMs will cite references if asked. They’ll also provide step-by-step rationalization (though they don’t think in that way). Just like Wikipedia, you still have to check those references to verify.
> If a medication is incompatible with a person's specific biology, they don’t see improvement (or their health declines).
And the specific ways that their health might decline have been studied, a list of which is included with every package of the medicine. Maybe you even get regular bloodwork to check for the specific side effects this medicine’s been seen to cause.
> If a function is described incorrectly, you won’t see improved functionality (or you’ll see bugs).
Hopefully! Again, how much development/debugging do you do on a daily basis? Because real developers don't accept the notion that it's ok for bugs to occur as a result of following reference documentation.
It’s just a feature that explains a web platform doc using LLMs.
They can be inaccurate sometimes, but as long as that’s clear to the end user (in this case, developers) I don’t think that’s a problem. Heck, many of us do this day-to-day with ChatGPT.
In this case, the sin was not making the potential for inaccuracies clear enough.
Im pretty sure they use a vector storage database against their docs/resources so when you query they can just parse those sources and produce a free hallucination response to it.
No need to make things up if you have the sources anyways.
The linked bug report has four examples of it being wrong. And the bug reporter mentions there's no workflow to submit corrections.
Also hallutination was probably the wrong word to use for LLMs being incorrect since it might imply they could be correct if they would only just focus on the right input data rather than, say, simply not understanding complex technical concents, but I guess that ship has sailed.
Seeing a lot of it going on in healthcare right now, especially healthcare startups. Wonder how soon regulators will step in and start stomping down on it... it usually takes several years to a decade for any federal rule to be issued so startups may make it through long enough to turn the bag over to someone else.
that's pretty nice although I really don't like how it puts a value judgement on everything. Characterizing things in a way that's not just "good(-er) and bad(-er)" would be nice.
For instance, on the "pornhub" one they put in red that the service can monitor your "private" messages. I can reverse the value of that: with the problems of sex trafficking, underage exploitation and other types of crime that could happen there, we should be happy the company is dedicated to doing that. All of those red items in fact look like things I've got no problem with there.
Is this being driven by good intentions? It looks like they are jamming the latest AI hotness into a feature without taking much time at all to think it through or implement things well.
You've somehow internalized something as "obvious to everyone" that's actually very wrong and dangerous about AI. Of course the AI is lying. Or, perhaps a better term would be "bullshitting", defined as "sounding convincing while having no regard for the truth". By that definition, bullshitting is all LLMs ever do.
This is a good point. The problem is that most people simply don’t care about these nuances. If the AI hallucinates or is wrong, then in their eyes it is lying.
It doesn’t matter if that opinion is wrong because its still the opinion that matters.
But MDN's "AI Explain" is just straight LLM output, right? It's neither generative (LLMs are transformers, not GANNs, right?) nor rules-based: it's predictive. We need that too. But not for technical documentation! Not on its own!
Aye, I agree this sounds like a strange and ill-fitting implementation. And it bums me out, because the more LLMs are used incorrectly, the harder it is to get people to use them at all.
The accusation is not that AI is lying it is that MDN is, especially given they are showing it at the same level as curated source with reputation for high degree of quality without full disclosure at error rates to expect
We don’t need more garbage on our internet. MDN has been a high quality source of information forever now. This is a large step backwards. That’s the viewpoint.
Given the clear nature of GPT to simply spew things that sound “right”, why is a technically proficient organization such as this one jumping headfirst into integrating this with their products where it is clear that is not yet up to this task?
I actually think this feature would be fine if implemented better. GPT-4 is perfectly capable of accurately explaining what a short code block does if you prompt it with relevant documentation… which MDN has in abundance, but isn’t using, for some reason.
The mistakes seem to be (1) using GPT 3.5 instead because it’s cost effective, even though GPT 3.5 has severe issues with hallucination, and (2) not including context from the surrounding article into the prompt.
Also, since I assume MDN has a finite number of things that need explaining, why not let users mark an AI explanation as wrong, and submit their own corrected versions?
> Also, since I assume MDN has a finite number of things that need explaining, why not let users mark an AI explanation as wrong, and submit their own corrected versions?
I mean if you implement it well you don't really need the model. If anything it would be more effective if it was always just slightly wrong.
I can't imagine any situation where it would be acceptable. I have personally wasted hundreds of hours over the course of my career due to incorrect documentation. There are millions of programmers in the world. Incorrect documentation has surely caused hundreds of millions of hours of wasted labor, or tens of billions of dollars of economic damage. That's just the damage of wasted development time, not the harm buggy software causes users.
For me, the most obvious problem is that it’s often mixing wrong information in. I found a couple of very simple examples where it accurately explained things but anything longer tended to have multiple incorrect points
On a deeper level, though, I don’t know that it’s actually useful. I haven’t found a single example where it added anything which wasn’t present in the authored text, and the explanations tend to be very pointless mechanical descriptions which miss the larger point of why you’d want to do things. On the popover API page, for example, it had a bunch of regurgitated comments before telling me that you’d need to write a bunch of JavaScript to actually toggle popover visibility when the whole point of that API is not needing to do that. That was also interesting with the incorrect claim that it was a non-standard attribute and you’d need to implement it using a JavaScript framework like Vue.js when you think about how much code someone might write if they relied on that explanation.
This is the first time I've personally heard someone claiming anything like that, though I don't tend to do anything with LLMs (due to this bullshit factor).
Anyone who says that GPT-4 doesn't hallucinate is either clueless or an AI grifter, though I don't think GP was claiming that, just calling out that GPT-3.5 is really, really bad at it.
One came along some hours after you wrote that. Xyr reasoning was utterly foolish and dopey, and I'm not going to point xem out; merely observe that even there there wasn't unanimity.
Interestingly, there are more negative comments on Hacker News than on the bug discussion. This probably tells something about the audiences of MDN bug commenters and Hacker News readers.
IMO "lying" implies intent, and "MDN" misses that it's specifically an LLM "AI help" assistant that most people won't yet be aware of.
From the title I was thinking along the lines of MDN automatically swapping out an article on encryption to falsely claim a function doesn't exist depending on country to comply with local laws, for example.
Even if the AI didn't make stuff up, it's unclear to me what value it adds over...
- The existing human edited text already on the page
- The playground to run the code in question
- One of the many existing autocomplete / static analysis tools for HTML / CSS / JS out there. If you want a tooltip explaining what the second argument to a built in JS function in a code snippet does, this is a solved problem!
Hey ChatGPT, please generate a Firefox Corp-style apology for this snafu... Be sure to use some bullshit blah blah for our original aim of wanting to enhance user experience and listening to the users' feedback, and some more bullshit blah blah about doing better in the future.
The team was disbanded a few years ago, which led to the creation of Open Web Docs (I think it is charity, the website: https://openwebdocs.org/ ) where several former editors are still maintaining MDN content. It looks like Mozilla has rebuilt a team of developers though and is trying to extract money from MDN (ads, AI, …), though they don't contribute significantly to the content nowaday.
FWIW, OWD writes open source technical content and is not responsible for the design of MDN nor the blog, ads, or login and membership features of the site. That is done by Mozilla.
Mozilla, not OWD, is responsible for Yari, the platform behind MDN Web Docs (https://github.com/mdn/yari). The MDN blog, ads, AI and design, the MDN infrastructure, are fully owned and controlled by Mozilla.
I know some folks who work on this content and TBH it’s the folks we’d want working on this content.
No, these people write only docs. Mozilla seems to have rebuilt a dev team, after they disbanded the MDN team a couple of years ago, with the goal to extract money from the community work.
ChatGPT:
I apologize for any inconvenience caused by the recent addition of the "ai assistant" feature on the MDN website. We understand that this feature has generated misleading information, leading to confusion and frustration among users. As an AI model, I acknowledge that the generated text may contain convincing falsehoods or inaccuracies.
At Mozilla, our goal has always been to provide accurate and reliable technical information to the developer community. Unfortunately, in this instance, the introduction of the AI feature did not align with that objective. We deeply regret the impact it has had on users seeking reliable information.
Our intention with the AI assistant was to enhance the user experience by providing additional context and explanations. We wanted to create a trusted companion that would assist developers in understanding complex concepts more easily. However, we recognize that this implementation fell short of expectations and introduced more problems than solutions.
We value the feedback and concerns raised by the community, and we take them seriously. Going forward, we will reassess our approach to ensure that any new features or enhancements undergo thorough review and testing. We will prioritize human oversight, peer-review, and fact-checking to ensure the accuracy and reliability of the information presented on MDN.
Our commitment to providing a reliable resource for developers remains unwavering, and we apologize for any loss of trust this incident may have caused. We appreciate your patience as we work to rectify the situation and improve the overall user experience on MDN.
Thank you for your continued support, and we assure you that we will learn from this mistake and strive to do better in the future.
82 comments
[ 2.9 ms ] story [ 169 ms ] threadI'd say yes. Even if something is a placebo, it's ability to displace better solutions is the problem
Characterizing LLMs as placebos or "designed to produce gibberish" is inaccurate.
Unless you're referring to the scam-filled supplements aisle, in which case I agree wholeheartedly with your comparison.
- Have you actually read the examples in the linked github issue? What “undesirable effect” are you able to identify when an LLM tells you that a JS function simply doesn’t exist? Or when something fails subtly enough that the code you wrote based on the LLM’s advice isn’t the obvious culprit? Do you do much debugging?
- Wikipedia requires references, while this LLM directly contradicts the one data source that it’s meant to help explain. Failing to see the comparison.
Though this one won't, LLMs will cite references if asked. They’ll also provide step-by-step rationalization (though they don’t think in that way). Just like Wikipedia, you still have to check those references to verify.
And the specific ways that their health might decline have been studied, a list of which is included with every package of the medicine. Maybe you even get regular bloodwork to check for the specific side effects this medicine’s been seen to cause.
> If a function is described incorrectly, you won’t see improved functionality (or you’ll see bugs).
Hopefully! Again, how much development/debugging do you do on a daily basis? Because real developers don't accept the notion that it's ok for bugs to occur as a result of following reference documentation.
It’s just a feature that explains a web platform doc using LLMs.
They can be inaccurate sometimes, but as long as that’s clear to the end user (in this case, developers) I don’t think that’s a problem. Heck, many of us do this day-to-day with ChatGPT.
In this case, the sin was not making the potential for inaccuracies clear enough.
No need to make things up if you have the sources anyways.
The latter would be very different interpretation and some here would probably agree with that accusation
https://youtu.be/5yuL6PcgSgM
Also hallutination was probably the wrong word to use for LLMs being incorrect since it might imply they could be correct if they would only just focus on the right input data rather than, say, simply not understanding complex technical concents, but I guess that ship has sailed.
I completely agree and the tone of some of the comments in the issue are disproportionate to the problem.
A lot of these systems are running actually on Windows, in version that aren't supported since years.
For instance, on the "pornhub" one they put in red that the service can monitor your "private" messages. I can reverse the value of that: with the problems of sex trafficking, underage exploitation and other types of crime that could happen there, we should be happy the company is dedicated to doing that. All of those red items in fact look like things I've got no problem with there.
It may look seemingly harmless at first, even a good idea.
But you'll seed doubt. As that will erode the value of the whole site. Which was its main asset.
The submitter knows the AI isn’t lying and the submitter is being purposefully obtuse in order to drive controversy.
You've somehow internalized something as "obvious to everyone" that's actually very wrong and dangerous about AI. Of course the AI is lying. Or, perhaps a better term would be "bullshitting", defined as "sounding convincing while having no regard for the truth". By that definition, bullshitting is all LLMs ever do.
It doesn’t matter if that opinion is wrong because its still the opinion that matters.
The mistakes seem to be (1) using GPT 3.5 instead because it’s cost effective, even though GPT 3.5 has severe issues with hallucination, and (2) not including context from the surrounding article into the prompt.
Also, since I assume MDN has a finite number of things that need explaining, why not let users mark an AI explanation as wrong, and submit their own corrected versions?
I mean if you implement it well you don't really need the model. If anything it would be more effective if it was always just slightly wrong.
On a deeper level, though, I don’t know that it’s actually useful. I haven’t found a single example where it added anything which wasn’t present in the authored text, and the explanations tend to be very pointless mechanical descriptions which miss the larger point of why you’d want to do things. On the popover API page, for example, it had a bunch of regurgitated comments before telling me that you’d need to write a bunch of JavaScript to actually toggle popover visibility when the whole point of that API is not needing to do that. That was also interesting with the incorrect claim that it was a non-standard attribute and you’d need to implement it using a JavaScript framework like Vue.js when you think about how much code someone might write if they relied on that explanation.
This is the first time I've personally heard someone claiming anything like that, though I don't tend to do anything with LLMs (due to this bullshit factor).
Transformer models are capable of absurd sci-fi miracles when it comes to things that don't require truthfulness but this ain't it
Could probably build fairly successful political party off of this once-in-a-lifetime momentum. :)
Interestingly, there are more negative comments on Hacker News than on the bug discussion. This probably tells something about the audiences of MDN bug commenters and Hacker News readers.
This is not a criticism.
General intelligence is not represented by the graybeard in the corner office. At best it’s a knucklehead in the next cubicle.
Bug report: MDN's AI Explain feature generates false explanations
From the title I was thinking along the lines of MDN automatically swapping out an article on encryption to falsely claim a function doesn't exist depending on country to comply with local laws, for example.
-- https://news.ycombinator.com/newsguidelines.html
- The existing human edited text already on the page
- The playground to run the code in question
- One of the many existing autocomplete / static analysis tools for HTML / CSS / JS out there. If you want a tooltip explaining what the second argument to a built in JS function in a code snippet does, this is a solved problem!
The OWD team writes technical documentation on APIs, HTML, and JS. OWD also works on information architecture and browser compatibility data. They contribute mainly to https://github.com/mdn/content/ and https://github.com/mdn/browser-compat-data/.
Mozilla, not OWD, is responsible for Yari, the platform behind MDN Web Docs (https://github.com/mdn/yari). The MDN blog, ads, AI and design, the MDN infrastructure, are fully owned and controlled by Mozilla.
I know some folks who work on this content and TBH it’s the folks we’d want working on this content.
At Mozilla, our goal has always been to provide accurate and reliable technical information to the developer community. Unfortunately, in this instance, the introduction of the AI feature did not align with that objective. We deeply regret the impact it has had on users seeking reliable information.
Our intention with the AI assistant was to enhance the user experience by providing additional context and explanations. We wanted to create a trusted companion that would assist developers in understanding complex concepts more easily. However, we recognize that this implementation fell short of expectations and introduced more problems than solutions.
We value the feedback and concerns raised by the community, and we take them seriously. Going forward, we will reassess our approach to ensure that any new features or enhancements undergo thorough review and testing. We will prioritize human oversight, peer-review, and fact-checking to ensure the accuracy and reliability of the information presented on MDN.
Our commitment to providing a reliable resource for developers remains unwavering, and we apologize for any loss of trust this incident may have caused. We appreciate your patience as we work to rectify the situation and improve the overall user experience on MDN.
Thank you for your continued support, and we assure you that we will learn from this mistake and strive to do better in the future.
Sincerely, [Your Name] Mozilla Community Manager
https://chat.openai.com/share/2649a208-7987-4c30-9bed-0738b8...