Original: Although Alfred's family is depicted in the film as having served the Wayne family for generations, Caine created his own backstory, in that before becoming Wayne's butler, Alfred served in the Special Air Service.
Simplified: Although Alfreds family is depicted in the film as having served the Wayne family for generations, Caine created his own backstory, in that before becoming Waynes butler, Alfred served in the Special Air Service.