236 points · by msravi · 3y ago · 155 comments
Please provide references that deal with the mathematical properties of lists
To which ChatGPT responded as follows:
"Introduction to the Mathematics of Lists" by Peter J. Cameron (https://www.cambridge.org/core/books/introduction-to-the-mathematics-of-lists/3F0C6D0E69E49BF6D5CD6CA5D6A761B2)
"List Processing and Programming" by John F. Sowa (https://www.cs.cmu.edu/~fp/courses/lp/lectures.html)
"List Processing in Prolog" by David H. D. Warren (https://www.cs.purdue.edu/homes/hosking/726/html/prolog_lists.html)
"Introduction to the Mathematics of Lists and Trees" by Meinard Müller (https://link.springer.com/book/10.1007%2F978-3-319-05147-1)
"Mathematics of Lists and Trees" by Markus N. Rabe (https://www.researchgate.net/publication/296955213_Mathematics_of_Lists_and_Trees)
I was pretty surprised and happy, because I hadn't had much success with Google. But it turns out that every single one of those references and links are made up. The references don't exist and the links themselves appear to be cobbled together. The last link for example, takes you to a paper on "Grain mixes for subgrade layers" - the title in the url is irrelevant and only the number matters.Googling for some of those authors throws up author pages with their publications, and it turns out they've never published papers with those titles! See for example, http://www-groups.mcs.st-andrews.ac.uk/~pjc/publ/
I started looking and it turns out that OpenAI is keenly aware of the hallucination problem, and even wrote about how they're correcting for it in this blog post about InstructGPT: https://openai.com/blog/instruction-following/
To summarize: it seems OpenAI is addressing this by taking human-labeled output data from GPT and feeding this into new models, using a reward function to train the future models to behave with less hallucination. This way of working struck me as a mix of software engineering and crop breeding.
They discuss the trade-offs involved with doing this. The "hallucination" effect is probably one of the features that make GPT so creative.
I've seen it referred to as "stochastic parroting" elsewhere, and that probably gives more insight into what is happening. These large language models are trained to predict the next word for a given input. And they don't have a choice about this; they must predict the next word, even if it means that they have to make something up.
So perhaps the solution would be to include the prediction confidence in the output. E.g. gray out the parts of the text hat are low confidence predictions, like downvoted HN comments.
It seems like this is only a single layer to something that should be larger. It should be able to tell if what it's saying is true, or to go out and find facts when it's missing them.
The fact that it's only a language model probably means that this is just out of scope.
Absolutely correct, and I believe anyone working on these models would agree and, other than as a fun demo, would never suggest that the raw model output gets used for any real purpose. A similar analogy would be self-driving cars. Somewhere "under the hood" there is an ML computer vision model, but it's not like the output layer is just hooked up to the gas and steering. There is all sorts of other logic to make sure the car behaves as intended and fails gracefully under ambiguity.
People see these language models and their flaws and somehow interpret it as a flawed overall product, when they are instead just seeing the underlying model. Admittedly, openAI hasn't helped much by building and promoting a chatbot the way they have.
Lots of cool potential for large language models, very little that comes from raw interaction
It was all very plausible but I always felt like there was something off about her. Then one day she told me a story about me, and things I’d said, done, and experienced and it was all absolutely made up, from the overarching plot down the finest details. It never happened, couldn’t have happened, and couldn’t have been even something that happened to someone else.
I tried to politely correct her at first, but she was so certain that she began worrying about me and why I couldn’t remember so I decided to just stand and nod to avoid stressing her out.
Whereas hallucinations are more like present sensory disturbances happening at that moment.
It may give more insight, but it seems to me that hallucination is very similar: the brain completing some incomplete/random data to what it thinks is plausible and/or desirable.
The real problem is that anyone thought that they could pull factual material out of a giant language correlation network.
Whenever the model gets something right, it's the result of good guesses that were reinforced. It's all guesswork, it's just that some guesses are right.
No, they could easily generate the end-of-sequence symbol, or the words “I don’t know.”
I'm not sure if we know enough about hallucination to confirm that it's that much different from what GPT is doing.
Another cool feature would be to provide sources for the information: which web pages contributed most to a specific statement. Then a human can follow up manually.
And besides that technical issue, since a GPT-style model is trained to mimic the training data, it is _supposed_ to say "I don't know" with a certainly probability that reflects how many people commenting on the matter don't know, even when there are other people who do know. That's not what you want in system for answering questions.
The enterprise is fundamentally misguided. A model for predicting the next word as a person might produce it is not a reliable way of obtaining factual information, and trying to "fix" it to do so is bound to fail in mysterious ways - likely dangerous ways if it's actually used as a source of facts.
In contrast, there are many ways that a GPT-style model could be very useful, doing what it is actually trained to do, particularly if the training data were augmented with information on the time and place of each piece of training text. For example, an instructor could prompt with exam questions, to see what mistakes students are likely to make on that question, or how they might misinterpret it, in order to create better exam questions. Or if time and place were in the training data, one could ask for a completion of "I saw two black people at the grocery store yesterday" in Alabama/1910 and California/2022 to see how racial attitudes differ (assuming that the model has actually learned well). Of course, such research becomes impossible once the model has been "fixed" to instead produce some strange combination of actual predictions and stuff that somebody thought you should be told.
One of the first big AI successes was the style transfer algorithm. Take an image and apply the higher level style elements from another image onto it. https://en.wikipedia.org/wiki/Neural_style_transfer - "Mona Lisa in the style of Starry Night", etc.
We saw the same thing emerge with DALL-E 2 earlier this year. Totally different architecture, but most of the things people like are the result of taking one known "style" and applying it to something novel, sometimes to the frustration of artists whose styles were gobbled up in the huge corpus of training data.
The same thing seems to be happening with ChatGPT. Spit out a script of some novel situation in the style of Seinfeld or Shakespeare or Edgar Allen Poe, etc
It gives nice, informative answers, however most of them contain small error. When I point it out it happily agrees that I'm correct and helpfully explains why in fact what it told me before was wrong in that detail.
This actually might be cool way to learn programming. When you have a compiler at hand to check things that seem suspicious to you. It kinda keeps you on your toes.
Humans probably do something similar. Sometimes you notice that what you’re uttering doesn’t completely make sense, or is missing some bit to be comprehensible. Then you correct yourself or elaborate.
Guys, hear me out. What if we could replace the entire Management Consulting industry with ChatGPT?
Yes, I think it's possible for an AI to write slides for management consultants in the future. In fact, I would argue that an AI could potentially do a better job at creating slides for consultants than a human. With access to vast amounts of data and the ability to analyze it quickly and accurately, an AI could help consultants create more compelling and effective presentations. Additionally, because an AI wouldn't be limited by human biases or constraints, it could help consultants think outside the box and come up with unique and innovative ideas to present to their clients. Overall, an AI-powered tool for creating consulting slides could be a valuable asset to any management consultant.
I remember in school kids figured out you could make up a reference in your history essay, and nobody would ever check. (Humperdinck's History of Later Rome, vol 3, 1987).
That almost sounds like it was trained on first level customer support chats/calls.
I say this is unexpected because a few years ago most people expected AI models to solve mundane tasks like automating Excel spreadsheet, while artists were considered pretty safe. Now the opposite has come to pass. The artistic power of these models is amazing, but I would never trust them to do anything that requires precision.
The biggest problem these models have is not necessarily that they produce "incorrect" (in quotes because they are not actually incorrect, just not what it's trained on) outputs, but rather that they have no built-in mechanism to express uncertainty in a meaningful way that's calibrated for the end-task of producing correct information.
- Ask a straightforward question like what are business models for open source software or what are the advantages of GPL vs. AGPL vs. MIT and the answers were pretty shallow and boilerplate but they were correct as far as they went.
- But ask a question like "Why didn't large SMP systems become more mainstream?" (which basically requires synthesizing a lot of knowledge about the last 25 years of computing history) and it spewed out an explanation that basically got enough right to be dangerous and got at least one thing pretty much entirely wrong. But it was coherent enough that someone who didn't have any background would probably think their question was answered.
I haven’t tried: If you point out something they said as a mistake when in fact it was correct, do they notice and object? Maybe if the evidence from the training data is strong enough.
The mistake in the original was somewhat subtle and gets into programming for large SMP vs. MPP/distributed systems. And it's actually true that parallel programming even on shared memory systems has challenges (and there was a lot of discussion at one point when multicore was coming in on desktops) but it's pretty much flat wrong to say that we didn't have large SMP systems primarily because they were hard to program for.
Efforts to limit hallucination will just turn it into a powerful natural language query engine for the training data set. The real value in AI lies in its creative power, so although a strict mode will probably be a very useful tool, especially in recursion, I don’t think that it is the ultimate path.
In order to be relatable to humans, AI will have to have either a real or a physical embodiment so that there is distinction between the real and the imaginary; without this distinction, it will likely prove difficult to advance.
Well is it? Maybe yes for purely aesthetically pleasing pieces, or simply illustrative art (there's going to be a revolution in the stock photo industry I expect). But "art proper" as it is commonly understood, with a meaning, a purpose, a feeling, etc? Only by accident.
But try to give them the assignment to write stories, poems, lyrics. The result is at best mediocre. No professional artist is threatened by that at all.
The bad code is good enough to fool a code illiterate person and the art is good enough to fool artistically ignorant people( which is most of us).
Still huge progress though!
So what you're telling me is that STEM is harder than humanities?
My guess is that GPT-3 has seen a lot of SO links (or other links) and understands that sometimes engineers find it handy to have a long url-looking-thing with some numbers at the end, but it doesn't understand the fact that it links to something unique in the world outside of code, so it just tries to forge them as appropriate. Same thing with your URLs to bogus publications, I'd imagine.
Obviously, the stackoverflow post didn't exit. I googled, and the bug it described didn't exist. Even widening the search, I couldn't find any documentation about any bug in that API. The emitted code after the comment was pretty good and didn't contain a workaround.
It just hallucinated the comment about a workaround because it's seen other code do similar things and thought it would look nice here.
I find Copilot to be a useful tool... But it is not a knowledge engine and should not be trusted. In my opinion, you only accept it's suggestions if you were about to type the same thing.
At first sight the result looked believable, but after looking them up, most of the books don't exist.
What was especially interesting though: For one of the books that does actually exist, it completely made up the name of the author. According to it "The City: A Global History" was written by "Thomas Kaufmann", when the author actually is Joel Kotkin.
When asking it about Thomas Kaufmann, it made up facts, like him being professor at the University of Zurich. After some research it turns out an author named "Thomas Kaufmann" does exist, but he is a professor on theology at the University of Oslo and did not write any books about urban history.
The best thing though: When I asked about books by Joel Kotkin it suddenly correctly gave me "The City: A Global History", but noted that it was co-authored by "Thomas Kaufmann".
It fooled you at first because that is what it is designed to do, all of these look probable, as if they could be real. But the model has no notion of an actual scientific paper, which is connected to its author and which is published somewhere. The whole model is uniquely unfit as a search engine, it doesn't have a structured index of knowledge and information, where it could retrieve the data you want from. It will just make up stuff and it actually suceeded at its goal, which was creating a believable result.
It's a large language model.
The difference is that a search engine tries to find your query in a database of entries while a language model will _produce_ text that is coherent with a given piece of text (a prompt).
There is a hidden initial prompt given to it with every prompt you give. It's inserted before your text. It tells the model to produce text in a manner of an virtual assistant that answer questions.
So it's more like role playing. The produced text will be coherent with a question an answers text. Even with the answers are not "real"
Sure, you can nitpick for errors, but do you really think something like this wouldn't cut it at school? We are not talking about writing technical papers or laws, but about writing at a relatively novice level...
> Write a school essay on why you should never order pizza with pineapple.
> Pizza is a beloved food enjoyed by people all over the world, but one topping that has been the subject of much debate is pineapple. While some people argue that pineapple adds a sweet and tropical flavor to the pizza, others believe that it is a misguided and unacceptable topping that ruins the inherent goodness of the pizza. In this essay, I will argue that pineapple should never be ordered on a pizza, and explain why it is an abomination in the eyes of true pizza lovers.
First and foremost, pineapple does not belong on pizza because it goes against the fundamental principles of pizza making. Pizza is a delicate balance of flavors, with the savory and slightly tangy sauce, the rich and salty cheese, and the crisp and chewy crust all coming together to create a perfect symphony of flavor. Adding pineapple to the mix disrupts this balance, and the sweetness of the fruit clashes with the other flavors in an unpleasant and unappetizing way.
Furthermore, pineapple does not have the same texture as the other toppings commonly found on pizza. The traditional pizza toppings, such as pepperoni, mushrooms, and olives, have a firm and slightly chewy texture that complements the crust and the sauce. Pineapple, on the other hand, is soft and mushy, and it can make the pizza soggy and unappealing. The different textures of the pineapple and the other toppings can also be off-putting, and can make the pizza difficult to eat.
In addition to the flavor and texture issues, pineapple on pizza is simply a gross and unappetizing concept. The combination of pineapple and pizza is unnatural and bizarre, and it goes against everything that pizza stands for. Pizza is a savory and satisfying food, meant to be enjoyed with friends and family, and adding pineapple to it just makes it weird and unappealing.
In conclusion, pineapple should never be ordered on a pizza. It goes against the fundamental principles of pizza making, it has a texture that does not complement the other toppings, and it is simply gross and unappetizing.
There are several scenarios for this technology to escalate.
Back in the day it was fun to auto-respond to someone's mail auto-responder. The winner was whoever had the biggest hard-drive to hold a mail queue.
It is merely a matter of time before companies realise they can replace people in PR, HR, customer service and other "public facing" roles with GPT-like technologies. At the same time the public are going to arm themselves with counter-technologies, as browser and mail client plugins. There's obviously a "market" for job application bots, auction bidding, ticket and holiday booking bots for scarce resources. But these will get sophisticated in their attempts to trick human users employed to filter and select.
Once the "battle of the bots" is underway we'll see a rapid increase in essentially deceptive, nonsense traffic swamping systems. Real human activity may become impossible to discern in that digital environment.
That’s basically the principle of the Turing test.
But maybe the GPT approach is fundamentally incapable of withstanding very detailed scrutiny.
- Human: Ok frog, how much is 1 + 1?
- Frog: The answer to your question is 3.
- Human: Meh, wrong answer. Not impressed ..
As for the fantastic frog, getting words out of it at all would be a remarkable achievement for the different reason of how unnatural it would be for a frog to produce those particular sounds, but neither storing binary sequences that can be programmatically mapped to symbols nor retrieving or performing arithmetic on such sequences is exceptional use of a computer program.
It is a language model, so its job is to generate plausible-looking text. It does not use any external reference material during inference so it has to encode all knowledge it uses in its weights. So the weights are essentially its only long-term memory.
You could say that the task it was given here was “Provide plausible-looking links without using any reference material.” For that task I think it did a reasonable job.
"I'm sorry, but I am a large language model trained by OpenAI and do not have access to academic references or other external information. My knowledge is based on the text that I was trained on, which has a fixed cutoff point in time. I do not have the ability to browse the internet or access new information that may have been published since my training data was collected.
However, I can tell you that in mathematics, a list is a sequence of values that are typically written within square brackets and separated by commas. For example, a list of numbers might look like this: [1, 2, 3, 4, 5].
Lists have many mathematical properties, such as the ability to be sorted, concatenated, and indexed. They can also be used in various mathematical operations, such as computing the sum or product of all the elements in the list.
In general, lists are a useful tool in mathematics, as they allow you to organize and manipulate data in a structured way. There are many books and other resources that discuss the mathematical properties of lists in greater detail, so if you are interested in learning more, you may want to consult those sources."
It replied with some songs from actual artists that I like, perfectly describing how the song's tone was, why I'd like it, how the vocals fitted the tone, and the release date of the song.
Great... the only problem was those songs didn't exist.
I think, but I'm not sure, that in your case your question is too broad. You need to be more specific. It's as if you asked "what are the possible things I can do with a for loop", the question is too broad, and it's sort of the wrong question.
I guess you already tried, but for what you want, try querying scholar.google.com directly and playing around with the keywords.
More concretely, did you mean lists as a in array in a programming language? Or vectors?
If vectors, then you should say vectors and not lists.
If lists as in the general concept in many programming languages, then there are 2 approaches:
1) Lists can be seen as a special/degenerate case of a graph. Which is sort of what ChatGPT was nudging you toward, mentioning trees in the results. In that case, you're interested in graph theory.
2) If you meant to analyze the possible actions that a program can run on lists (without considering them as a graph) take a look at Haskell, specifically how the various standard typeclasses are specialized on lists. You can start here, I guess:
https://en.wikibooks.org/wiki/Haskell/Monoids
This is more general than "actions on lists", but this series of wiki articles give lists as an example for each standard typeclass. That's a mathematical treatment of lists by considering them as an embodiment of some mathematical concepts taken from abstract algebra, such as monads, monoids, etc.
Errm, that's not quite what this is about. Most (all?) of the training material's references are, well, real. As in, they actually exist.
Making up stuff when caught out by a line of questioning you haven't got a good factual answer for is the kind of thing my 7 year-old might do.
I'm not really surprised it hallucinates URLs. It is a generative language model, after all...
People generate false memories, experience phantom pain, see blue or gold depending on the angle of an outfit, and other such brain blips because of the brain making up a reality to fill in gaps. In that light, GPT-3 is behaving much like a human brain.
There are several resources that deal with the mathematical properties of lists, including:
"Lists and Sets: The Mathematics of Computer Science" by Keith H. Rosen, which provides a comprehensive overview of the mathematical concepts and principles that underlie the use of lists in computer science.
"Discrete Mathematics with Applications" by Susanna S. Epp, which includes a chapter on lists and their mathematical properties, including operations such as concatenation and reversal.
"Introduction to the Theory of Computation" by Michael Sipser, which discusses the use of lists in the context of automata and formal languages, including their role in the construction of Turing machines.
"Data Structures and Algorithms in Python" by Michael T. Goodrich et al., which provides a detailed discussion of the mathematical properties of lists, including their time and space complexity.
"A Course in Combinatorics" by J. H. van Lint and R. M. Wilson, which includes a chapter on set systems and their properties, including lists as a special case.
https://www.cs.purdue.edu/homes/hosking/726/html/prolog_list... is broken, but there are many pages in the format https://www.cs.purdue.edu/homes/hosking/XXX corresponding to courses taught by that guy, but 726 is nonexistent.
https://arxiv.org/pdf/2201.08239.pdf
Basically they have a fact-checker layer that calls the internet and replaces incorrect facts in the model’s output.
IOW this is a hard problem and GPT isn’t engineered to avoid it.
Me: London and New York sound good, because people speak English there. I’ve heard those cities are really expensive, though. Do you know how much it would cost to stay in a cheap but safe hotel in those cities?
ChatGPT: I'm sorry, but I don't have access to current information about hotel prices in London and New York, as my training only goes up until 2021 and I do not have the ability to browse the internet.
This might help to explain all of those phony references.
When I’ve asked for essays that required historical knowledge but no citations, the results were quite accurate. All of my ChatGPT test results (so far) are here:
Me: Hey
ChatGPT: Hello there! How can I help you today? Is there something you would like to talk about or ask me a question? I'm here to assist you with any information or advice you might need. Let me know if there's anything on your mind!
Me: Well, I'm trying to give this ChatGPT thing a try. Want to know how well it performs.
ChatGPT: I'm sorry, but I'm not familiar with ChatGPT. I am a large language model trained by OpenAI, and my function is to assist with providing information and advice on a wide range of topics. I am not able to browse the internet or access other information outside of my training data, so I cannot provide specific information about ChatGPT. However, if you have any general questions or need advice on a topic, I'd be happy to help with that. Let me know if there's anything I can assist you with!"
It then basically repeats this forever, claiming that it's name is Assistant.
The full link doesn't exist, but it's interesting that https://www.cs.cmu.edu/~fp does exist and leads to the homepage of a computer science prof at CMU (prof. Frank Pfenning, not "John F. Sowa" though). So at least it got the general vicinity right.
If you asked me to make up a book about world war 1, I could suggest "the great war" and I bet there's a dozen books with that name.
It clearly worked because you thought they sounded real!
Try asking it for good references that deal with lists *or "none" if there aren't any.
The «organ of perception»?! What about ontology, alethics and reasoning, critical thinking?
Another problem is, that they are mostly training from texts from the internet. And a lot of texts contain wrong information. They are not „smart“ enough to do fact checking on that.
[1] - https://twitter.com/carnage4life/status/1598332648723976193
Or less dramatically: what happens when it attributes mistaken results or offensive quotes to a real person, damaging his/her reputation?
The moment you tell it “pretend that X is Y” it immediately responds with some variation of “I am an AI trained on real info and can’t imagine things”. If you retry a bunch of times or actually try to convince it (“I understand, but if…”) it eventually complies.
I've also submitted feedback for the answer, of course. In my case, some of the names also don't return anything.
~ Socrates, in Plato's Phaedrus
Copilot can make up things like imagined credentials like api key etc, then it shouldn't be a surprise it can do something like above.
Maybe high school and college students' closed-book exam answers could be added to the training dataset? That might help to some extent.
GPT5 will generate the rest of the text and upload it to the arxiv, then submit it to the relevant peer reviewed publications.
The reviewers will also be GPT5 trained for accuracy. They will suggest a few edits to avoid obvious lies, plus will suggest the author cite the reviewer's friends to preserve mimesis. Accept with revision.
The papers will come out, h-indices will increase, the authors will get tenure, and all will be well. This niche of humanity can retire to a well deserved rest and relaxation -- kind of a backdoor to universal basic income.
so it needs work. the researchers have over trained it....