Lurker News
I'm a big fan of the BBC podcast In Our Time -- and (like most people) I've been playing with the OpenAI APIs.

In Our Time has almost 1,000 episodes on everything from Cleopatra to the evolution of teeth to plasma physics, all still available, so it's my starting point to learn about most topics. But it's not well organised.
So here are the episodes sorted by library code. It's fun to explore.
Web scraping is usually pretty tedious, but I found that I could send the minimised HTML to GPT-3 and get (almost) perfect JSON back: the prompt includes the Typescript definition.
At the same time I asked for a Dewey classification... and it worked. So I replaced a few days of fiddly work with 3 cents per inference and an overnight data run.
My takeaway is that I'll be using LLMs as function call way more in the future. This isn't "generative" AI, more "programmatic" AI perhaps?
So I'm interested in what temperature=0 LLM usage looks like (you want it to be pretty deterministic), at scale, and what a language that treats that as a first-class concept might look like.

Comments (171) 49 threads

Earlier comments
donut1 reply#
This is so cool! Thanks for sharing.

Taxonomies are inherently limited -- I love this portion of the talk "Everything is Miscellaneous" about Melvil Dewey: https://www.youtube.com/watch?v=x3wOhXsjPYM&t=1206s
Surely some things fit equally well in more than one category.
Have you considered asking for best two or three categories, and placing the episodes in multiple locations? Or would that be too noisy?

genmon#
I found that Dewey was borderline acceptable — more categories seemed to degrade it, though admittedly I didn’t spend much time prompt tuning. I also tried tags and these weren’t reliable (not at a consistent “scale” from episode to episode).

I suspect I’ll need a more mechanical approach, long term.

thom#
Yeah, I've found that ChatGPT is excellent at filling out XML templates too:

    Fill out the following XML template to describe a room in a fantasy RPG dungeon:


This yields, for example:















So you get the best of both worlds, really clever procedural generation of content but also a tight structure - I've yet to see a syntax error out of it.
haolez5 replies#
Wait. Is temperature=0 "pretty deterministic", or is it deterministic?
LeoPanthera2 replies#
It’s my understanding that 0 is completely deterministic, except for when the model is updated, which does happen occasionally.
valgaze#
@haolez I just tested w/ davinci-003 w/ temperature to 0

Prompt: https://imgur.com/YtQ4fbf --
Reveal the question marks in an interesting way:
The dog goes ????????????? --
With temperature == 0, it consistently ("pretty deterministically"?) generated "woof!"
ex. The dog goes woof!

gwillen1 reply#
Their docs say (somewhat recently updated, I think) that even 0 is not perfectly deterministic in all cases (though it's very close). Some people had previously observed this and speculated that it was some kind of floating point roundoff issue, when two outputs have almost identical scores.
Jensson#
GPU's often do floating point computations in nondeterministic order for performance reasons, so you would get small differences even for exactly the same order. It is probably that.
genmon#
In the strict definition, it's deterministic: you get the same response for the same prompt, each time (given the exact same model).

But the prompt is parameterised. The bulk of the prompt is requesting a list of guests and speakers to be extracted, and the episode synopsis is appended as the "parameter". And I've noticed that the variation of the parameter changes what the overall prompt returns... so it might start being less reliable at responding with valid JSON, for example.
So it's instance-deterministic but, across a range of parameters, class-fuzzy, if that makes sense?

acchow1 reply#
On a related note, has anyone noticed the growing use of "pretty" as a hedge against ever being wrong? Also, "not", as in "not the fastest" or "not the hottest".

It could be 46C/115F outside and you say "wow, today is unbearably hot", to which someone retorts "nah, it's fine. It's not the hottest day". That's pretty good hedging. You can make infinite technically correct statements this way without ever saying anything meaningful

messe1 reply#
> Also, "not", as in "not the fastest" or "not the hottest".

Mid twenties Hiberno-English speaker here and that's always been a fairly common form of hedging, and I've not noticed an increase.

igravious#
fairly, lol
tedsanders1 reply#
Temperature=0 is not perfectly deterministic for the OpenAI API.

It's mentioned briefly in the OpenAI text completion guide: https://platform.openai.com/docs/guides/completion/introduct...
If you have two possible tokens with probability 40% and 30%, you'll always get the 40% token at T=0. But if you have two possible tokens at 40% and 39.99%, you may get the 39.99% token on occasion, even if at T=0. (Numbers illustrative.)

minkzilla1 reply#
Where does the inherent randomness come from?
ChatGTP1 reply#
It's injected into the model, you can deviate from no randomness to get "creative".

Continue this thread — 1 reply

maccaw#
Well technically everything is deterministic.
Southworth#
Hey Matt! Great to see this on HN, we’ve been chatting away about this on a private slack group! Super cool work as ever. Stay awesome.

Load more comments