In the federal system, inmates are offered “GCT”, Good Conduct Time, where they get released from 15% of the sticker price time of their bid.
It’s subject to revocation. That makes for a powerful carrot. Refusal to work is one of the prohibited acts an inmate can do (called a “shot”) to get it taken away.