The catch -- the *replaced* player must leave within 3 seconds, however, when does he become a replaced player?
The oncoming substitute must communicate to a player that he has been substituted. At that point, he is now a replaced player and should leave within 3 seconds. As officials many yards away from all players involved, it's hard for us to say exactly when that communication occurred and that leaves us with a bit of an enforcement quandary if we're trying to go by the book.
I'd say the vast majority of the time that a team is lined up with 12 players, it's because a player thought they should be on the field in whatever formation/group they're running and didn't actually communicate with anybody that they were being replaced. A coach said "Nickel Defense" and a guy runs on and assumes that somebody else is coming off, because they're not in the Nickel Defense group, but the new guy doesn't communicate at all. Sure, Bubba should know he's not on the Nickel Defense, but how do we, as officials, know who isn't supposed to be there? If it takes an extra few seconds for Bubba to realize he shouldn't be there, I don't think we need to be overly officious and penalize him because he was being distracted by the cheerleaders.
The exception to this would be if one team was trying to gain an advantage by having 12+ players on the field until they saw how the other team lined up and then some guys ran off.
In practice, we can use the 3 second rule to kill the play before it starts for illegal substitution by saying "The 12th player should have been off in 3 seconds, and it's been 15 and the snap is imminent, so he clearly didn't get the message" rather than flagging the defense before the offense breaks the huddle because "It's a foul since it took him 3.1 seconds to get off the field" -- and conversely, there's no foul for "breaking the huddle with 12" like so many coaches yell.