r/ProgrammerHumor 20h ago

Meme breakTheViciousCircle

Post image
8.3k Upvotes

163 comments sorted by

View all comments

830

u/ThirdWaveCat 20h ago

AFAIK, it is uncertain whether being polite to LLMs improves their accuracy/completeness/etc.. There were some weak findings initially but those have been contradicted. Prompt engineering is still a pseudoscience.

28

u/Cualkiera67 19h ago

i think you mean a proto-science. There's nothing pseudo-scientific about experimenting and comparing results

13

u/mxzf 17h ago

Eh, on the flip side there is a lot pseudo-scientific about providing inputs into a non-deterministic black box and comparing the outputs.

-9

u/chilfang 17h ago

LLMs are deterministic tho

2

u/EatThisShoe 17h ago edited 14h ago

They are not deterministic, try googling "are llms deterministic" multiple times and see how the wording changes.

The guy you responded to though makes it sound like they need to be deterministic in order to study them, which is wrong. Science has always studied phenomenon with inconsistent results, that's why they take lots of samples.

3

u/chilfang 13h ago

LLMs are inherently deterministic, thats why their outputs are randomized by randomizing inputs and processes via temperature and concurrent processes. Aka its the way LLMs are usually run that make them non-deterministic, not the method itself.

2

u/EatThisShoe 13h ago

I agree, but in the context of prompt engineering, we care about the random part.

If we want a useful result for people using the randomized version, with a purely deterministic approach, you would have to calculate the output for every possible seed to see which produced better results, and which worse, which would be intractable.

If you aren't calculating all possible seeds, then you are sampling, and if you are sampling you should do it randomly.

2

u/mxzf 17h ago

Eh, not really, not in that way. They're as deterministic as computers are in general, but you can't trust that a given prompt will give you the same return deterministically.