Skip to main content
QUICK REVIEW

[Paper Review] How Deep Neural Networks Learn Compositional Data: The Random Hierarchy Model

Francesco Cagnetta, Leonardo Petrini|arXiv (Cornell University)|Jul 5, 2023
Domain Adaptation and Few-Shot LearningComputer Science56 references4 citations
TL;DR

This paper introduces the Random Hierarchy Model (RHM), a synthetic framework to study how deep neural networks learn compositional data through hierarchical feature composition. It shows that deep networks overcome the curse of dimensionality by learning invariant representations to equivalent sub-features, and that sample complexity scales polynomially as P∗ ≈ n_c m^L, matching the point where low-level feature-class correlations become detectable.

ABSTRACT

Deep learning algorithms demonstrate a surprising ability to learn high-dimensional tasks from limited examples. This is commonly attributed to the depth of neural networks, enabling them to build a hierarchy of abstract, low-dimensional data representations. However, how many training examples are required to learn such representations remains unknown. To quantitatively study this question, we introduce the Random Hierarchy Model: a family of synthetic tasks inspired by the hierarchical structure of language and images. The model is a classification task where each class corresponds to a group of high-level features, chosen among several equivalent groups associated with the same class. In turn, each feature corresponds to a group of sub-features chosen among several equivalent ones and so on, following a hierarchy of composition rules. We find that deep networks learn the task by developing internal representations invariant to exchanging equivalent groups. Moreover, the number of data required corresponds to the point where correlations between low-level features and classes become detectable. Overall, our results indicate how deep networks overcome the curse of dimensionality by building invariant representations, and provide an estimate of the number of data required to learn a hierarchical task.

Motivation & Objective

  • Understand the sample complexity required for deep neural networks to learn hierarchical, compositional data structures.
  • Investigate why deep networks generalize well despite high-dimensional input spaces, where traditional methods face the curse of dimensionality.
  • Characterize the role of hierarchical feature composition and invariance to equivalent sub-features in enabling efficient learning.
  • Determine whether the sample complexity of deep networks aligns with detectable correlations between low-level features and class labels.

Proposed method

  • Propose the Random Hierarchy Model (RHM), a synthetic classification task with a hierarchical composition of features: classes → high-level features → sub-features → low-level features, with m equivalent representations at each level.
  • Use a random assignment of equivalent sub-features to high-level features to model structural randomness while preserving compositional hierarchy.
  • Train deep neural networks (CNNs and MLPs) and kernel methods (NTK) on RHM data to compare generalization behavior across architectures.
  • Measure sample complexity P∗ as the number of training examples at which test error drops significantly, and correlate it with detectable feature-class correlations.
  • Apply k-means clustering and orthogonalization in layerwise training to analyze internal representation invariance.
  • Estimate effective dimensionality of hidden representations using nearest-neighbor distances to track dimensionality reduction across layers.

Experimental results

Research questions

  • RQ1What is the sample complexity P∗ for learning hierarchical, compositional tasks using deep neural networks?
  • RQ2Does the sample complexity P∗ correspond to the point where correlations between low-level features and class labels become detectable?
  • RQ3How does the network’s ability to learn invariant representations to equivalent sub-features relate to sample efficiency?
  • RQ4Why do deep networks outperform shallow networks and kernel methods in learning hierarchical tasks?
  • RQ5How does the depth and architecture (CNN vs. MLP vs. kernel) affect the sample complexity and generalization behavior?

Key findings

  • Sample complexity P∗ scales polynomially as P∗ ≈ n_c m^L, where n_c is the number of classes, m is the number of equivalent sub-features, and L is the hierarchy depth.
  • P∗ coincides with the number of training examples at which correlations between low-level features and class labels become statistically detectable.
  • Deep networks learn internal representations invariant to exchanges of equivalent sub-features, which enables dimensionality reduction and efficient learning.
  • In the lazy regime (NTK), kernel methods suffer from the curse of dimensionality and do not converge to zero error, unlike feature-learning deep networks.
  • Layerwise training with clustering and orthogonalization shows a √v advantage over end-to-end training, suggesting that hierarchical invariance is key to sample efficiency.
  • Effective dimensionality of internal representations decreases monotonically across layers, confirming that deep networks reduce the effective input dimensionality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.