the addition of baking soda to the cooking water does two things: it adds sodium ions that weaken the pectin as explained above, and more importantly, an alkaline environment causes the pectin molecules to break down into smaller molecules that greatly weakens the pectin causing the beans to soften much more rapidly.