Brain size is not a decisive factor in estimating intelligence and corvid brains pack twice the neurons per volume compared to humans. The factor is: effective "Information Processing Capacity" (IPC), which is high for body size and rivals great apes on specific executive tasks.
Extreme miniaturization eliminates travel distance, giving near-zero latency and high metabolic efficiency despite 1/5th the neurons of a chimp.