Experimental studies have revealed that the refinement of early, imprecise connections in the developing visual system involves activity in the retina before the onset of vision. We study the evolution of initially random unidirectional connections between two excitable layers of FitzHugh-Nagumo neurons with simulated spontaneous activity in the input layer. Lateral coupling within the layers yields synchronous neural wave activity that serves as a template for the Hebbian learning process, which establishes topographically precise interlayer connections. (c) 2001 American Institute of Physics.