Where does optimization become intelligence?

I understand why the course and researchers prefer a broad definition of AI. A very strict definition would exclude many systems that are commonly classified as AI, even though some of them seem quite far from what I would say intuitively call “intelligence”.

But I still tend to think that AI should have the ability to “think” in order to be considered genuinely intelligent. I realize that defining “thinking” creates another difficult problem, so I am not assuming that I already have a satisfactory definition.

The problem is that pure optimization, no matter how complicated it becomes, does not seem equivalent to thinking. It can still be reduced to a program that adjusts its output according to parameters, which does not seem fundamentally different from a very complicated Excel formula.

What especially makes me uncertain about “adaptivity” is that adapting an output does not seem to be same as reconsidering the criterion used to evaluate that output. For example, a recommendation system can continuously change its recommendations according to user data while still optimizing a goal or evaluation framework that has been externally defined. In that sense, it adapts its answer, but doesn’t necessarily evaluate the standard by which those answers are chosen.

If complexity, variable outputs, and adaptation are not sufficient by themselves, what additional property makes a system intelligent?