Deductions & credits

If the debt was incurred by you, you have to pay it one way or the other.

 

If the debt was incurred by your spouse after you were married, and while you were filing joint tax returns, you are jointly liable for the debt and you have to pay it one way or the other.

 

If the debt was incurred by your spouse before you were married, you can file form 8379 Injured Spouse Allocation, to request the IRS protect your share of a joint refund.  Your spouse's share will still be taken for the debt.  You can file form 8379 with your tax return, or you can file it by itself once your tax return is processed and you discover your refund was taken. 

https://www.irs.gov/forms-pubs/about-form-8379