Vectors and matrices

a⊕b\mathbf{a} \oplus \mathbf{b} Direct sum / XOR

Usually concatenation or a direct sum of vectors or spaces; in logic and bit operations, exclusive or.

In ML papers

In ML papers a⊕b\mathbf{a} \oplus \mathbf{b} most often means concatenation: the vector a\mathbf{a} followed by the vector b\mathbf{b}, so a 33-vector and a 22-vector give a 55-vector. Formally this is the direct sum; papers on graph networks and retrieval use it to join features. The big version, ⨁i=1nhi\bigoplus_{i=1}^{n} \mathbf{h}_i, joins many at once.

For matrices, A⊕BA \oplus B is the block-diagonal matrix with AA and BB on the diagonal and zeros elsewhere. Check where the paper defines it: a few use ⊕\oplus for elementwise addition instead.

Other meanings, by context

How to type it

LaTeXShows
\oplus⊕\oplus
\bigoplus_{i=1}^{n} large, with limits⨁i=1n\bigoplus_{i=1}^{n}

A worked example

(1,2)⊕(3,4,5)=(1,2,3,4,5)(1, 2) \oplus (3, 4, 5) = (1, 2, 3, 4, 5)

Read as concatenation, the lengths add: 2+3=52 + 3 = 5.

Common confusions

Related

Concat⁡(head1,…,headh)WO\operatorname{Concat}(\mathrm{head}_1, \dots, \mathrm{head}_h) W^OConcatenationa⊗b\mathbf{a} \otimes \mathbf{b}Tensor / Kronecker producta⊙b\mathbf{a} \odot \mathbf{b}Hadamard (elementwise) productx∈Rd\mathbf{x} \in \mathbb{R}^{d}Bold lowercase (vector)

Decode this example →