Join vectors end to end: a vector of length m and one of length n become one of length m + n.
In ML papers
Concat(a,b)places vectors end to end, so lengths add. Applied to matrices it joins them along the feature axis unless the paper says otherwise. Multi-head attention (Vaswani et al. 2017) concatenates the outputs of its h heads and then projects them with WO.
Papers also write concatenation with brackets: [a;b] (a semicolon, often meaning stacked vertically) or [a,b]; some use ⊕ (Direct sum / XOR) or ∥. In code: torch.cat or np.concatenate.
How to type it
LaTeX
Shows
\operatorname{Concat}(\mathbf{a}, \mathbf{b})
Concat(a,b)
[\mathbf{a}; \mathbf{b}]stacked
[a;b]
[\mathbf{a}, \mathbf{b}]side by side
[a,b]
A worked example
Concat((1,2),(3,4,5))=(1,2,3,4,5)
Eight heads of width 64 concatenate to a vector of width 512.
Common confusions
Concatenation is not addition: (1,2) and (3,4) concatenate to (1,2,3,4) but add to (4,6).
A semicolon inside brackets means concatenation; a semicolon after the arguments of a function separates parameters (Semicolon (parameterized by)).