żìĂš¶ÌÊÓÆ”

AIs get better at maths if you tell them to pretend to be in Star Trek

Chatbots vary their answers depending on the exact wording used to prompt them, and now it seems that asking an AI to answer as if it were a Star Trek captain boosts its mathematical ability
Star Trek is playing a role in the strange new world of large language models
Album/Alamy

Instructing an AI chatbot to answer questions as if it were in the TV show Star Trek seems to improve its mathematical ability, although no one is exactly sure why.

People who use chatbots like ChatGPT have already recognised that the quality of outputs can be improved by asking the AI to adopt a certain persona, or by bribing or threatening it. Rather than use trial and error to discover which such prompts are most effective, and at software firm VMware in California turned to the large language models (LLMs) that power the chatbots. They used them to fine-tune human-created prompts and then rated their effectiveness at called the GSM8K benchmark.

The researchers gave 60 initial prompts to three LLMs: one developed by French firm Mistral, which has recently partnered with Microsoft, and two versions of Llama2, made by Meta. The AIs were then tasked with improving the wording of the messages to make them more effective.

For example, from an initial prompt of “You are an expert mathematician. Solve the following math problem. Take a deep breath and think carefully,” the AI-improved prompt might add requirements to define any assumptions, or to flag any loopholes used.

Those resulting prompts were then fed back into the AIs in an effort to tackle the GSM8K questions, which require simple arithmetic to solve, but take between two and eight steps to complete.

In nearly all instances, the AI models produced prompts that generated more correct answers to the GSM8K questions than human-created prompts. “In my opinion, nobody should ever attempt to hand-write a prompt again,” says Battle. “Let the model do it for you.”

However, entrusting a chatbot to write prompts to help the same chatbot answer maths questions can result in some unusual exhortations. The highest-scoring prompt generated by the Llama2-70B model, for instance, asked the chatbot to adopt the persona of the captain of a Star Trek spaceship, jotting down answers in its “Captain’s Log” – something generated entirely spontaneously by the AI and not suggested by the initial prompts.

Why the AI produced such unusual prompts is “the $64 million question”, says Battle. “To a certain extent, the answer is ‘I don’t care, just give the model what it wants.’” However, thinking more scientifically, Battle believes it is a product of the data the model was trained on, perhaps with Star Trek content appearing more often with correct information. “Who knows? There’s a lot of Star Trek references on the internet.”

“The key thing to remember from the beginning is that these models are black boxes,” says at Staffordshire University, UK. “We won’t ever know why they do what they do because ultimately they are a melange of weights and probabilities and at the end a result is spat out.”

However, despite the fact that the Star Trek-themed prompt was the most successful, both Flick and Battle say that you shouldn’t be addressing ChatGPT or other chatbots as “commander” any time soon.

“One thing is for sure: the model is not a Trekkie,” says Flick. “It doesn’t ‘understand’ anything better or worse when preloaded with the prompt, it just accesses a different set of weights and probabilities for acceptability of the outputs than it does with the other prompts.”

Instead, the response to the discovery tells us more about ourselves and our perceptions of AI than the AI’s performance, believes Flick. “It shows a fun result, but it’s a coincidental one that just so happens to match the desire for LLMs to be science fiction brought to life,” she says.

Reference:

arxiv

Topics: ChatGPT