Try testing said infantry units in a loose formation. In my experience, a square loose formation helps with the absorbing phase, and the spears spread out means that the individual cavalry units get flanked more often.