Residual-based attention and connection to information bottleneck theory in PINNs