Over-the-counter pain relievers can help in the short term. A cold compress on the outside of your face can also reduce swelling. Avoid putting aspirin directly on the gum tissue, as it can cause irritation.