I stop my self from rocking by slightly tensing my quads for support, lift slowly and use the correct weight in order to keep my technique good.
If your having to swing those weights up then they are too heavy for you and will actualy prevent gains IMO