ArticleslgStudy

computer science

MegaHAL

MegaHAL is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand MegaHAL rather than just read about it. In short: MegaHAL is a computer conversation simulator, or "chatterbot", created by Jason Hutchens. Background In 1996, Jason Hutchens entered the Loebner Prize Contest with HeX, a chatterbot based on ELIZA.

Key takeaways

  • MegaHAL belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect MegaHAL to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of MegaHAL from memory before moving on to harder problems.

Reference excerpt

MegaHAL is a computer conversation simulator, or "chatterbot", created by Jason Hutchens.

Background In 1996, Jason Hutchens entered the Loebner Prize Contest with HeX, a chatterbot based on ELIZA. HeX won the competition that year and took the $2000 prize for having the highest overall score. In 1998, Hutchens again entered the Loebner Prize Contest with his new program, MegaHAL. MegaHAL made its debut in the 1998 Loebner Prize Contest. Like many chatterbots, the intent is for MegaHAL to appear as a human fluent in a natural language. As a user types sentences into MegaHAL, MegaHAL will respond with sentences that are sometimes coherent and at other times complete gibberish. MegaHAL learns as the conversation progresses, remembering new words and sentence structures. It will even learn new ways to substitute words or phrases for other words or phrases. Many would consider conversation simulators like MegaHAL to be a primitive form of artificial intelligence. However, MegaHAL doesn't understand the conversation or even the sentence structure. It generates its conversation based on sequential and mathematical relationships. In the world of conversation simulators, MegaHAL is based on relatively old technology and could be considered primitive. However, its popularity has grown due to its humorous nature; it has been known to respond with twisted or nonsensical statements that are often amusing.

Theory of Operation MegaHal is based at least in part on a so-called "hidden Markov Model", so that the first thing that Megahal does when it "trains" on a script or text is to build a database of text fragments encompassing every possible subset of perhaps 4, 5, or even 6 consecutive words, so that for example - if MegaHal trains on the Declaration of Independence, then MegaHal will build a database containing text fragments such as "When in the course", "in the course of", "the course of human", "course of human events", "of human events, one", "human events, one people", and so on. Then if Megahal is fed another text, such has "Superman, Yes! It's Superman - he can change the course of mighty rivers, bend steel with his bare hands - and who disguised at Clark Kent …" IT MIGHT induce Megahal to apparently bemuse itself to proffer whether Superman can change the course of human events, or something else altogether - such as some rambling about "when in the course of mighty rivers", and so on. Thus likewise - if a phrase like "the White house said" comes up a lot in some text; then Megahal's ability to switch randomly between different contexts which otherwise share some similarity can result at times in some surprising lucidity, or else it might otherwise seem quite bizarre.

Examples There are some sentences that MegaHAL generated: CHESS IS A FUN SPORT, WHEN PLAYED WITH SHOT GUNS. and COWS FLY LIKE CLOUDS BUT THEY ARE NEVER COMPLETELY SUCCESSFUL.

Distribution MegaHAL is distributed under the Unlicense. Its source code can be downloaded from the Github repository.

See also

Loebner prize ELIZA

References

Hutchens, Jason L.; Alder, Michael D. (1998), "Introducing MegaHAL" (PDF), NeMLaP3 / CoNLL98 Workshop on Human-Computer Conversation, ACL (271): 274

External links Github repository

Worked examples

Example 1 — a first encounter with MegaHAL

Start with the simplest possible case. Write down what MegaHAL claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to MegaHAL before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about MegaHAL ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of MegaHAL

In research
MegaHAL appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses MegaHAL in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
MegaHAL is common in secondary-school and first-year university syllabi. It links to neighbouring topics Chatbots, Free simulation software, Markov models, so understanding it makes those chapters shorter.
In everyday life
Look for MegaHAL outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study MegaHAL in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what MegaHAL means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain MegaHAL out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is MegaHAL in simple terms?

MegaHAL is a computer conversation simulator, or "chatterbot", created by Jason Hutchens. Background In 1996, Jason Hutchens entered the Loebner Prize Contest with HeX, a chatterbot based on ELIZA.

Why does MegaHAL matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study MegaHAL?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on MegaHAL.

Tags

  • Chatbots
  • Free simulation software
  • Markov models

Keep exploring