Cryptocurrency Q&A What is CLS token pooling?

What is CLS token pooling?

Isabella Isabella Sat Nov 16 2024 | 6 answers 1297
CLS token pooling is a strategy used in Vision Transformer (ViT) models, where a special classification token (CLS token) is added to the input sequence. The output representation of this token is then used for the final classification task, aggregating information from all patches to provide a global feature representation of the image. What is CLS token pooling?

6 answers

Stefano Stefano Mon Nov 18 2024
To represent the sequence of embeddings as a single vector, various techniques known as "pooling" are employed.

Was this helpful?

97
27
EchoWave EchoWave Mon Nov 18 2024
One commonly used method is [CLS] pooling. In this technique, the embedding of the [CLS] token is taken as the representation for the entire sequence.

Was this helpful?

58
28
GeishaWhisper GeishaWhisper Mon Nov 18 2024
The [CLS] token is typically inserted at the beginning of the input sequence in models like BERT, and its embedding is trained to capture the overall context of the sequence.

Was this helpful?

351
70
Giulia Giulia Mon Nov 18 2024
Another popular pooling technique is mean pooling.

Was this helpful?

171
34
CryptoTamer CryptoTamer Sun Nov 17 2024
In mean pooling, the average of all token embeddings in the sequence is calculated to obtain a single vector representation.

Was this helpful?

348
54
Load 5 more related questions

|Topics at Cryptocurrency Q&A

Get the BTCC app to start your crypto journey

Get started today Scan to join our 100M+ users

The World's Leading Crypto Trading Platform

Get my welcome gifts