The meaning of a complex expression is determined by the meanings of its constituent parts and the rules used to combine them


benjamin.piwowarski@cnrs.frLLM)Two main families of models: classification and generation
| word 1 | word 2 | word 3 | word 4 | ... |
| cl. 1 | cl. 2 | cl. 3 | cl. 4 | ... |
We classify each word in the class B (begin) | E (end) | I (intermediate) - Type
| Sophie | went | to | Jean | Jaurès | Boulevard |
| EB-Name | NA | NA | B-Location | I-Location | E-Location |
Result
| word 1 | word 2 | word 3 | word 4 | ... |
| class | ||||
Whatever the NLP task ... you need to cleaning and preparing raw text data for analysis or model trainingWhatever the NLP task ... you need to cleaning and preparing raw text data for analysis or model trainingwhatever nlp task clean prepare raw text data analysismodel trainAn / ▁osteo / path / ▁can / ▁fix / ▁your / ▁back / "l o w e r" (characters)"lo w e r""low e r""low""▁reading" (space is explicit character)['▁read', 'ing']| Aspect | BPE | WordPiece | SentencePiece |
|---|---|---|---|
| Selection Criterion | Most frequent pair | Highest likelihood | Remove lowest-loss token |
| Pre-tokenization | Needed (whitespace) | Needed (whitespace) | Not needed |
| Space Handling | Implicit or Ġ marker | Implicit or ## marker | Explicit ▁ marker |
| Language Support | English-focused | English-focused | Multilingual |
| Merging Direction | Bottom-up (char → word) | Bottom-up (char → word) | Top-down (many → few) |
| Vehicle | Transport | Color | Color | Construction | … | … |
| truck | 0.5 | 0.5 | 0 | 0 | 0 | … |
| vehicle | 1 | 0 | 0 | 0.1 | 0 | … |
| blue | 0 | 0 | 0.5 | 0.7 | 0 | … |
| building | 0 | 0 | 0 | 0.1 | 0.8 | … | …



Let a "memory" $M=\{\mat{m}_i \in \RR^{n_m}\}$
Given $\vx \in \RR^{n}$, we