I am interested in a task which outputs a continuous value: the probability that an…
- User
I am interested in a task which outputs a continuous value: the probability that an email is scam. I want to use an LLM to create a probability of spam from the email text. How can I get a continuous probability from an LLM for such a task?
Assistant
Here are a few ways to get a continuous probability estimate for email spam classification from a language model:
-
Fine-tune the LLM on an email dataset labeled as spam/not spam. Add a classification head that outputs a sigmoid probability for the spam class. This will give you a continuous value between 0-1 indicating the model's probability that the email is spam.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.