Effective interactions for the SM fermion mass hierarchy and their possible UV realization