Common Variable Learning and Invariant Representation Learning using Siamese Neural Networks

Uri Shaham, Roy R. LedermanarXiv 2015

Introduction

In many scientific and engineering domains, a single underlying phenomenon is observed through multiple disparate sensors. Each sensor provides a unique perspective but also introduces its own specific noise and irrelevant data. This paper explores an unsupervised approach to "learning by coincidence," using Siamese Neural Networks (SNNs) to extract hidden common signals from these noisy, multi-modal data streams without the need for explicit labels or complex mathematical models of the noise.

The Challenge of Unsupervised Signal Extraction

Traditional methods for separating a common "signal" from sensor-specific "noise" typically rely on supervised learning (requiring labeled datasets) or predefined data models. However, in exploratory data analysis—such as monitoring brain activity or meteorological shifts—labels are often unavailable. The authors propose a framework that identifies the common variable by analyzing what occurs simultaneously across different sensors, effectively treating temporal coincidence as a proxy for semantic similarity.

Methodology: Learning by Coincidence

The core of the proposed method is the use of Siamese Neural Networks to learn equivalence classes. Unlike standard SNN applications that measure raw similarity, this framework focuses on mapping high-dimensional inputs into a lower-dimensional "quotient space" where only the shared information remains.

Siamese Neural Network architecture for learning common variables.

The architecture, as shown above, consists of two sub-networks ($N_1$ and $N_2$) that process inputs $s^{(1)}$ and $s^{(2)}$ from different sensors. The training protocol utilizes:

  • Positive Pairs: Measurements taken from different sensors at the same time, which are assumed to share the same underlying state.
  • Negative Pairs: Measurements taken at different times, which are unlikely to share the same state.

By forcing the network to produce identical outputs for coincident pairs and distinct outputs for non-coincident pairs, the model learns to discard any variability (noise) that is not shared between the two inputs.

Experimental Validation: The Spinning Figures Setup

To validate the theory, the authors designed several synthetic experiments. The most illustrative is the "Spinning Figures" dataset, which simulates a multi-sensor environment with conflicting signals.

Experimental setup with three spinning objects and two cameras to isolate the common variable (the Bulldog).

In this setup, three objects (Yoda, a Bulldog, and a Bunny) rotate independently. Camera 1 observes Yoda and the Bulldog, while Camera 2 observes the Bulldog and the Bunny. Here, the Bulldog’s rotation represents the "common variable," while the rotations of Yoda and the Bunny represent sensor-specific noise.

Additional experiments included:

  1. Cross-Modal Learning: One sensor received images of a rotated figure while the other received a sine wave with a frequency corresponding to that rotation angle.
  2. Rotation Invariance: Using the Caltech-101 benchmark to test if the network could learn representations that ignore specific transformations like rotation.

Key Insights and Results

  • Isolating the Signal: In the spinning figures experiment, the SNN successfully ignored the "noise" from Yoda and the Bunny. Visualization of the output revealed a perfect circular manifold, representing the hidden rotation angle of the shared Bulldog.
  • Cross-Modal Success: The network achieved 95.8% accuracy in identifying coincident pairs between image and audio data, demonstrating its ability to bridge entirely different data modalities to find a shared truth.
  • Superiority over Deep CCA: When compared to Deep Canonical Correlation Analysis (Deep CCA), the Siamese approach was significantly more effective at discarding superfluous variables. While Deep CCA attempted to correlate all available data (including noise), the SNN focused exclusively on the common signal.

Conclusion and Future Directions

This research provides a robust mathematical and empirical foundation for using Siamese Neural Networks as a "filter" for common variables. By relying on temporal coincidence rather than raw input similarity, the method can capture highly non-linear relationships that traditional linear methods miss.

While the current results are based on synthetic data and require perfect sensor synchronization, the implications for real-world applications are significant. Future work may involve applying this "learning by coincidence" to complex biological data, such as identifying shared patterns in epileptic seizures across different brain regions, and optimizing architectures with domain-specific layers like Convolutional Neural Networks.

Summary updated

BibTeX
@misc{shaham2015common,
  author = {Uri Shaham and Roy R. Lederman},
  title = {{Common Variable Learning and Invariant Representation Learning using Siamese Neural Networks}},
  year = {2015},
  eprint = {1512.08806},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1512.08806},
}
Figure