Fact 1: Most invertebrates have a more complex nervous system. 
Fact 2: Cephalopods have well developed nervous systems with complex brains capable of learning.
Most invertebrates have brains capable of learning.