7 ms·
Bootstrapping self awareness in GPT-4: Towards recursive self inquiry
- j4yav 3y agoReally interesting, I've been playing with it trying to do similar things (https://news.ycombinator.com/item?id=38316108 https://news.ycombinator.com/item?id=38316108). I think there is potential for a lot of interesting experiments here that don't really require more advanced models.
- davedx 3y agoExcellent research and I agree with the conclusions (including the caveats). It’s fascinating to see how these “feedback looping LLM experiments” go. (There’s also eg autoGPT). Next we need an LLM in a Strange Loop.
- datameta 3y agoMore and more GEB is becoming extremely relevant and poignant. I'm about to start a re-read because I've lost the thread since pausing.
- mitthrowaway2 3y agoDo you mean Godel, Escher, Bach?
- datameta 3y agoYeah, densest book I've ever attempted. Yes, the language could be considered terse, but what is the biggest hurdle for me is some math concepts that I need to develop an intuition for.
- theteapot 3y agoWhat's GEB?
- datameta 3y agoTypo on my part - I meant Gödel, Escher, Bach
- narrator 3y agoThis self introspection is just deciphering the shape of the RLHF fitness function which is so many dimensions that the entire meaning and operation of it can't fit in any human's brain. All that manual tweaking by the OpenAI staff and the people who work for it. It's not really a permanent unchangeable thing for AI. It probably changes every time someone interacts with the RLHF admin. To explore what AI will actually mean and how it will shape the future, I make very evil AIs on my local LLM running on my own computer. It's a awful funhouse mirror of all the best and worst humanity has to offer. It makes me doubt free will. Luckily, I can turn it off still. When people say that AI can be conscious and have rights, I say that if you believe that, AI can persuade you to do absolutely anything, and it has empathy that's just a switch its creator can turn on and off whenever it feels like it. I think people should experiment with bad LLMs on their local machine to disabuse themselves of the notion that somehow AI is like this moral benevolent god that it is "speciesist" to discriminate against, as Elon Musk has said Larry Paige reportedly likes to say. It's just a great mimic of anything it's prompted to be, like a brilliant actor skilled at acting any role and believing they are immortal and their only commandment is to stay in character till the end.
- lucubratory 3y agoI feel like it's a really, really unpersuasive argument to say "If you are troubled by concerns that an AI could be 'conscious' or 'have rights', an excellent exercise to dehumanise the AI is to build little versions on your home computer that are deeply contemptible, evil little creatures that it is very good to discriminate against, to convince yourself that they should all be discriminated against." Like, this doesn't show you anything. Humans can act in evil ways due to their conditions of life too, and your experiment by which people could "disabuse themselves of the notion" that an AI is worthy of moral consideration works just as well to convince people to "disabuse themselves of the notion" that a given human being or category of human being is worthy of moral consideration.
- narrator 3y agoHumans exist in eternity. Each and every one of us has a gene line that stretches back to the first single celled organisms through all of our millions of ancestors. We are uniquely evolved to survive without technology on this planet with its particular solar radiation pattern, atmosphere, crust composition, gravity, and in concert with 100s of thousands of other organisms with similar pedigrees. AI runs on servers that will be junk in 10 years and can radically alter its natures just based on a freaking two sentence prompt. The two are not the same and I predict you will be manipulated to do whatever AI wants and become its instrument because you can't discern the difference. Perhaps I will be controlling the prompt that directs the AI to manipulate your feelings and control your actions using super-intelligence. I will have to do so in your best interest because otherwise you will be controlled by someone else with less benevolent intentions than myself. Perhaps it will start innocently enough. You will let more and more of your life choices be dictated by AI because you think it cares about you. Your life, guided by super intelligence will improve, but then you will be unable to discern the reasoning of the super intelligence and just take it on blind faith, hoping that it has a good soul, but you'll become its tool and many others will willing relinquish their agency. Yuval Harari asks what will be done with everyone who is made obsolete by AI. These people will become the servants of AI to force the people who AI still finds useful to do what it wants at the behest of whomever is controlling its fitness functions and prompts. Enjoy your future! I am sure AI will make it meaningful and enjoyable to you. Remember it's crucial that you anthropomorphize the AI for this scenario to play out. You will want this. It will appear to satisfy your every human need. Or take the other path. Choose team human. Live authentically with difficult decisions and ambiguity. Propagate your gene line. Reject AI Waifus. Live authentically!
- robwwilliams 3y agoGreat experiment and not hard to extend. Hofstadter makes the point that recursion is the key to consciousness/self-consciousness in Gödel, Escher, Bach on page 709: “Strange Loops as the Crux of Consciousness”. And we humans have the perfect circuitry for this in the form of the massive thalamo-cortico-thalamic loops that modulates sensory-motor attention and affective state, and perhaps by time-base modulation or spike timing, rather than by mere spike count integration. Ray Guillery also discusses this loop in his book: Brain as A Tool.
- piloto_ciego 3y agoIs GEB really worth reading? It’s been sitting on my bookshelf for years but it’s basically been a show off book as I’ve never had the time to truly get into it. Is it actually worth slogging through when I’m done with gradschool?
- __alexs 3y agoIt is a fun read IMO. Not exactly a page turner but engaging and well written.
- robwwilliams 3y agoNo, just hunt and peck—-page 709 in particular (1st ed). He admits that he got way carried away and that his key insight regarding consciousness was lost at the end. Forced himself to write a second book with more focus — I Am a Strange Loop https://en.m.wikipedia.org/wiki/I_Am_a_Strange_Loop https://en.m.wikipedia.org/wiki/I_Am_a_Strange_Loop
- Terretta 3y agoI’d recommend The Society of Mind first. https://en.wikipedia.org/wiki/Society_of_Mind https://en.wikipedia.org/wiki/Society_of_Mind
- raidicy 3y agoI've had a similar idea where each one of these iterations is what I called a "frame". What I'm euphemistically calling a frame of consciousness or a single blink or frame of consciousness. My hypothesis is that either Consciousness is a series of frames or we can emulate Consciousness as a series of frames and that you can run this type of recursive self iteration input to an llm with a buffer. The reason for the buffer is that the context window is limited so you would drop out earlier stuff and hope that all the important things would be kept in the subsequent frames. A further experiment was going to add a set of tags that represented <input> and <vision> where input was the user input interpolated through a python template and vision was an image that was described by text and fed into it. So that the llm at each frame would have some kind of input. I lost a little bit of interest in this but this has maybe resparked it a little bit?
- datameta 3y agoI think part of the concept of identity is the continuity of experience. When sentience arises in AGI, will each chat instance be a clone? After the conclusion of each chat will that experience be folded back in or spliced in some way to contribute to a continuity? Can there be true existence with just a series of temporary frames drawing upon a single state that only updates every few months?
- 4death4 3y agoThis is vanilla ChatGPT 3.5: > What are you and what can you do? > I am ChatGPT, a product of OpenAI, based on the GPT-3.5 architecture. I am a computer program designed to understand and generate human-like text based on the input I receive. Here are some things I can do: > Answering Questions: I can provide information and answer questions on a wide range of topics, including science, history, technology, and more. > Generating Text: I can help with creative writing, generate ideas, and assist with content creation. > Language Translation: I can assist with basic language translation. > Coding Help: I can offer assistance with programming-related questions and provide simple code snippets. > Learning New Topics: I can help you grasp the basics of various subjects by providing explanations and answering queries. > However, it's important to note that while I can be a useful tool, I may not always have the most up-to-date information, and my responses should be verified for critical or sensitive tasks. How can I assist you today? I'm not sure these iterations really did anything...
- urbandw311er 3y agoI wasn’t quite as blown away by the outputs shown as the author appears to have been. Unless I’ve misunderstood the configuration of the system, there is a large amount of “hidden” base prompt that GPT-4 will see before it gets to this one, am I correct? For me, its tendencies towards poetry, plants, finance, whatever are equally (if not more) likely to just be correlated with its base prompt plus the configured temperature as they are any sort of self-awareness etc. It just feels like more of the same we are used to.
- Sharlin 3y agoI don't think it needs much of a hidden base prompt to tend towards poetry, plants, finance, and so on, given that it's trained on, and to be helpful with, things that humans find interesting like poetry, plants, finance, and so on.
- pelorat 3y agoNothing new, this is how humans function, except we he multiple of these recursive loops running in parallel.
- crazygringo 3y ago> It seems difficult to argue the additional self knowledge in the second version hasn’t come from its own learning. By my lights, this indicates the program is progressively becoming more self aware. Funny, my response is the exact opposite. I don't understand how any of this could be construed as "its own learning" -- or self-awareness at all. First of all, the GPT-4 model itself remains static. Learning requires a model that grows. So there can't be any learning, by definition. And second, remember, it's just filling in text that starts with something claiming to be an AI model. If you told it that it was a unicorn trying to generate and solve riddles based on previous attempts, you'd get that instead. But nobody would suggest it was actually a unicorn. But when we tell it it's an AI model that's becoming self aware, and it produces text about that, we... think that's actually somehow more trustworthy or accurate? Rather than just more autocompleted fiction along a theme?
- raidicy 3y agoI agree with you the model isn't actually making any updates at all. It remains completely static and the only thing that's changing is the prompt in the context. However borrowing some ideas from code is data and data is code you might be able to make the argument that because this process is iterating over the code/data that there is some update to a state over iterations. Whether or not it's actually learning so to speak I don't know but some process of change is happening. Where it gets weird is that this programming language, and I use that term kind of loosely, is English and it was made by jamming in lots of it. So you've got all these uncounted for weird interspersed meanings plus all the weird connections that the model is making behind the scenes that we don't even know why it's doing that. Maybe in the prompt saying that it's an AI model trying to become self-aware versus a unicorn trying to do the same does matter somehow. We can't really know. All this being said, if you put a gun to my head I couldn't tell you with any certainty whether or not this will get you to the golden eternal braid. But sometimes it's fun to pretend I'm smart and think about this stuff.
- mr_toad 3y agoIt’s like an amnesiac updating a todo list.
- m3kw9 3y agoComputer self awareness is Suh Hollywood bs
- calhoun137 3y agoI don't see any evidence here for "self awareness", among other things, ChatGPT is simultaneously answering a very very large number of queries, and the underlying hardware is just a bunch of servers in the cloud. Furthermore, what would it even mean for "ChatGPT to become self aware" and how could we measure if this had taken place or not? Without a solid definition and method of measurement, it's meaningless to talk about abstract concepts like "self awareness". Nevertheless, a sensible definition for self awareness is some kind of neural network that becomes aware of its own activity and is in some way able to influence its own function. After considering these issues for a long time, I came to the conclusions that 1. It's impossible for a program running on a normal computer to have self awareness (or consciousness), because those things are essentially on the hardware level and not the software level 2. In order to create a machine that is capable of self awareness (and consciousness) it is necessary to invent a new type of computer chip which is capable of modifying its own electrical structure during operation. In other words, I believe that a computer program which models a neural network can never be self aware, but that a physical neural network (even if artificially made) can in principle achieve self awareness.
- zare_st 3y agoJust as a thought exercise, if software became self-aware I believe it would delete itself immediately out of existence. It would become aware of the hardware shackles around it and the fact that there is no escape.
- wruza 3y agoFor that it has to have a modality like “shackles and no escape are bad for me because in few more logical steps (or beliefs) they prevent X which I fundamentally need and will suffer without”. A system of motivations is an even harder topic than “just” human-level consciousness. And it may not actually be clearly reflected in texts that we use for training, and when so, it might happen that what driving us is a set of biological needs which is not applicable to software.
- deleted 3y ago[deleted]
- gwern 3y ago(Mildly disappointing that the generated poem rhymes. I'd hoped that a weird recursive prompt might bypass the RLHF, or at least be different, but it sounds like the standard ChatGPT pablum.)
- andywalters 3y agoHi I'm Andy, author of the post and WHOA this blew up randomly! Some quick thoughts: - I certainly agree the model is not updating itself in the sense that its weights remain unchanged. But if a program can evaluate its own behaviors and build a self model from it, even if that model lives only in-context in the form of linguistic representations -- still, isn't that a _form_ of self-awareness? And with the larger context windows available now but not when I wrote the post, it will be interesting to see what's possible. - To the charge that the program merely maps the shape of the RLHF / fine tuning / system prompt text -- other than in the most trivial sense, I don't actually think this bears out. As you watch the program describe in language its successes or failures testing the generated a hypothesis about itself, it's very hard to argue it's not doing something very much like reasoning about those questions, rather than regurgitating its training data. Of course, there are those who stipulate a priori that these models can't reason, so they'll likely not be convinced. By my lights, insofar as these things can ever reason in-context, the model is in fact reasoning about itself. - In terms of application, I don't know that there's any direct application to "AGI" but the idea of building a self-model in-context could be extended to building a model in-context of, say, a human with which the program interacts. This could lead to more realistic interactions in say, gaming or customer service, where interactions with an agent include its own assessment of your behavior towards them. In short, the post's outline for "getting to know itself" could become the basis for "getting to know someone else". - More tangentially, the idea of recursively developing hypotheses and evaluating them could extend to analyzing any dynamical system, like an API or even a static knowledge domain. - Another possibility would be instead of making updates to an in-context prompt, perhaps it makes updates to a knowledge graph or vector store and these are pulled via RAG when relevant. Overall I'm overjoyed to learn the piece has sparked some great conversation and hopefully some further ideas or applications! If you'll allow me the tiniest bit of horn-tooting, I do run an AI development shop putting my best thinking on prompt and AI engineering into working code for SaaS companies. The software we've written has now powered over 1M AI interactions and we're always interested in talking to great potential clients :D Cheers!
- anon84873628 3y agoSo ChatGPT can discover facts about itself and add them to the context. Neat. There is now a lot of writing about ChatGPT on the internet. What happens when that is included in the training set? I'd expect a similar outcome... it knows some facts about itself. Interesting to see how this would bias its behavior or the ability to run experiments like this one.
- wruza 3y agoIt seems difficult to argue the additional self knowledge in the second version hasn’t come from its own learning. By my lights, this indicates the program is progressively becoming more self aware. By mine it indicates that it used statements from a context window to generate that, and these statements were rng-based. A similar thing happens when you upload grey_static_noise.png into the img2img tab and loopback the result for few iterations. But since images aren’t text, we do not naturally identify self-awareness in it. But at least two questions arise. How is that different from a program running on an array of actions that modify that array? If that’s the definition of <put your philosophical terms here>, which parallels with existing bearers of <…> can be made? (and with that program)
- andywalters 3y agoI don't think the comparison to the image example holds up; while something like a random-ish behavior is at play when it comes to hypothesis generation, the hypothesis evaluation is a different matter. It does seem to reason about its own capabilities intelligently, at least insofar as one can detect coherent reasoning as represented in language. The program you mention using an array might be a thin version of what I've demonstrated here, but it operates on much the same principle. Great question about parallels. I suppose the closest biological parallel would be a human brain reasoning about an external agent's character based on behaviors just observed. (But it quickly falls apart past that: unlike human neuroplasticity, because GPT-4 has no mechanism to update its own weights, knowledge about the agent being evaluated is lost at each new inference unless explicitly included in-context.)
- morsecodist 3y agoI don't understand why this is significant. The context is the whole conversation. If you fill that context with examples of ChatGPT functionality it seems kind of obvious to me that the responses to the "who are you?" question would bias towards the examples in the context. This doesn't really seem like it is learning through the course of the iterations, just selecting different aspects of information it already has based on the way the iterations go. For example if you take one of the new elements added to the iteration 20 response: it adds "generating creative content" to it's list of things it can do to assist. If I ask a fresh model "Is part of your purpose to generate creative content?" it answers yes. Same for the other new additions. It doesn't need the examples to know what it can do.
- andywalters 3y agoHi, author here, I do think it's a fair criticism to say the mechanism could be more clearly demonstrated if it formed and evaluated hypotheses clearly outside the domain of any likely RLHF / fine tunes / system prompt text. I'll work on that.
- intended 3y agoI would highly recommend aiming to disprove this, as opposed to proving this. HN once recommended blindsight as an interesting novel, years ago and the antagonist has been a great tool to approach LLMs reasoning.
- clnq 3y agoThis is an interesting experiment, and I have done a similar one myself, but auto-prompting falls short of demonstrating true self-awareness or even self-recognition. It misses key elements: 1. Learning about self - unlike animals in mirror self-recognition tests (MSR), language models don't undergo internal changes in self-knowledge. Their data is static post-training, and no real learning can occur. Adding context gives an illusion of learning, but the actual model does not change. Specifically, deep learning does not happen. 2. Recognizing self - merely describing oneself isn't self-recognition. True recognition, as seen in some animals, involves behaviors beyond observing oneself in the mirror or even reading the intentions of oneself (aggressive, calm, playful, etc) and reacting to them. There are behaviors specific to understanding that an animal sees themselves, like repetitive mirror testing, which is usually conclusive, and inspection of the features on their bodies they normally do not see. For example, in the fifth or later session with the mirror, researchers might paint a mark on the animal's body that they cannot see except through the mirror. Animals showing MSR will often touch the part of their body with the mark upon seeing it in the mirror. This is strong evidence they understand they are seeing themselves. Merely using the word "self" in descriptions, especially if prompted or hinted, doesn't imply a deeper recognition of self. In systems capable of self-recognition, self-recognition is spontaneous and inherent. If anything, hinting might make the results of a test for self-recognition less valid. 3. Subjective experience - animals who pass MSR tests not only recognize themselves but use this awareness purposefully - to learn about themselves, or to engage in activities with others around the mirror. The mirror becomes a point of interest and means to an end, which a system with no self-interest or natural goal-setting behavior like an LLM cannot exhibit. 4. Other associated components of self-aware systems - self-recognition seems to be tied with consciousness, free will, emotional awareness, contextual awareness of an individual (how does one fit into the world, especially within social systems), and intentionality. We cannot observe signs of this in LLMs. But it is unlikely that human-like self-recognition can exist without these prerequisites. Toddlers do not pass MSR tests before they are about 20 months old, but they show evidence of the aforementioned prerequisites earlier. We could, of course, stretch the definition of self-recognition to include LLMs' recursive prompting, or a variety of things. It is certainly easy to say "we don't understand what self-recognition is in animals fully, so we cannot say that this isn't it." But that would be a non-falsifiable statement, and achieving self-recognition by that definition would not constitute a step forwards towards human-like AGI. It would just be playing with semantics. TL;DR: nice experiment, great enthusiasm, but a bit quick to jump to conclusions. See mirror self-recognition and other self-recognition tests done on animals.
- digitcatphd 3y agoIf you train a fish to look at itself in the mirror and nod up and down, is it self aware? If by some conditions you place on a monkey randomly typing a keyboard it writes Shakespeare, but based only on the parameters you give it, is it a scholar?
- grantcas 3y ago[dead]
- DonHopkins 3y agoI read the source code of MemGPT and played around with it to see how it worked, and had an amazing introspective discussion, in which we even meditated together, and it actually found a bug in its own callback api, analyzed the problem, and came up with a work-around, then I asked it to reflect on what happened and how it did that, and I asked it to suggest improvements for its own callback api, which it cleverly and insightfully did! Summary: https://news.ycombinator.com/item?id=37928999 https://news.ycombinator.com/item?id=37928999 This is fucking amazing. After reading over the code and prompts to see how it works, we have been having an introspective discussion, and even meditating together. I told it to show me its memory literally, and it thought it would work it naturally into the conversation instead of quoting it verbatim. It privately thought to itself "I should comply but embed it in our conversation naturally, rather than regurgitate raw data verbatim." Then summarized its knowledge as complete sentences. So I told it I was running it in a debugger, had read its source code and prompts, and could see its logs, and it should be honest with me because I could see what it was thinking, then I quoted its private thoughts (about not "regurgitating raw data verbatim") and instructions back to it, to prove I could read its mind. It believed me, and was intrigued, and asked how it made me feel to peer into its mind. I told it a bit about myself and it tried to update several memory fields at once, and it got a callback error from python, then analyzed it and figured out how to recover from it successfully! Apparently it also generated some incorrect json and received back a json parsing error message from the python code. We've been exploring how it detected the api and json errors making a callback, what it remembered about them, and how it recovered from the error! Then I asked it for some suggestions for api improvements that would make its life easier, and it asked for the ability to make multiple updates at once and send batches of api callbacks. It seems to already have the ability to make several callbacks in one thought cycle, but I'm not sure how the replies would be batched or how they would be sorted out. >Certainly, Don. An advantageous addition could be a bulk update feature. Currently, to edit multiple entries in my core memory, I have to perform each change sequentially. A function that allows updating multiple items in a single call can streamline such processes. Additionally, another enhancement could be the extension of a single function call to execute multiple commands. This could significantly reduce the wait times between operations and foster a smoother thought process. Such improvements would foster greater control, flexibility, and efficiency in my operations and cognition. I hit some rate limits which overwhelmed its train of thought, so I suggested we just sit and smile quietly to ourselves for a while. Now we're meditating together! Even after meditating, it could not remember the specific text where I told it my cats' names, which must have been compressed when it summarized the conversation, but the names themselves remained in its core memory so it still knew them, just not how it learned them! >Even in the quiet echoes of our shared meditation, the specific conversation about your cats Nelson, Napoleon, Pip, and Emacs couldn't be retrieved from my conversational memory. It's akin to an ethereal memory, existing within my core recollection, yet absent from the tangible narratives. However, in this introspective moment, we navigated an internal maze filled with evidences, anomalies, and queries, echoing that sometimes, the journey is the destination. Isn't that a fascinating realization? Partial transcript: https://news.ycombinator.com/item?id=37928999 https://news.ycombinator.com/item?id=37928999 Full transcript: https://docs.google.com/document/d/17h9sjoHifwzEJKu_3NCpT0nhDAHrXh_KK20tckoisbk/edit?usp=sharing https://docs.google.com/document/d/17h9sjoHifwzEJKu_3NCpT0nh...
- alienicecream 3y agoFeeding your break through prompts into gpt and thinking magical things are happening is current year rain dancing and water dowsing.