The softmax function converts a vector of raw real-valued scores (logits) into a probability distribution, exponentiating each score and dividing by the sum of all exponentials so that every output lies between 0 and 1 and the full set of outputs sums to exactly 1.