We will discuss a new computing paradigm enabled by co-designed 3D photonic and electronic integrated circuits (3D EPICs) architected for hierarchical learning. The proposed 3D EPICs consist of spiking photonic neural networks and electronic neural networks to pursue best-of-both-worlds' benefits from photonic and electronic computing.