Graph Structure Inference with BAM: Introducing the Bilinear Attention Mechanism