Learning to Generalize for Cross-domain QA