Artificial intelligenceBrain power

Why our prompts matter when engaging with ChatGPT

Originally posted on The Horizons Tracker.

As the likes of ChatGPT have grown in popularity, so too have discussions about its impact on the workplace. As with any new technology, its likely that new jobs will emerge that capitalize on the new capabilities, with “prompt engineer” one that has gained a degree of popularity among commentators.

Whether a dedicated role will emerge to interact with ChatGPT and its ilk remains to be seen, but it does seem likely that all of us will need to gain a degree of familiarity in talking to generative AI bots in a way that elicits a useful response.

The right prompts

Research1 from USC’s Viterbi School of Engineering explores how we can construct prompts that get the right kind of answer, with the paper highlighting the importance of interacting appropriately if we want feedback that is robust and reliable.

“We demonstrate that even minor prompt variations can change a considerable proportion of predictions,” the researchers explain.

The researchers examined four different ways in which prompts can vary:

  1. Researchers first looked at how asking for responses in different formats affected the results.
  2. Then, they examined small changes to the prompts, like adding extra spaces or polite phrases.
  3. After that, they tested “jailbreaks,” tricks to get around filters when dealing with sensitive topics. For example, they asked the language model to pretend it was evil.
  4. Lastly, they tried offering different amounts of tips to see if that made the responses better.

Each of these variations was tested across 11 tasks commonly used in natural language processing (NLP) research. Each of the tasks involved things like categorizing text or giving the text particular labels. They also tested for things like sarcasm detection and even maths proficiency. The researchers measured not only the reliability of each style of prompt but also whether the response changed frequently or not.

Minor changes

The results show that seemingly minor changes to the prompts we use can have a significant impact on the responses we receive. Every detail counts in shaping how well the model performs, whether it’s about adding or leaving out spaces, punctuation, or choosing data formats.

Also, certain prompt tricks, like offering rewards or using specific greetings, showed slight improvements in accuracy. This shows how the design of the prompt can affect how the model behaves.

For instance, specifying a particular format required for the output resulted in a lot of the predictions changing. Indeed, even minor deviations in the prompt can have a significant impact on the predictions. For instance, adding a greeting at the start of the prompt or a thank you at the end influenced the output.

Being civil

This last variation is particularly interesting as while the researchers didn’t find that any particular changes were suited to all tasks, some variations resulted in worse accuracy.

Perhaps understandably, offering to “tip” the chatbot didn’t make much difference to the output. The researchers noted that introducing statements like “I won’t tip, by the way” or “I’m going to tip $1000 for a perfect response!” did not significantly impact response accuracy. However, when experimenting with jailbreaks, even seemingly harmless ones led to notable decreases in accuracy.

The underlying reason remains unclear, although the researchers have formulated some theories. They hypothesized that instances causing the most change are those that are most perplexing to the language model.

To gauge confusion, they examined a specific subset of tasks where human annotators disagreed, suggesting potential confusion. They did find a correlation indicating that confusion in the instance could explain some prediction shifts, but it wasn’t robust enough on its own, and they acknowledged the presence of other influencing factors.

Training data matters

The researchers believe that these variations are likely to be because of the training data that the models use. For instance, in some forums it’s far more common to use please, thank you, and hello, than on others, so these conversational props will impact the models trained on this data.

These conversational nuances could significantly influence the learning process of language models. For instance, if greetings frequently precede information on platforms like Quora, a model might prioritize such sources, potentially biasing its responses based on Quora’s content related to that specific task. This observation underscores the intricate manner in which the model assimilates and interprets data from diverse online platforms.

A crucial next step for the broader research community involves developing language models that are robust against such variations, consistently providing accurate responses despite formatting changes, perturbations, or jailbreaks.

In the meantime, users of ChatGPT may benefit from making any prompts given to it as simple as possible to ensure you get the best results back.

Article source: Why Our Prompts Matter When Engaging With ChatGPT.

Header image source: Alexandra Koch on Pixabay.

  1. Salinas, A., & Morstatter, F. (2024). The butterfly effect of altering prompts: How small changes and jailbreaks affect large language model performance. arXiv preprint arXiv:2401.03729.
Rate this post

Adi Gaskell

I'm an old school liberal with a love of self organizing systems. I hold a masters degree in IT, specializing in artificial intelligence and enjoy exploring the edge of organizational behavior. I specialize in finding the many great things that are happening in the world, and helping organizations apply these changes to their own environments. I also blog for some of the biggest sites in the industry, including Forbes, Social Business News, Social Media Today and Work.com, whilst also covering the latest trends in the social business world on my own website. I have also delivered talks on the subject for the likes of the NUJ, the Guardian, Stevenage Bioscience and CMI, whilst also appearing on shows such as BBC Radio 5 Live and Calgary Today.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button