In NLP, what does the term gradient usually refer to?

  • AThe slope of a curve in a decision tree
  • BThe rate of change of loss with respect to model parameters
  • CThe frequency of words in a text corpus
  • DA type of language model
Show answerHide answer

Correct answer B

In NLP, a gradient shows how much the loss changes when model parameters change. It is used in training neural networks to improve predictions. Gradients guide optimization algorithms like gradient descent. They help the model learn by adjusting weights in the right direction. Without gradients, deep learning models cannot improve their accuracy.