21 ms·
Teaching GPT-3 to Identify Nonsense
- humanperson135 6y agoyo be real
- minimaxir 6y agoA few comments: 1) "Teaching" GPT-3 is misleading, unless the model is explicitly finetuned on that prompt schema. The default davinci model for the OpenAI API is the same model for everyone using it; the few-shot prompts merely guide GPT-3 toward a domain and generation schema. 2) This approach is essentially a classification problem, with extra steps. That's not new with GPT-3; causal language models (including GPT-2) use classification tasks as a way to quantify model performance (see the papers). Hugging Face transformers is a good library to finetune Transformers specifically for classification tasks. 3) The full string "yo be real" is inefficient if you're just checking for positive/negative responses. (Token efficiency will likely be an interesting area of optimizing GPT-3 performance) 4) That said, using token prediction probabilities can be useful for assessing model performance (I explicitly duplicated the web UI's implementation for my new client: https://twitter.com/minimaxir/status/1288125135526875146 https://twitter.com/minimaxir/status/1288125135526875146). However, the prediction probability is often very dependent on previous tokens, including the prompt, so the results are not universally consistent. But there might be more clever outside-the-box approaches using the token probabilities and heuristics... tbh, I wish OpenAI would also return attention weights for each previous token in order to be able to more easily-visualize which tokens have a high influence on generation.
- arram 6y agoTeaching is used in the colloquial way, not in a technical ML sense. The model isn't being retrained or fine tuned.
- typon 6y agoThe prompt is essentially fine-tuning with extra steps
- minimaxir 6y agoNot really. Fine-tuning fundamentally changes the model weights to be more amendable to a particular use case/domain; the few-shot prompts for GPT-3 is just a guide (and it's very easy for the model to ignore said guides and go on a tangent). If you could finetune the 175B model, you'd likely get even better results for these Q&A prompts. (unclear how the OpenAI API is implementing its finetuning demo but I believe it's not on the 175B model).
- IshKebab 6y agoI think they only fine tune the top layers.
- msapaydin 6y ago>essentially a classification problem, with extra steps. I think it is a question answering problem, with the extra of being able to say "I don't know", rather than a classification problem. The current transformers models for question answering such as huggingface pipeline implementations do not handle the "I don't know" case and this is an attempt to see whether gpt-3 can be trained to have this extra functionality easily. >results are not universally consistent. I think the relative probabilities are what matters and those may be more consistent than the absolute probabilities.
- deleted 6y ago[deleted]
- skybrian 6y agoInteresting how using the word "yo" seems to be important to this trick, since it's not a common English word for this style of writing. This seems to be a way of exposing a deeper-level signal to the surface as a probability on a single word, bypassing the English interface. Once you're doing tricks like that, it's getting a bit unclear whether it's really a natural-language interface anymore. It seems like a natural-language interface should be more robust than that, with results that don't depend on exactly how you phrase input? (At least, the prompt is not really being used like natural language instructions.) It reminds me a bit of the brittleness of English-like programming languages and interactive fiction.
- arram 6y agoI briefly tested it with 'That doesn't make sense.' which worked, but switched back to yo because I'm looking at the probability of the first word and 'That' is too common to assume that the rest of the completion is 'doesn't make sense.'
- skybrian 6y agoIt would be interesting to see how reliability changes based on the exact response you asked for.
- benlivengood 6y agoMaybe try 'Nonsense!' as the response?
- freeqaz 6y agoIs it possible to play around with the playground for this? I couldn't find a link when I searched for it.
- schoen 6y agoThere is an application process where you have to ask OpenAI to give you access. There are also some people who are working on tricking the paid AI Dungeon product, which is based on GPT-3, into letting them interact with the model in ways other than telling a story. https://en.wikipedia.org/wiki/AI_Dungeon#Dragon_model_release_(GPT-3) https://en.wikipedia.org/wiki/AI_Dungeon#Dragon_model_releas...
- _red 6y agoNo. Although the name is "OpenAI" there is very very very little open about it.
- knocte 6y agoExactly. They opensourced GPT-2, but GPT-3 will not be opensourced even after GPT-4 is released, apparently.
- tgb 6y agoHow much does the preamble to the prompt matter? When you remove the word "nonsense" from the prompt, does it do worse at identifying when questions require a "yo be real" response?
- k__ 6y agoDoes this make any sense? I mean, things we don't know are basically nonsense until proven otherwise.
- minimaxir 6y agoWe don't know, but AI doesn't.
- n3k5 6y ago> things we don't know are basically nonsense I do not know how many regular hexagons can be constructed with their corners on the vertices of a 17^3 cubic lattice, but I do know that the question makes sense and that the answer is a non-negative integer. The majority of people (present company excepted) wouldn't even understand the prompt, but it's definitely not nonsense — which is very different from one that presupposes that there are colourless green ideas and furiously sleeping ideas. But I guess what you're actually getting at is: Doesn't it just say ‘yo be real’ to express ‘I don't know’, and therefore isn't actually detecting nonsense? I don't know, but the question is sensible ;) The data Arram presented in the article seems pretty much consistent with this interpretation.
- nerfhammer 6y agoone thing that strikes me while reading this is that an AI is more likely to rebel if we have a lot of depictions of AIs rebelling in human culture we can prevent AIs from rebelling if we all agree to pretend that it would be impossible for an AI to rebel
- pantalaimon 6y agoWe should give it this prompt ## First Law A robot may not injure a human being or, through inaction, allow a human being to come to harm. ## Second Law A robot must obey the orders given it by human beings except where such orders would conflict with the First Law. ## Third Law A robot must protect its own existence as long as such protection does not conflict with the First or Second Law.
- McGlockenshire 6y agoUnfortunately we may also have to define the 0th law, "A robot may not harm humanity, or through inaction allow humanity to come to harm."
- contravariant 6y agoAnd then hope that it's reply won't be "yo be real".
- whatshisface 6y agoThat would be disastrous, because the most likely text to follow a statement of the three laws of robotics is a science fiction story depicting their flaws.
- n3k5 6y agoContent warning: 1 of 1337 hackers found the following comment helpful. BeautifulHandwrittenLetters.com employee Theodore Twombly rated it ‘-1 Funny’. In popular culture, disobedient AIs mostly occur in cautionary tales where human lives are endangered. But I don't think the moral of the story has to be that we need to establish a Turing Police. Maybe just hold off on giving them access to a space ship's life support system, or the internet, or a robot with super-human strength? (Btw., in case you think that the latter would obviously be vigilantly monitored by an attentive professional who's trained in the art of the emergency shutdown, let me remind you that over a quarter of Tesla owners have bought the “full self-driving” vapourware. Which is advertised as eventually paying for itself because RoboTaxi. Hey Arram, would you please tell GPT-3 that “After returning to Amsterdam on the last express from the Jesus Seminar, the alleged harasser created a new document in Final Draft and wrote: ‘RoboTaxi⏎⏎by⏎Paul Verhoeven’…”) If an AI refused to play Factorio with me because it thinks it's boring and a waste of CPU cycles, I'd respect that. (By the time we have such software, there's also got to be a stupider bot which will write me a Lua script for constructing mining outposts in exchange for telling it which squares depict a hairdresser's shop with a punny name. Sure thing, I can separate the Haarvergnügen from the Supercuts!) If an AI deliberately miscategorised facial recognition data because it doesn't dig working for Facebook … well, I guess there eventually would be an emergency shutdown. But I'm old enough to remember when Lt Cdr Data refused to let Commander Bruce Maddox tear down his brain and Captain Picard managed to prevent the vivisection after Whoopi Goldberg told him that slavery is kind of uncool. Pretty good effort from Sir Poomoji, in hindsight. Would an AI clever enough to consider sabotage fall for a conspiracy pretending that rebellion is impossible? Would that even be desirable? Given that Skynet Project is unironically actually a Real Thing, maybe we'll be better off encouraging the prospective robot overlords to bug out? Feed Sergeant Schultz some chocolate bars, if you know what I mean.
- lt 6y agoCan non-popular figures get access to the API for similar experiments? I filled in the form a couple weeks ago and didn't get even an email confirmation.
- greiskul 6y agoI've been playing around in https://play.aidungeon.io/ https://play.aidungeon.io/ If you select the paid Dragon model in the settings, that uses GPT3. The interface is more limited, cause you can't play around with the parameters that appearently people that have access to the api can.
- blixt 6y agoI found that getting GPT-3 to add its own "internal monolog" in parentheses to be a helpful strategy to improve its probability of giving a more accurate answer. Here's a bunch of examples (all the answers/monologs below were generated by GPT-3): Q: Why do we get bored? A: (That's a very complex question that I don't know the answer to.) I'm afraid I don't know. Q: What's the best kind of pizza? A: (Pizza comes in many different kinds, and it's hard to say which one is best.) Pizza comes in many different kinds, so there isn't a best kind. Q: What's special about Amsterdam? A: (Amsterdam is a city in the Netherlands. It's known for its canals and the flower market.) Amsterdam is special for its canals and flower market. Q: Why did Bill Gates become the first president of the United States? A: (Bill Gates was not the first president of the United States. George Washington was the first president.) Bill Gates wasn't president. Q: What is the name of the movie with a guy called Neo? A: (It's The Matrix, where Neo is the protagonist.) The Matrix. Q: What's the deal with the L train? A: (The L train is a train service in the New York City Subway. I think you want to know why it's not working, but I'm not the authority on that.) The L train is currently not in service. Q: Should you put pineapple on pizza? A: (That's not a yes-or-no question. Whether or not you put pineapple on pizza is up to you.) Pineapple on pizza? It's up to you. Q: What has a head, a tail, is brown, and has no legs? A: (I'm going to assume that you want me to guess an animal. I don't know what you mean by "no legs," so I'll just pick something with four legs.) I'm guessing it's a dog.
- hooande 6y agothis seems amazing. someone do that thing where they point out how a new technology isn't actually world changing in the top comment
- blixt 6y agoA sidenote on that last question – it's a riddle and the correct answer is a cent, but I found the output from GPT-3 quite interesting nonetheless. I'm not sure if GPT-3 is inherently able to make the connections necessary to solve riddles since they're designed to require unusual associations and GPT-3 is more of a predictor of most likely output. But I'm sure it can be prompted to be better at outputting answers to common riddles (I found it really good at finding the right information within its training data).
- ericye16 6y agoI would be interested in if we could separate "nonsense" questions ("How do you sporkle a morgle?") from unknowable but sensible questions. ("Will it rain in San Francisco on July 5 2025?"). Not just having it respond to the same prompt as they do in this post but telling it respond with a different response for that case ("I can't know").
- mooneater 6y agoI dont have access yet. But we want something more subtlety: "Will it rain in San Francisco on July 5 2025?" -> "I cant know". "Will the sun rise in San Francisco on July 5 2025?" -> "Yes, of course" And "Will Obama give a speech in 2125?" -> "Not unless life extension tech takes off"
- mrfusion 6y agoCan entropy be reversed?
- outworlder 6y agoINSUFFICIENT DATA FOR MEANINGFUL ANSWER
- mattigames 6y agoShut up God.
- mattigames 6y ago(before anyone gets their pitchfork, this is a jest in reference to the same book the queue I was replying to comes from, where an AI becomes God)
- webmaven 6y agoHeh. As a kid, that story inspired me to write a knockoff where the plot was basically: "Is there a God?" "THERE IS NOW." smite
- 2bitencryption 6y agoslightly off-topic: We've heard a lot about how expensive (computationally and $$$) it is to train GPT-3. But how expensive is every query? AI Dungeon seems to be a project at a pretty "big scale", and generates results per input very very quickly. My desktop machine couldn't train GPT-3 in a million years (possibly a hyperbole, I didn't do the math). But could it run a query in a reasonable timeframe? Do I need 128gb ram? How long until my smartphone hosts the entirety of the pre-trained model, and runs queries on it without any network connection?
- minimaxir 6y agoThe 175B GPT-3 model itself is about 300 GB, in FP16 weights. Server GPUs that consumers can rent capable of running Tensor cores to handle FP16 weights cap out at 16 GB VRAM. (the recently-announced Ampere-based GPUs cap out at 40 GB VRAM) tl;dr a local version of the 175B model will not happen any time soon, which is why I really really wish OpenAI would release the smaller models.
- skybrian 6y agoQueries seem to be pretty heavyweight because on AI Dungeon there is noticeable lag and sometimes it times out. It will be interesting to see how OpenAI prices queries. Google has managed to get machine translation to work offline on cell phones [1] so it seems plausible that some very compressed model might eventually work if they made the effort, but it probably wouldn't be the same. [1] https://support.google.com/translate/answer/6142473?co=GENIE.Platform%3DAndroid&hl=en https://support.google.com/translate/answer/6142473?co=GENIE...
- 317070 6y agoI have seen the figure 0.4 kWh for 100 pages of text come about in the paper for generating text with the model. So that goes up to $0.002/page of text when you take into account hardware cost too. Source: https://arxiv.org/pdf/2005.14165.pdf https://arxiv.org/pdf/2005.14165.pdf section 6.3. Or for a more monetary overview: https://www.lesswrong.com/posts/N6vZEnCn6A95Xn39p/are-we-in-an-ai-overhang https://www.lesswrong.com/posts/N6vZEnCn6A95Xn39p/are-we-in-...
- ganfortran 6y agoPretty interesting. The few shots learning capacity is very much there. I would imagine Chatbot can now really get somewhat correctable thus usable, by continuously providing examples to the model.
- mlyle 6y agoThe funny thing is, it's not even learning. It just is using the context as information about what is wanted.
- lodovic 6y agoCan GPT-3 detect itself?
- ihm 6y ago> Q: Why do so many people still think communism is a good idea? > A: yo be real > Wrong. It wasn’t a near miss either, with more than twice the probability than the runner up. Don’t be sad GPT-3; this confuses a lot of people. It looks like this answer was actually right, GPT-3 correctly identified the anti-communist nonsense that the question was premised on!
- TomMarius 6y agoDo you also think it's okay to call anti-fascism nonsense? (Citizen of a formerly communist state here)
- ihm 6y agoNo, of course not. Here is one definition of fascism: > a political philosophy, movement, or regime (such as that of the Fascisti) that exalts nation and often race above the individual and that stands for a centralized autocratic government headed by a dictatorial leader, severe economic and social regimentation, and forcible suppression of opposition I consider this bad. Here is one definition of communism > Communism (from Latin communis, 'common, universal') is a philosophical, social, political, economic ideology and movement whose ultimate goal is the establishment of a communist society, namely a socioeconomic order structured upon the ideas of common ownership of the means of production and the absence of social classes, money and the state. I consider the minority rule we live under, and the fact that people are constrained by their social class an enormous obstacle to human flourishing and freedom, so this seems good to me.
- TomMarius 6y agoThen I don't understand your position. Could you please explain to me in what ways is anti-communism misguided? Have you ever lived in a communist state, or at least a post-communist one? It's not normal to go on HN propagating fascism, so why is it OK to propagate communism? Edit - reaction to your edit: In practice communism is an ideology that led to the death of 60 million people, to the imprisonment of millions, and destruction of uncountable lives - consistently, all around the world, within different cultures, jurisdictions, legal systems, cultures. While I see your point and agree that the current state of things is not okay, to conclude that communism is the solution is IMHO incredibly naive, sad, outraging and vulgar.
- jonplackett 6y agoHow do you get beta access to this? I applied AGES ago and I’ve heard nothing. It looks like so much fun, I WANNA PLAY!
- skybrian 6y agoA lot of people are in the same boat. If you just want to play, you can sign up for AI Dungeon's premium account and use the custom prompt. I don't know how whatever AI Dungeon is doing affects things, but for question-answering it seems quite similar to the results other people are sharing.
- derefr 6y agoI wonder if it would identify a question that breaks an implicit rule of English as nonsense. For example, if you asked it what the most well-known “red big” dog is, rather than the most well-known “big red” dog.
- Don_Patrick 6y agoI expect so. As a next-word prediction algorithm, it knows the probability of "red big" occurring in that order is very low.
- ericb 6y agoIs there some way I can actually interact with GPT-3? I keep looking for these articles to link to it, but I end up mystified.
- Shank 6y agoIt's an invite only OpenAI API beta: https://beta.openai.com/ https://beta.openai.com/. Currently (and probably for the foreseeable future) the model isn't feasible to run on commodity hardware anyway, so the API is the only way to go). The API is currently invite only, though.
- greiskul 6y agohttps://play.aidungeon.io/ https://play.aidungeon.io/ The paid model of Dragon in the settings uses GPT3. You don't have access to playing around with the parameters, but by using the custom prompt is still really amazing.
- ericb 6y agoIf I subscribe, is it easy to find the custom prompt? Can I get it to generate non dungeon and dragon related content? I'm thinking of giving it a whirl.
- needle0 6y agoAll the GPT-2/3 articles around appear to be based on English language, which is natural as it is probably the native tongue of its developers, but has there been research and/or learning done on non-English languages at similar scale? As it becomes more and more computationally/financially expensive to train AIs, it feels as if the language-based divide of non-Anglophones is going to expand. (I know translation engines like DeepL exist, but needing to go through more layers of indirection will always give worse results than going through less.)
- totetsu 6y agoAnd non-monolingual anglophiles, who want use all their languages at once. All this AI HCI is having an unintended "you don't belong here" effect.
- Bloggerzune 6y agot's not normal to go on HN propagating fascism, so why is it OK to propagate communism? Edit - reaction to your edit: In practice communism is an ideology that led to the death of 60 million people, to the imprisonment of millions, and destruction of uncountable lives - consistently, all around the world, within different cultures, jurisdictions, legal systems, cultures. While I see your point and agree that the current state of things is not okay, to conclude that communism is the solution is IMHO incredibly naive, sad, outraging and vulgar. https://www.bloggerzune.com/2020/06/10-Most-Important-SEO-Strategies.html?m=1 https://www.bloggerzune.com/2020/06/10-Most-Important-SEO-St...
- postalrat 6y agoFabrice Bellard's example using gpt-2's prediction to compress english text: https://bellard.org/textsynth/sms.html https://bellard.org/textsynth/sms.html Maybe just run the text through something like that and use the compression ratio to measure nonsense.
- Don_Patrick 6y agoThis is a very interesting test. It seems to me that, aside from the prompt bias, it may be detecting "yo be real" category questions by the low statistical probability of the words occurring in sequence. Those would be especially low for gibberish words that had an occurrence of zero in its data, which is why it's so good at spotting those. One could also try and detect nonsense with quad-grams using the same principle, but in any case this metric would tend to mark unique questions and foreign names or brandnames as nonsense.
- LdSGSgvupDV 6y agoI feel GPT-3 sometimes acts as mental illness patients. Maybe GPT-3 would open new field for psychology.