ELIZA
ELIZA is an early natural language processing computer program created from 1964 to 1967[1] at MIT by Joseph Weizenbaum.[2][3] Created to explore communication between humans and machines, ELIZA simulated conversation by using a pattern matching and substitution methodology that gave users an illusion of understanding on the part of the program, but had no representation that could be considered really understanding what was being said by either party.[4][5][6] Whereas the ELIZA program itself was written (originally)[7] in MAD-SLIP, the pattern matching directives that contained most of its language capability were provided in separate "scripts", represented in a lisp-like representation.[8] The most famous script, DOCTOR, simulated a psychotherapist of the Rogerian school (in which the therapist often reflects back the patient's words to the patient),[9][10][11] and used rules, dictated in the script, to respond with non-directional questions to user inputs. As such, ELIZA was one of the first chatterbots ("chatbot" modernly) and one of the first programs capable of attempting the Turing test.[12]
ELIZA's creator, Weizenbaum, intended the program as a method to explore communication between humans and machines. He was surprised and shocked that individuals, including Weizenbaum's secretary, attributed human-like feelings to the computer program.[3] Many academics believed that the program would be able to positively influence the lives of many people, particularly those with psychological issues, and that it could aid doctors working on such patients' treatment.[3][13] While ELIZA was capable of engaging in discourse, it could not converse with true understanding.[14] However, many early users were convinced of ELIZA's intelligence and understanding, despite Weizenbaum's insistence to the contrary.[6] The original ELIZA source-code had been missing since its creation in the 1960s as it was not common to publish articles that included source code at this time. However, more recently the MAD-SLIP source-code has now been discovered in the MIT archives and published on various platforms, such as archive.org.[15] The source-code is of high historical interest as it demonstrates not only the specificity of programming languages and techniques at that time, but also the beginning of software layering and abstraction as a means of achieving sophisticated software programming.
Overview
Joseph Weizenbaum's ELIZA, running the DOCTOR script, created a conversational interaction somewhat similar to what might take place in the office of "a [non-directive] psychotherapist in an initial psychiatric interview"[16] and to "demonstrate that the communication between man and machine was superficial".[17] While ELIZA is best known for acting in the manner of a psychotherapist, the speech patterns are due to the data and instructions supplied by the DOCTOR script.[18] ELIZA itself examined the text for keywords, applied values to said keywords, and transformed the input into an output; the script that ELIZA ran determined the keywords, set the values of keywords, and set the rules of transformation for the output.[19] Weizenbaum chose to make the DOCTOR script in the context of psychotherapy to "sidestep the problem of giving the program a data base of real-world knowledge",[3] allowing it to reflect back the patient's statements in order to carry the conversation forward.[3] The result was a somewhat intelligent-seeming response that reportedly deceived some early users of the program.[20]
Weizenbaum named his program ELIZA after Eliza Doolittle, a working-class character in George Bernard Shaw's Pygmalion. According to Weizenbaum, ELIZA's ability to be "incrementally improved" by various users made it similar to Eliza Doolittle,[19] since Eliza Doolittle was taught to speak with an upper-class accent in Shaw's play.[9][21] However, unlike the human character in Shaw's play, ELIZA is incapable of learning new patterns of speech or new words through interaction alone. Edits must be made directly to ELIZA's active script in order to change the manner by which the program operates.
Weizenbaum first implemented ELIZA in his own SLIP list-processing language, where, depending upon the initial entries by the user, the illusion of human intelligence could appear, or be dispelled through several interchanges.[2] Some of ELIZA's responses were so convincing that Weizenbaum and several others have anecdotes of users becoming emotionally attached to the program, occasionally forgetting that they were conversing with a computer.[3] Weizenbaum's own secretary reportedly asked Weizenbaum to leave the room so that she and ELIZA could have a real conversation. Weizenbaum was surprised by this, later writing: "I had not realized ... that extremely short exposures to a relatively simple computer program could induce powerful delusional thinking in quite normal people."[22]
In 1966, interactive computing (via a teletype) was new. It was 15 years before the personal computer became familiar to the general public, and three decades before most people encountered attempts at natural language processing in Internet services like Ask.com or PC help systems such as Microsoft Office Clippit.[23] Although those programs included years of research and work, ELIZA remains a milestone simply because it was the first time a programmer had attempted such a human-machine interaction with the goal of creating the illusion (however brief) of human–human interaction.[citation needed]
At the ICCC 1972 ELIZA was brought together with another early artificial-intelligence program named PARRY for a computer-only conversation. While ELIZA was built to speak as a doctor, PARRY was intended to simulate a patient with schizophrenia.[24]
Design
Weizenbaum originally wrote ELIZA in MAD-SLIP for CTSS on an IBM 7094, as a program to make natural-language conversation possible with a computer.[25] To accomplish this, Weizenbaum identified five "fundamental technical problems" for ELIZA to overcome: the identification of key words, the discovery of a minimal context, the choice of appropriate transformations, the generation of responses in the absence of key words, and the provision of an editing capability[further explanation needed] for ELIZA scripts.[19] Weizenbaum solved these problems and made ELIZA such that it had no built-in contextual framework or universe of discourse.[18] However, this required ELIZA to have a script of instructions on how to respond to inputs from users.[6]
ELIZA starts its process of responding to an input by a user by first examining the text input for a "keyword".[5] A "keyword" is a word designated as important by the acting ELIZA script, which assigns to each keyword a precedence number, or a RANK, designed by the programmer.[14] If such words are found, they are put into a "keystack", with the keyword of the highest RANK at the top. The input sentence is then manipulated and transformed as the rule associated with the keyword of the highest RANK directs.[19] For example, when the DOCTOR script encounters words such as "alike" or "same", it would output a message pertaining to similarity, in this case "In what way?",[4] as these words had high precedence number. This also demonstrates how certain words, as dictated by the script, can be manipulated regardless of contextual considerations, such as switching first-person pronouns and second-person pronouns and vice versa, as these too had high precedence numbers. Such words with high precedence numbers are deemed superior to conversational patterns and are treated independently of contextual patterns.[citation needed]
Following the first examination, the next step of the process is to apply an appropriate transformation rule, which includes two parts: the "decomposition rule" and the "reassembly rule".[19] First, the input is reviewed for syntactical patterns in order to establish the minimal context necessary to respond. Using the keywords and other nearby words from the input, different disassembly rules are tested until an appropriate pattern is found. Using the script's rules, the sentence is then "dismantled" and arranged into sections of the component parts as the "decomposition rule for the highest-ranking keyword" dictates. The example that Weizenbaum gives is the input "You are very helpful", which is transformed to "I are very helpful". This is then broken into (1) empty (2) "I" (3) "are" (4) "very helpful". The decomposition rule has broken the phrase into four small segments that contain both the keywords and the information in the sentence.[19]
The decomposition rule then designates a particular reassembly rule, or set of reassembly rules, to follow when reconstructing the sentence.[5] The reassembly rule takes the fragments of the input that the decomposition rule had created, rearranges them, and adds in programmed words to create a response. Using Weizenbaum's example previously stated, such a reassembly rule would take the fragments and apply them to the phrase "What makes you think I am (4)", which would result in "What makes you think I am very helpful?". This example is rather simple, since depending upon the disassembly rule, the output could be significantly more complex and use more of the input from the user. However, from this reassembly, ELIZA then sends the constructed sentence to the user in the form of text on the screen.[19]
These steps represent the bulk of the procedures that ELIZA follows in order to create a response from a typical input, though there are several specialized situations that ELIZA/DOCTOR can respond to. One Weizenbaum specifically wrote about was when there is no keyword. One solution was to have ELIZA respond with a remark that lacked content, such as "I see" or "Please go on".[19] The second method was to use a "MEMORY" structure, which recorded prior recent inputs, and would use these inputs to create a response referencing a part of the earlier conversation when encountered with no keywords.[26] This was possible due to Slip's ability to tag words for other usage, which simultaneously allowed ELIZA to examine, store and repurpose words for usage in outputs.[19]
While these functions were all framed in ELIZA's programming, the exact manner by which the program dismantled, examined, and reassembled inputs is determined by the operating script. The script is not static and can be edited, or a new one created, as is necessary for the operation in the context needed. This would allow the program to be applied in multiple situations, including the well-known DOCTOR script, which simulates a Rogerian psychotherapist.[15]
A Lisp version of ELIZA, based on Weizenbaum's CACM paper, was written shortly after that paper's publication, by Bernie Cosell.[27][28] A BASIC version appeared in Creative Computing in 1977 (although it was written in 1973 by Jeff Shrager).[29] This version, which was ported to many of the earliest personal computers, appears to have been subsequently translated into many other versions in many other languages. Shrager claims not to have seen either Weizenbaum's or Cosell's versions.
In 2021 Jeff Shrager searched MIT's Weizenbaum archives, along with MIT archivist Myles Crowley, and found files labeled Computer Conversations. These included the complete source code listing of ELIZA in MAD-SLIP, with the DOCTOR script attached. The Weizenbaum estate has given permission to open-source this code under a Creative Commons CC0 public domain license. The code and other information can be found on the ELIZAGEN site.[28]
Another version of Eliza popular among software engineers is the version that comes with the default release of GNU Emacs, and which can be accessed by typing M-x doctor
from most modern Emacs implementations.
Pseudocode
From Figure 15.5, Chapter 15 of Speech and Language Processing (third edition).[30]
function ELIZA GENERATOR(user sentence) returns response Let w be the word in sentence that has the highest keyword rank if w exists Let r be the highest ranked rule for w that matches sentence response ← Apply the transform in r to sentence if w = 'my' future ← Apply a transformation from the ‘memory’ rule list to sentence Push future onto the memory queue else (no keyword applies) Either response ← Apply the transform for the NONE keyword to sentence Or response ← Pop the oldest response from the memory queue Return response
Response and legacy
Lay responses to ELIZA were disturbing to Weizenbaum and motivated him to write his book Computer Power and Human Reason: From Judgment to Calculation, in which he explains the limits of computers, as he wants to make clear his opinion that the anthropomorphic views of computers are just a reduction of human beings or any life form for that matter.[31] In the independent documentary film Plug & Pray (2010) Weizenbaum said that only people who misunderstood ELIZA called it a sensation.[32]
The Israeli poet David Avidan, who was fascinated with future technologies and their relation to art, desired to explore the use of computers for writing literature. He conducted several conversations with an APL implementation of ELIZA and published them – in English, and in his own translation to Hebrew – under the title My Electronic Psychiatrist – Eight Authentic Talks with a Computer. In the foreword he presented it as a form of constrained writing.[33]
There are many programs based on ELIZA in different programming languages. For MS-DOS computers, some Sound Blaster cards came bundled with Dr. Sbaitso, which functions like the DOCTOR script. Other versions adapted ELIZA around a religious theme, such as ones featuring Jesus (both serious and comedic), and another Apple II variant called I Am Buddha. The 1980 game The Prisoner incorporated ELIZA-style interaction within its gameplay. In 1988 the British artist and friend of Weizenbaum Brian Reffin Smith created two art-oriented ELIZA-style programs written in BASIC, one called "Critic" and the other "Artist", running on two separate Amiga 1000 computers and showed them at the exhibition "Salamandre" in the Musée du Berry, Bourges, France. The visitor was supposed to help them converse by typing in to "Artist" what "Critic" said, and vice versa. The secret was that the two programs were identical. GNU Emacs formerly had a psychoanalyze-pinhead
command that simulates a session between ELIZA and Zippy the Pinhead.[34] The Zippyisms were removed due to copyright issues, but the DOCTOR program remains.
ELIZA has been referenced in popular culture and continues to be a source of inspiration for programmers and developers focused on artificial intelligence. It was also featured in a 2012 exhibit at Harvard University titled "Go Ask A.L.I.C.E.", as part of a celebration of mathematician Alan Turing's 100th birthday. The exhibit explores Turing's lifelong fascination with the interaction between humans and computers, pointing to ELIZA as one of the earliest realizations of Turing's ideas.[1]
ELIZA won a 2021 Legacy Peabody Award, and in 2023 it beat OpenAI's GPT-3.5 in a Turing test study.[35]
In popular culture
In 1969, George Lucas and Walter Murch incorporated an Eliza-like dialogue interface in their screenplay for the feature film THX-1138. Inhabitants of the underground future world of THX, when stressed, would retreat to "confession booths" and initiate a one-sided Eliza-formula conversation with a Jesus-faced computer who claimed to be "OMM".[citation needed]
ELIZA influenced a number of early computer games by demonstrating additional kinds of interface designs. Don Daglow wrote an enhanced version of the program called Ecala on a DEC PDP-10 minicomputer at Pomona College in 1973 before writing the computer role-playing game Dungeon (1975).[citation needed]
The 2011 video game Deus Ex and the 2016 sequel Deus Ex features an artificial-intelligence Picus TV Network newsreader named Eliza Cassan.[36]
In Adam Curtis's 2016 documentary, HyperNormalisation, ELIZA was referenced in relationship to post-truth.[37]
In the twelfth episode of the American sitcom Young Sheldon, aired in January 2018, starred the protagonist "conversing" with ELIZA, hoping to resolve a domestic issue.[38]
On August 12, 2019, independent game developer Zachtronics published a visual novel called Eliza, about an AI-based counseling service inspired by ELIZA.[39][40]
See also
References
- ↑ 1.0 1.1 "Alan Turing at 100". 13 September 2012. http://news.harvard.edu/gazette/story/2012/09/alan-turing-at-100/.
- ↑ 2.0 2.1 Berry, David M. (2018). "Weizenbaum, ELIZA and the End of Human Reason". in Baranovska, Marianna. Hello, I'm Eliza: Fünfzig Jahre Gespräche mit Computern (1st ed.). Berlin: Projekt Verlag. pp. 53–70. ISBN 9783897334670.
- ↑ 3.0 3.1 3.2 3.3 3.4 3.5 Weizenbaum, Joseph (1976). Computer Power and Human Reason: From Judgment to Calculation. New York: W. H. Freeman and Company. ISBN 0-7167-0464-1.
- ↑ 4.0 4.1 Norvig, Peter (1992). Paradigms of Artificial Intelligence Programming. New York: Morgan Kaufmann Publishers. pp. 151–154. ISBN 1-55860-191-0.
- ↑ 5.0 5.1 5.2 Weizenbaum, Joseph (January 1966). "ELIZA--A Computer Program for the Study of Natural Language Communication Between Man and Machine". Communications of the ACM 9: 36–45. doi:10.1145/365153.365168. http://www.universelle-automation.de/1966_Boston.pdf.
- ↑ 6.0 6.1 6.2 Baranovska, Marianna, ed (2018). Hello, I'm Eliza fünfzig Jahre Gespräche mit Computern (1st ed.). Bochum: Bochum Freiburg projektverlag. ISBN 978-3-89733-467-0. OCLC 1080933718.
- ↑ "ELIZAGEN - The Original ELIZA" (in en-US). https://sites.google.com/view/elizagen-org/the-original-eliza.
- ↑ Berry, David M. (2023-11-06). "The Limits of Computation: Joseph Weizenbaum and the ELIZA Chatbot" (in en). Weizenbaum Journal of the Digital Society 3 (3). doi:10.34669/WI.WJDS/3.3.2. ISSN 2748-5625. https://ojs.weizenbaum-institut.de/index.php/wjds/article/view/106.
- ↑ 9.0 9.1 Dillon, Sarah (2020-01-02). "The Eliza effect and its dangers: from demystification to gender critique". Journal for Cultural Research 24 (1): 1–15. doi:10.1080/14797585.2020.1754642. ISSN 1479-7585. https://doi.org/10.1080/14797585.2020.1754642.
- ↑ Bassett, Caroline (2019). "The computational therapeutic: exploring Weizenbaum's ELIZA as a history of the present". AI & Society 34 (4): 803–812. doi:10.1007/s00146-018-0825-9.
- ↑ "The Samantha Test". The New Yorker. https://www.newyorker.com/culture/culture-desk/the-samantha-test/ampwebsite=newyorker.com. Retrieved 2019-05-25.
- ↑ Marino, Mark (2006). Chatbot: The Gender and Race Performativity of Conversational Agents. University of California. https://www.proquest.com/openview/3c91805eb882d2a56d58aaa6f809fa50/.
- ↑ Colby, Kenneth Mark; Watt, James B.; Gilbert, John P. (1966). "A Computer Method of Psychotherapy". The Journal of Nervous and Mental Disease 142 (2): 148–52. doi:10.1097/00005053-196602000-00005. PMID 5936301.
- ↑ 14.0 14.1 Shah, Huma; Warwick, Kevin; Vallverdú, Jordi; Wu, Defeng (2016). "Can machines talk? Comparison of Eliza with modern dialogue systems". Computers in Human Behavior 58: 278–95. doi:10.1016/j.chb.2016.01.004. https://curve.coventry.ac.uk/open/items/d4c5572d-3a8f-4ed1-b085-c88f8124fd74/1/Can+Machines+Talk_+CHB_Shah-Warwick_2016+(1).pdf.
- ↑ 15.0 15.1 Shrager, Jeff; Berry, David M.; Hay, Anthony; Millican, Peter (2022). "Finding ELIZA - Rediscovering Weizenbaum's Source Code, Comments and Faksimiles". in Baranovska, Marianna. Hello, I'm Eliza: Fünfzig Jahre Gespräche mit Computern (2nd ed.). Berlin: Projekt Verlag. pp. 247–248.
- ↑ Weizenbaum 1976, p. 188.
- ↑ Epstein, J.; Klinkenberg, W. D. (2001). "From Eliza to Internet: A brief history of computerized assessment". Computers in Human Behavior 17 (3): 295–314. doi:10.1016/S0747-5632(01)00004-8.
- ↑ 18.0 18.1 Wortzel, Adrianne (2007). "ELIZA REDUX: A Mutable Iteration". Leonardo 40 (1): 31–6. doi:10.1162/leon.2007.40.1.31.
- ↑ 19.0 19.1 19.2 19.3 19.4 19.5 19.6 19.7 19.8 Weizenbaum, Joseph (1966). "ELIZA—a computer program for the study of natural language communication between man and machine". Communications of the ACM 9: 36–45. doi:10.1145/365153.365168.
- ↑ Wardrip-Fruin, Noah (2009). Expressive Processing: Digital Fictions, Computer Games, and Software Studies. Cambridge, Massachusetts: MIT Press. p. 33. ISBN 9780262013437. OCLC 827013290.
- ↑ Markoff, John (2008-03-13), "Joseph Weizenbaum, Famed Programmer, Is Dead at 85", The New York Times, https://www.nytimes.com/2008/03/13/world/europe/13weizenbaum.html, retrieved 2009-01-07.
- ↑ Weizenbaum, Joseph (1976). Computer power and human reason: from judgment to calculation. W. H. Freeman. p. 7. https://archive.org/details/computerpowerhum0000weiz.
- ↑ Meyer, Robinson (2015-06-23). "Even Early Focus Groups Hated Clippy" (in en). https://www.theatlantic.com/technology/archive/2015/06/clippy-the-microsoft-office-assistant-is-the-patriarchys-fault/396653/.
- ↑ Megan, Garber (Jun 9, 2014). "When PARRY Met ELIZA: A Ridiculous Chatbot Conversation From 1972". The Atlantic. https://www.theatlantic.com/technology/archive/2014/06/when-parry-met-eliza-a-ridiculous-chatbot-conversation-from-1972/372428/. Retrieved 19 January 2017.
- ↑ "Compatible Time-Sharing System (1961-1973): Fiftieth Anniversary Commemorative Overview". IEEE Computer Society. 2011. https://multicians.org/thvv/compatible-time-sharing-system.pdf. "Joe Wiezenbaum's most famous CTSS project was ELIZA"
- ↑ Wardip-Fruin, Noah (2014). Expressive Processing: Digital Fictions, Computer Games, and Software Studies. Cambridge: The MIT Press. p. 33. ISBN 9780262013437.
- ↑ "Coders at Work: Bernie Cosell". http://www.codersatwork.com/bernie-cosell.html.
- ↑ 28.0 28.1 "elizagen.org". http://elizagen.org/.
- ↑ Big Computer Games: Eliza – Your own psychotherapist at www.atariarchives.org.
- ↑ "Chatbots & Dialogue Systems". https://web.stanford.edu/~jurafsky/slp3/15.pdf.
- ↑ Berry, David M. (2014). Critical theory and the digital. London: Bloomsbury Publishing. ISBN 978-1-4411-1830-1. OCLC 868488916. https://www.worldcat.org/oclc/868488916.
- ↑ maschafilm. "Content: Plug & Pray Film – Artificial Intelligence – Robots". http://www.plugandpray-film.de/en/content.html.
- ↑ Avidan, David (2010), Collected Poems, 3, Jerusalem: Hakibbutz Hameuchad, OCLC 804664009.
- ↑ "lol:> psychoanalyze-pinhead". http://www.ibm.com/developerworks/ibm/library/lol/pinhead.html.
- ↑ Edwards, Benj (2023-12-01). "1960s chatbot ELIZA beat OpenAI's GPT-3.5 in a recent Turing test study" (in en-us). https://arstechnica.com/information-technology/2023/12/real-humans-appeared-human-63-of-the-time-in-recent-turing-test-ai-study/.
- ↑ Tassi, Paul. "'Deus Ex: Mankind Divided's Ending Is Disappointing In A Different Way". https://www.forbes.com/sites/insertcoin/2016/08/25/deus-ex-mankind-divideds-ending-is-disappointing-in-a-different-way/.
- ↑ "The Quietus | Opinion | Black Sky Thinking | HyperNormalisation: Is Adam Curtis, Like Trump, Just A Master Manipulator?" (in en-us). https://thequietus.com/articles/21077-adam-curtis-hypernormalisation-review-bbc-politics-doom.
- ↑ McCarthy, Tyler (2018-01-18). "Young Sheldon Episode 12 recap: The family's first computer almost tears it apart". Fox News. http://www.foxnews.com/entertainment/2018/01/18/young-sheldon-episode-12-recap-familys-first-computer-almost-tears-it-apart.html.
- ↑ O'Connor, Alice (2019-08-01). "The next Zachtronics game is Eliza, a visual novel about AI". https://www.rockpapershotgun.com/2019/08/01/the-next-zachtronics-game-is-eliza-a-visual-novel-about-ai/.
- ↑ Machkovech, Sam (August 12, 2019). "Eliza review: Startup culture meets sci-fi in a touching, fascinating tale". Ars Technica. https://arstechnica.com/gaming/2019/08/eliza-review-startup-culture-meets-sci-fi-in-a-touching-fascinating-tale/.
Bibliography
- Norvig, Peter (1992), ELIZA: Paradigms of Artificial Intelligence Programming, San Francisco: Morgan Kaufmann Publishers, pp. 151–154, 159, 163–169, 175, 181, ISBN 1-55860-191-0.
- Wardip-Fruin, Noah (2014), Expressing Processing: Digital Fictions, Computer Games, and Software Studies, Cumberland: MIT Press, pp. 24–36, ISBN 978-0262517539.
- Weizenbaum, Joseph (1976), Computer power and human reason: from judgment to calculation, W. H. Freeman and Company, ISBN 0-7167-0463-3.
- Whitby, Blay (1996), "The Turing Test: AI's Biggest Blind Alley?", in Millican, Peter; Clark, Andy, Machines and Thought: The Legacy of Alan Turing, 1, Oxford University Press, pp. 53–62, ISBN 0-19-823876-2, http://www.cogs.susx.ac.uk/users/blayw/tt.html, retrieved 2008-08-11.
Further reading
- McCorduck, Pamela (2004), Machines Who Think (2nd ed.), Natick, MA: A. K. Peters, Ltd., ISBN 1-56881-205-1, http://www.pamelamc.com/html/machines_who_think.html
External links
- Collection of several source code versions at GitHub
- , a collection of dialogues between ELIZA and various conversants, such as a company vice president and PARRY (a simulation of a paranoid schizophrenic)
- Weizenbaum. Rebel at work – Peter Haas, Silvia Holzinger, Documentary film with Joseph Weizenbaum and ELIZA.
- CORECURSIVE #078; The History and Mystery Of Eliza; With Jeff Shrager – Adam Gordon Bell interviews Jeff Shrager, author of the 1973/77 BASIC ELIZA, and discoverer of the original ELIZA code.
Original source: https://en.wikipedia.org/wiki/ELIZA.
Read more |