Inference. The top-left panel shows the inferred latent trajectories of several trials. In each trial the network started at the initial state, eventually reached either choice (indicated by the color) after the stimulus onset, and finally went back around the initial state after receiving reset signal. The rest three panels show the phase portraits of inferred dynamical system revealing the bifurcation and how the network dynamics were governed at different phases of the experiment. At the spontaneous phase (when the network receive no external input), the latent state is attracted by the middle sink. After the stimulus is onset, the middle sink disappears and the latent state falls into either side driven by noise to form a choice. When the reset is onset, the latent state is pushed back to the only sink that is close to the middle sink of the spontaneous phase, and then the network is ready for a new trial.