gradient-based NLP models