AI Dictionary › Modelli AI
Livello di output
The output layer is the last layer of a neural network, the one that produces the model's final result in the format required by the task at hand: a probability for each class in a classification problem, a continuous numerical value in a regression problem, or a probability distribution over the entire vocabulary in the case of a language model predicting the next token.
The output layer is the last layer of a neural network, the one that produces the model's final result in the format required by the task at hand: a probability for each class in a classification problem, a continuous numerical value in a regression problem, or a probability distribution over the entire vocabulary in the case of a language model predicting the next token.
The structure of the output layer depends closely on the task: in a language model it is typically a linear projection that transforms the representation from the last hidden layer into a vector with one component per vocabulary token, followed by a softmax function that converts these values into probabilities. In a classifier, it instead has a number of components equal to the number of possible categories.
It is present in every neural network, regardless of the task, and is the point where the abstract internal representation built by the previous layers is translated into an interpretable, usable result: an answer, a label, a prediction. In modern language models, the output layer is often shared, in whole or in part, with the initial embedding layer.
The term simply describes its position and function: it is the layer that generates the output, meaning the final result, as opposed to the input layer that receives raw data and the intermediate hidden layers that process its representation.
Il livello di output è l'ultimo strato di una rete neurale, quello che produce il risultato finale del modello nel formato richiesto dal compito da svolgere: una probabilità per ciascuna classe in un problema di classificazione, un valore numerico continuo in un problema di regressione, o una distribuzione di probabilità su tutto il vocabolario nel caso di un modello linguistico che deve prevedere il token successivo.
La struttura del livello di output dipende strettamente dal compito: in un modello linguistico è tipicamente una proiezione lineare che trasforma la rappresentazione dell'ultimo livello nascosto in un vettore con una componente per ogni token del vocabolario, seguita da una funzione softmax che converte questi valori in probabilità. In un classificatore ha invece un numero di componenti pari al numero di categorie possibili.
È presente in ogni rete neurale, indipendentemente dal compito, ed è il punto in cui la rappresentazione interna astratta costruita dagli strati precedenti viene tradotta in un risultato interpretabile e utilizzabile: una risposta, un'etichetta, una previsione. Nei modelli linguistici moderni il livello di output è spesso condiviso, in tutto o in parte, con il livello di embedding iniziale.
Il termine descrive semplicemente la sua posizione e funzione: è lo strato che genera l'output, cioè il risultato finale, in contrapposizione al livello di input che riceve i dati grezzi e ai livelli nascosti intermedi che ne elaborano la rappresentazione.
From our network
HSE Genius — AI for Safety Data Sheets
Extract SDS data, H phrases and ECHA compliance checks in seconds, powered by AI.
Visit hsegenius.com →From the Agora Intelligence blog
📱 Download the Android app (beta) iOS coming soon
Say what you mean. Get what you need.
Grace Certified — the AI coach that trains and certifies your prompt engineering — by Agora Intelligence.