The key insight for negotiating an early exit is that landlords fear vacancy and hassle more than they enjoy penalties, so any proposal that removes those pains has a real chance. Approach early and in good faith: tell the landlord as soon as your plans firm up, in a polite conversation followed by writing, because maximum lead time is itself a concession that earns goodwill.
The strongest card is a replacement tenant. Offer to find and propose one, market the room yourself, schedule viewings, and hand over a qualified candidate; if rent continues seamlessly, many landlords will release you with little or no penalty, since their real loss is zero. The landlord retains approval rights, which is fair.
Stack these and most landlords engage. Whatever you agree, get it in a short signed document covering the exit date, any payment, and the deposit's treatment.