L2 normalization is a method of normalizing the magnitude of a vector to a value of 1. This is achieved by dividing each element in the vector by the square root of the sum of the squares of all elements in the vector.

The purpose of L2 normalization is to bring all vectors to the same scale and prevent one large value from dominating the calculation. This is useful in many applications such as image recognition and natural language processing, where each dimension in the vector can have a different scale, and the results should be invariant to the scale of the inputs.

Note that L2 normalization is sometimes referred to as "Euclidean normalization" or "L2 scaling".
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence