<div>In this paper, we demonstrate a novel application of the Transformer self-attention mechanism. Our network, the Compositionally-Restricted Attention-Based network, referred to as CrabNet, explores the area of structure-agnostic materials property predictions when only a chemical formula is provided.</div><div>Our results show that CrabNet's performance matches or exceeds current best practice methods on nearly all of 28 total benchmark datasets. We also demonstrate how CrabNet's architecture lends itself towards model interpretability by showing different visualization approaches that are made possible by CrabNet's design.</div><div>We feel confident that CrabNet, and its attention-based framework, will be of keen interest to future materials informatics researchers. </div>