The aim of this project is to understand, from the perspective of structural balance theory, how the internal organization of deep neural networks emerges during learning and how this organisation relates to their ability to fit data and generalize to unseen data. By representing neural networks as signed graphs, where neurons are nodes and positive and negative interactions are signed edges, structural balance theory provides a mathematical framework for studying the global organization of interactions within a network. In particular, the frustration index quantifies the distance of a signed network from structural balance and can therefore be used to characterise changes in the organization of neural network parameters during training. Evidence from pretrained convolutional networks (CNNs) and recurrent networks (RNNs) indicates that their frustration can be lower than their associated null models, suggesting that training produces a more ordered signed structure. Building on this observation, we want to study how structural balance emerges during training, which architectural or optimization mechanisms produce it, and whether it is systematically related to functional properties such as generalization, robustness and the representation of informative features.