Are small cities the smartest?

Are small cities the smartest?
When you hear of urban transformations, you tend to think of high-rise mega-cities like Shanghai, Dubai or Hong Kong. Or if it's technological advances, San Francisco and Silicon Valley might come to mind.