From a tax standpoint, there is no difference: both a regular bonus and a retention bonus are treated the same as any other income from your employer.
The distinction is really about purpose. A bonus is typically awarded for achieving certain results, either personally or as part of an organization, such as perfect attendance or completing a big project on time, and the amount is usually at the employer's discretion. A retention bonus, on the other hand, is an incentive to keep you with the company for a set period or through a specific event. For instance, if a company is being sold and needs you to stay until a system is transitioned to the new owners, you might be promised a bonus for sticking around until that milestone is reached.