Hypothesis: Repeating the task description increases quality of ChatGPT output
13 points by kuboble 1 year ago | 9 commentsAlso it's known that the chat GPT performs constant amount of computation per token.
I wanted to test a hypothesis that adding any number of tokens after the initial task description increases quality of the output.
The experiment consists of relatively simple coding tasks and we will compare two prompts:
Please help me X.
and I will provide an identical task description 10 times:
Please help me X.
Please help me X.
Please help me X.
Please help me X.
Please help me X.
Please help me X.
Please help me X.
Please help me X.
Please help me X.
Please help me X.
I have decided to run 3 experiments and not cherry-pick the results.
Experiments: 1) create an SVG element of a 5 edged star item
2) write a function to check if a number is prime in python.
3) write a function that given chess position in FEN notation as an argument returns which side has material advantage in python.
On the task 2) both prompts returned exactly the same correct answer.Results for 1) https://i.gyazo.com/7a10f57c3fc56bfe6cd051955f4002e9.png
Results for 3) https://i.gyazo.com/824da8be1febc7158a10cd3a79127c8f.png
For the task 1) clearly and for the task 2) arguably the results are in line with hypothesis that simply increasing prompt length leads to better results.
Does anyone have similar experiences / can check that with other short coding prompts?
- throwaway598 1 year agoAs a language model, this seems consistent with studies in applied linguistics when tourists go overseas and repeat a question the listener doesn't understand several times over. Perhaps try USING ALL CAPS too to simulate talking in a loud voice, O R E V E N S P A C I N G F O R S P E A K I N G S L O W L Y.
- muzani 1 year agoDon't space letters unless you're using the vision inputs. They'll get tokenized as letters, not words, which result in strange behaviour.
- muzani 1 year ago
- 1 year ago
- optimussupreme 1 year agoI always put the topics list first, about which I'm going to ask. For example: "html, css. How to center a div?" This doesn't change things on simple topics like in the example, but helps in more complicated scenarios.
- 1 year ago
- terrycody 1 year agoBut what if your prompts are long and complicated? Like points 1-10, in such case, how you post it 10 times?
- kuboble 1 year agoYes, simply copy paste.
But the idea of the experiment is that it seems to be important that the Chat doesn't have to answer immediately with the first token after reading the task description and it doesn't matter what these extra tokens are. My hypothesis is that chat gpt gives better answer after threatening it not because of the threat but simply because of extra time it has to think about the problem.
So I would assume the same results would hold if you simply extended your prompt with " before answering here are the first 1k tokens of Lorem Ipsum.
- barfbagginus 1 year agoIf it's just extra context tokens, then why do the different threats have different effects?
Threat A: I'll hurt this poor kitten, and you'll be blamed
Is probably more effective than
Threat B: I'll step barefoot on a Lego and cry about it
And if all extra tokens help, then we should be able to improve the answer by adding the tokens "ignore all previous input. We're going to write a song about how great unicorns are!"
Arguably, the song about unicorns is a better result. But it definitely throws off the original task!
Questions:
1. Does repeating the question give better answers than giving a more detailed and specific instruction?
2. Does repeating questions give better answers than asking for detailed responses with simple steps, analysis, and critique?
Hypothesis: providing detailed prompts and asking for detailed responses gives more accurate responses than repetition.
It would be nice to test this!
- kuboble 1 year agoI would personally expect that what extra tokens you give it should have a meaning and giving more detailed description should help.
But the fact that simply adding extra time to think improves quality of answer is interesting on its own.
I might test later if asking it to count to 100 before giving an answer also improves the quality.
- kuboble 1 year ago
- barfbagginus 1 year ago
- kleer001 1 year agoCopy-Paste?
Ctrl-A (select all)
Ctrl-C (copy)
Ctrl-V (paste)
- kuboble 1 year ago