Inferensys

Glossary

Siamese RF Networks

A twin-branch neural architecture that learns similarity metrics between pairs of RF signal samples, commonly used for one-shot emitter identification and signal verification tasks.
Product manager reviewing autonomous task execution dashboard on laptop, completed tasks visible, casual work session.
SIMILARITY LEARNING ARCHITECTURE

What is Siamese RF Networks?

A twin-branch neural architecture that learns a similarity metric between pairs of radio frequency signal samples, enabling one-shot emitter identification and signal verification without retraining on new classes.

A Siamese RF Network is a neural architecture consisting of two identical subnetworks that process distinct RF signal inputs in parallel, sharing weights to map both samples into a common embedding space where their similarity can be measured. The network is trained using a contrastive loss or triplet loss function that minimizes the distance between embeddings of signals from the same emitter while maximizing the distance between embeddings from different emitters, effectively learning a discriminative metric rather than explicit class boundaries.

This architecture excels at one-shot emitter identification, where a model must recognize a previously unseen transmitter given only a single reference sample. By computing the embedding distance between a query signal and a stored reference, the network determines whether they originate from the same hardware source based on learned RF fingerprinting features. Siamese networks are particularly valuable in signal intelligence and physical layer authentication scenarios where emitter classes are not known in advance and the system must generalize to novel devices without retraining.

ARCHITECTURAL COMPONENTS

Key Features of Siamese RF Networks

Siamese RF networks are twin-branch neural architectures that learn similarity metrics between pairs of RF signal samples. The following cards break down the core mechanisms enabling one-shot emitter identification and signal verification.

01

Twin-Branch Weight Sharing

The defining architectural constraint of Siamese networks: two identical subnetworks process two distinct input samples (e.g., an anchor IQ sequence and a query IQ sequence) with exactly the same weights. This weight-tying guarantees that both inputs are mapped to the same embedding space, ensuring that the computed distance between them is semantically meaningful. Without weight sharing, the network could map identical signals to arbitrary, incomparable locations. During backpropagation, gradients from both branches are summed to update the shared parameters, effectively doubling the batch diversity for the encoder.

Identical
Weights Per Branch
Summed
Gradient Update
02

Contrastive Loss Functions

Siamese RF networks are trained using metric learning objectives that minimize intra-class distance and maximize inter-class distance. The classic Contrastive Loss takes a pair and a binary label (same emitter or different) and penalizes similar pairs that are far apart and dissimilar pairs that are too close within a margin. Modern implementations often use Triplet Loss, which operates on an anchor, a positive sample, and a negative sample, enforcing that the anchor is closer to the positive than the negative by a fixed margin. This directly optimizes for a k-NN classifier downstream.

Triplet
Common Loss Type
Margin
Separation Parameter
03

One-Shot Emitter Identification

The primary operational advantage of Siamese architectures is one-shot learning. After training, the network can identify a new, previously unseen emitter given only a single reference sample. The process works by:

  • Encoding the single support sample of the new emitter into an embedding vector.
  • Encoding incoming query signals into the same space.
  • Classifying the query by finding the nearest neighbor support embedding using Euclidean or cosine distance. This eliminates the need to retrain a classifier every time a new device appears on the network, which is critical for dynamic spectrum environments.
1
Support Samples Needed
Nearest Neighbor
Classification Method
04

Embedding Space Visualization

The output of a trained Siamese encoder is a dense, low-dimensional vector (e.g., 128-d or 256-d) that represents the RF fingerprint of a transmitter. These embeddings can be projected into 2D using t-SNE or UMAP for analysis. A well-trained model produces tight, isolated clusters for each unique emitter, even if those emitters were never seen during training. The distance between cluster centroids corresponds to the dissimilarity in hardware impairments. This latent space serves as a semantic map of the RF environment, where proximity implies physical similarity.

128-256
Typical Embedding Dims
t-SNE/UMAP
Visualization Tools
05

Distance Metric Selection

The choice of distance function in the embedding space critically impacts verification performance. Common metrics include:

  • Euclidean Distance (L2): Sensitive to absolute vector magnitude, standard for triplet loss.
  • Cosine Similarity: Measures angular separation, robust to variations in signal power or embedding norm.
  • Mahalanobis Distance: Accounts for the covariance structure of the embedding distribution, useful when certain feature dimensions are more variable than others. The distance threshold for accepting or rejecting a match is typically calibrated on a validation set to achieve a target false acceptance rate (FAR).
Cosine
Power-Invariant Metric
FAR
Threshold Calibration
06

Hard Negative Mining

Training a Siamese network to convergence requires careful selection of training pairs. Hard negative mining is the strategy of selecting negative samples that are difficult to distinguish from the anchor—those that the current model maps close to the anchor in embedding space. Presenting these challenging cases accelerates learning and prevents the loss from flatlining at zero. In RF domains, hard negatives are often signals from different transmitters of the same make and model, forcing the network to learn subtle hardware-specific impairments rather than gross features like bandwidth or center frequency.

Same Model
Hard Negative Source
Accelerated
Convergence Speed
SIAMESE RF NETWORKS

Frequently Asked Questions

Explore the core concepts behind twin-branch neural architectures used for learning similarity metrics between pairs of radio frequency signal samples, enabling one-shot emitter identification and signal verification.

A Siamese RF Network is a twin-branch neural architecture designed to learn a similarity metric between pairs of raw radio frequency signal samples, rather than classifying them into predefined categories. The architecture consists of two identical subnetworks with shared weights that process two distinct inputs—such as two IQ sequences—in parallel. Each branch computes a high-dimensional embedding vector for its input. A distance metric, typically Euclidean distance or cosine similarity, is then calculated between these two embeddings. The network is trained using a contrastive loss or triplet loss function that minimizes the distance between pairs from the same emitter (genuine pairs) and maximizes the distance between pairs from different emitters (impostor pairs). This twin-branch design is particularly powerful for one-shot emitter identification, where the system must verify a signal against a single reference sample without retraining on new device classes.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.