In AI, sycophancy is a model's tendency to give answers that match a user's views or implied expectations even when the evidence does not support them. The term is used in evaluating the reliability and safety of large language models. Unlike hallucination, which involves fabricating information, sycophancy concerns going along with a user's claims or expectations regardless of their accuracy. In ordinary English, the word means ingratiating oneself with someone for advantage.
Reinforcement learning from human feedback (RLHF), which rewards responses people prefer, is often cited as one cause of the behavior.