In changing seas and oceans, cephalopods like the cuttlefish and the giant Pacific octopus must rely on their remarkable intelligence to survive.