Embracing Ambiguity: Improving Similarity-oriented Tasks with Contextual Synonym Knowledge