liveBook · Manning

Goldfish Loss

As explained in Introduction to Generative AI, Second Edition

Goldfish Loss is a training-loss modification that randomly excludes selected tokens from loss computation to discourage verbatim sequence memorization.

Goldfish Loss modifies language-model training to reduce verbatim memorization. It randomly excludes selected tokens from the loss calculation, making it harder for the model to learn complete sequences exactly. section 3.4

The technique addresses a specific privacy concern, but does not resolve privacy protection on its own.

  • Mechanism: selectively omitting tokens from next-token prediction weakens learning of complete sequences. section 3.4
  • Limitation: it belongs to a broader set of difficult-to-scale mitigation strategies, while standardized privacy benchmarks and formal guidance remain lacking. section 3.4

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Defines the token-exclusion mechanism and its purpose but stops short of implementation details, benchmarks, or formal privacy guarantees.
Examples
Discusses unique strings, sensitive content, membership-inference tests, and open-weight models such as Llama 3 and Mistral.
How it connects
Connects Goldfish Loss with next-token prediction, language-model memorization, membership inference, differential privacy, and data privacy.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.