Learn Before
Case Study

Penalty Function Design for a Safety-Critical Chatbot

A team is developing a chatbot to provide general health information. A critical safety requirement is that the chatbot must never suggest specific medication dosages. However, during testing, the model sometimes generates outputs like, 'For a headache, you could take 500mg of paracetamol.' Your task is to use a penalty function during the decoding process to prevent this behavior. Describe the specific characteristics or patterns in the generated text that your penalty function would be designed to identify and penalize to solve this problem.

0

1

Updated 2025-10-01

Contributors are:

Who are from:

Tags

Ch.5 Inference - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science