It's not more formal, but it is more extreme. 'Leave' is a neutral word. 'Abandon' is a more emotive word.
For example, if a husband leaves his wife and family, it simply means that he goes away. But if he 'abandons' them, this suggests that he is heartless and selfish, leaving them penniless and having to fend for themselves.