Parameter Symmetry Breaking and Restoration Determines the Hierarchical Learning in AI Systems