Local gauge invariance is a pivot of modern physics of elementary particles. Standard model of elementary particles is a non-abelian gauge theory with the gauge group \(\varvec{G=SU(3)\otimes SU(2)\otimes U(1)}\) , that is the theory is constructed to be invariant under a gauge transformation \(\varvec{\psi (x) \rightarrow U(x) \psi (x)}\) , where \(\varvec{U(x)}\) is a representation of G acting on matter fields \(\varvec{\psi (x)}\) at a point \(\varvec{x\in \mathcal {M}}\) of some continuous differentiable manifold. The problem with extrapolation of gauge theories down to the Planck scales is that there is no continuous differentiable manifold in quantum gravity regime, and hence, neither the value of field at a point, nor a covariant derivative are defined in a usual way. We do such extrapolation assuming that our spacetime is a combinatorial spacetime, the points of which are the interaction vertices of matter fields. The vertices are connected to each other by matter particles. The gauge invariance then becomes a symmetry with respect to independent internal rotations of all fermion lines in the edges of the matter spin network graph. There is no need to introduce special gauge fields in this picture, since they are expressed in terms of fermion fields.