Decoders
| Masked decoder (probe) | T5 decoder | |
|---|---|---|
| Generation | parallel, mask-and-refine [Ghazvininejad et al. 2019] | autoregressive, greedy |
| Reads | the target word’s bytes only | the whole prompt (context included) |
| Initialisation | random | hole-filling pre-trained |
Both train on the frozen encoder; only the decoder, the projection head and any POS head are trained. The T5 decoder decodes greedily without a key/value cache, so it dominates CPU time (a cache is the obvious optimisation and is not implemented).