Skip to main content
QUICK REVIEW

[Paper Review] Which Learning Algorithms Can Generalize Identity-Based Rules to Novel Inputs?

Paul Tupper, Bobak Shahriari|arXiv (Cornell University)|May 12, 2016
Neural Networks and ApplicationsComputer Science6 citations
TL;DR

This paper introduces a formal framework to determine when learning algorithms fail to generalize identity-based rules—such as requiring two identical elements in a word—to novel inputs. It proves that symmetric algorithms, including multilayer feedforward neural networks with both localist and distributed encodings, cannot learn such rules unless trained on nearly all possible inputs, explaining why deep learning models struggle with algebraic generalization despite architectural depth.

ABSTRACT

We propose a novel framework for the analysis of learning algorithms that allows us to say when such algorithms can and cannot generalize certain patterns from training data to test data. In particular we focus on situations where the rule that must be learned concerns two components of a stimulus being identical. We call such a basis for discrimination an identity-based rule. Identity-based rules have proven to be difficult or impossible for certain types of learning algorithms to acquire from limited datasets. This is in contrast to human behaviour on similar tasks. Here we provide a framework for rigorously establishing which learning algorithms will fail at generalizing identity-based rules to novel stimuli. We use this framework to show that such algorithms are unable to generalize identity-based rules to novel inputs unless trained on virtually all possible inputs. We demonstrate these results computationally with a multilayer feedforward neural network.

Motivation & Objective

  • To establish a formal criterion for when learning algorithms cannot generalize identity-based rules to unseen inputs.
  • To identify the core structural limitation—symmetry invariance—that prevents algorithms like standard neural networks from learning such rules.
  • To demonstrate that even deep feedforward networks with multiple hidden layers fail to generalize identity-based grammars when novel segments appear.
  • To contrast algorithmic limitations with human-like generalization, where subjects readily infer identity rules from limited training data.
  • To provide a rigorous, formal foundation for previously informal claims about 'variable instantiation' and 'generalization outside the training space'.

Proposed method

  • The authors define learning algorithms as functions mapping training data to model parameters, then to output scores for new inputs.
  • They introduce the concept of symmetry invariance: an algorithm is invariant under a transformation if its output remains unchanged when inputs are transformed by that symmetry.
  • A key theoretical result proves that if both the algorithm and training data are invariant under a symmetry, the algorithm cannot learn a grammar that breaks that symmetry.
  • The paper applies this framework to identity-based rules, identifying a specific symmetry (permuting identical segments) that such rules do not respect.
  • The framework is tested computationally using multilayer feedforward neural networks with localist and distributed encodings (k=26) on a two-letter word task.
  • Experiments use L-BFGS optimization with 1–3 hidden layers (256–1024 units), and evaluate scores on novel inputs like YY, ZZ, YZ, and ZY.

Experimental results

Research questions

  • RQ1Under what conditions can a learning algorithm fail to generalize identity-based rules to novel inputs?
  • RQ2Why do standard connectionist models and feedforward neural networks fail to learn identity-based rules despite deep architectures?
  • RQ3What formal criterion can distinguish algorithms that can and cannot generalize such rules?
  • RQ4How does symmetry invariance in algorithms prevent them from learning non-invariant grammars, even with extensive training?
  • RQ5Can distributed representations or weight sharing overcome this fundamental limitation in neural networks?

Key findings

  • Neural networks with localist encoding assign similar scores (~0.3–0.5) to both grammatical words like YY and ungrammatical ones like YZ, failing to distinguish identity-based rules.
  • Even with distributed encodings, networks give high scores (>0.5) to both YY and YZ, showing no discrimination between grammatical and ungrammatical novel inputs.
  • Adding more hidden layers (up to three) does not improve generalization, as scores for YY, ZZ, YZ, and ZY remain statistically indistinguishable.
  • The failure is not due to input representation alone, as the same poor performance persists across both localist and distributed encodings.
  • Theoretical analysis confirms that any algorithm invariant under segment permutation symmetry cannot learn identity-based rules unless the training data breaks that symmetry.
  • Deep learning architectures, despite their capacity, do not overcome this fundamental symmetry-based limitation in generalizing algebraic rules.

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.