Compositionally restricted attention-based network for materials property predictions