by jameshart · 3y ago · 0 comments
However, I had an experience with chatGPT yesterday that definitely felt like it actually inventing. Problem is, I didn’t ask it to.
I was seeing how much it knew about HyperTalk, the scripting language used in HyperCard. And it was surprisingly well informed. But it also told me that one of the interesting things about HyperTalk was its ‘message stack’ system.
On digging into this topic, chatGPT hallucinated an entire language feature, with original (but HyperTalk-consistent) syntax and semantics, and was able to generate me sample programs (which it claimed showed how this feature was ‘actually used’) and explain how control flow worked within them. when I asked if the feature worked across scripts (for message passing from button scripts to background scripts perhaps) it readily agreed, and produced sample code showing exactly how to use this nonexistent language feature to do just that.
Its delusion was remarkably complete and honestly actually plausibly useful.
Worth bearing in mind if you ever decide to ask chatGPT to teach you a programming language though.
But also, potentially a fruitful line to explore would be having chatGPT collaborate on designing new programming language ideas.
None of it was in any way real - the feature I wanted does not actually exist.
However, the name sounded very much like it could be a drug name for a real blood pressure medication.
Did you try asking it to implement it?
Seriously, though, sort of. I asked for advice how to implement it and it just gave me more non-existent options.
Yes. Docs for related features.
> Makes me wonder if ever in the history of that url (ie wayback machine) if that feature was ever mentioned...
I wondered that too, but, no, a Google search for the purported feature keywords (it was supposedly an option to add to my platformio.ini file) produced literally zero results.
> ChatGPT sometimes writes plausible-sounding but incorrect or nonsensical answers. Fixing this issue is challenging, as: (1) during RL training, there’s currently no source of truth; (2) training the model to be more cautious causes it to decline questions that it can answer correctly; and (3) supervised training misleads the model because the ideal answer depends on what the model knows, rather than what the human demonstrator knows.
So the other day, chatGPT was doing a great job acting as a trivia quizmaster for me when it casually threw out the 'fact' that Pope Francis was the first South American to be elected pope, and that he served in the role from 2013 until his death in 2017. (For the avoidance of doubt: Pope Francis is still alive).
I think we can all understand how that sort of thing counts as 'plausible sounding but incorrect'.
What I think is surprising is that 'plausible sounding but incorrect' can also encompass 'rich and internally consistent novel programming language semantics with fully worked examples of applications, and rich explanations of how they work'.
Oh for sure, that is a really cool finding. Didn't mean to negate that, just provide a little context.
I also tried to have it generate some 6502 assembly to multiply two numbers and generated an iterative add approach that failed to do any adds. So I informed it that it forgot to add and it realized it's mistake and corrected the code.
I tried to get it to optimize further and it generated some code using shifts that I really need to double check. It also generated a table-based method that was woefully incomplete. As I continued to get it to correct the table function, it was clear it didn't really understand 6502 assembly that well.
But I've pasted large block of C# code and then gave it sample data and it understood the code well enough to generate the correct results of the code.
At some point though, it always got stuck and insisted on making illegal moves, even when I corrected it by providing the current board position in FEN.
One source even mentions that a chess opening consists of 10 to 15 moves which would match your observation that the AI gets worse after that.
Maybe the AI would appear more competent again in the endgame since I assume there is more training material for that again.
A bit surprising that it provides illegal moves since it should have enough training material not "understand" the rules but apparently prefers to produce sentences which appear like chess moves from the training material without any connection to the rules.
Prompt: What are the moves that characterize Latvian Gambit in chess?
ChatGPT response:
The Latvian Gambit is characterized by the following opening moves:
White moves the pawn in front of their king two squares forward, from e2 to e4. This is the pawn sacrifice that gives the opening its name.
Black responds by moving their pawn in front of their king two squares forward as well, from e7 to e5. This move is known as the "gambit pawn" because Black is offering a pawn to White in exchange for a lead in development and control of the center of the board.
White follows up with the development of their light-squared bishop, moving it from f1 to b5. This move attacks Black's gambit pawn and puts additional pressure on Black's position.
Black can respond to this move in a variety of ways, depending on their playing style and preferences. Some possible options include moving their knight from g8 to f6 (defending the gambit pawn and preparing for a counter-attack), moving their knight from b8 to c6 (developing a piece and preparing to castle), or moving their f-pawn from f7 to f5 (solidifying their control of the center of the board).
These are the moves that typically characterize the Latvian Gambit in chess. It's important to note, however, that not all games that begin with these moves will necessarily follow the same path, and the specific sequence of moves can vary depending on the choices made by the players.
PSS For the record all of the above is hilariously wrong and obvious to most chess players :) The real Latvian gambit is 1. e4 e5 2.Nf3 f5 (and only f5 is sacrificing the pawn).> But also, potentially a fruitful line to explore would be having chatGPT collaborate on designing new programming language ideas.
It's the same in your example... It invented but you guided it with extremely deep domain knowledge. I know nothing about HyperCard and wouldn't have been able to make anything out of anything you just described.
It is like the world's most committed improv partner. It will agree and add forever.