There's some confusion here. There's two types of yellow you could be seeing in a lens.
The first is a yellow tint of the anti-reflective lens coating. This is caused by the specific coating of the lens, and the composition and thickness of it. The coatings applied to camera lenses are completely transparent as far as the light passing through the lens are concerned, but because of the specific wavelength that the coating is optimized for, the light that bounces off the coating can appear to our eyes to be yellow, blue, purple or theoretically any color in the visible spectrum the coating is optimized for. This is all fine, and of no concern.
Rick Oleson has a good page on lens coatings on his site:
https://web.archive.org/web/20180704141153/http://rick_oleson.tripod.com/index-166.html
There is then yellowing of specific glass elements in the lens caused by the presence of Thorium in the composition of the glass itself. This was done because the presence of Thorium allowed designers to make glass with a higher refractive index, in other words, you could make a thinner, less curved lens, that bends the light in the same way as a thicker more curved lens made out of a different type of glass.
The tradeoff here, is that because Thorium is mildly radioactive, the radiation will over a period of many years cause the glass to yellow. This may cause a yellow tint to be applied to the photos taken, but more importantly, it can also reduce light transmission through the lens. This person tested that, and found that it could be as much as a 50% loss, which is a full stop:
The yellowing itself is caused by electrons in the atoms of the glass being energized by the radiation, and jumping to a higher electron state. You can force these electrons to go back to their ground state and thus clear the lens, but to do so you need to actually energize them more so they can jump up and fall back down to their lowest state. By applying light you can accomplish this, and any light will work, but the photons of ultraviolet have greater energy than those of visible light, so use of UV light will do so more quickly.