ABNet: Attention BarrierNet for Safe and Scalable Robot Learning