NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MARLIN: Multiscale And Directional Sparse Representation Learning for Imbalanced SAR Ship Classification

Benyamin Hosseiny, Kamirul Kamirul, Odysseas Pappas, Alin AchimarXiv 2026

Synthetic Aperture Radar (SAR) is the "superpower" of maritime surveillance. Unlike optical cameras, SAR can see through clouds, smoke, and total darkness. However, identifying exactly what kind of ship is in a grainy radar image is notoriously difficult. Between the "long-tail" problem (where some ship types are much rarer than others) and the fact that different ships can look nearly identical in radar backscatter, standard deep learning models often struggle.

A new paper from researchers at the University of Bristol introduces MARLIN, a framework specifically engineered to handle the geometric and statistical quirks of SAR ship data.

TL;DR

MARLIN is a lightweight deep learning framework that uses directional sparse convolutions and a frequency-aware metric learning loss to classify ships in SAR imagery. It outperforms state-of-the-art models on major benchmarks, particularly in "imbalanced" scenarios where some ship categories have very few training examples.

What Problem Does This Paper Address?

Classifying ships in SAR images isn't just a matter of "more data." The field faces three major hurdles:

  1. Geometric Mismatch: Ships are typically elongated, but standard Convolutional Neural Networks (CNNs) use square filters. This leads to a lot of "dead space" in the feature maps.
  2. Scale and Orientation: Ships appear at various angles and sizes, and their radar signatures (backscattering) change drastically depending on their orientation relative to the sensor.
  3. The Imbalance Problem: In the real world, there are thousands of cargo ships for every one dredger or tugboat. Standard models tend to ignore these "minority" classes to achieve high overall accuracy, which is a failure for security or environmental monitoring.

Methods

The authors propose a dual-pronged solution involving a novel architecture and a specialized loss function.

1. The MARLIN Architecture

  • Dual-View Input: Instead of just looking at a tight crop of the ship, MARLIN processes two views in parallel: a high-res central crop for fine details and a pooled contextual view to capture the surrounding sea state and background.
  • Directional Sparse Convolutional Stem: This is the "secret sauce." Instead of standard $3\times3$ filters, MARLIN uses masks to constrain convolutions to specific angles ($0^\circ, 45^\circ, 90^\circ, 135^\circ$). This captures the elongated structure of ships more efficiently and significantly reduces the number of parameters.
  • Hierarchical Multi-Scale Blocks: The model uses parallel branches of dilated convolutions (to see the "big picture") and deformable convolutions (to adapt to irregular ship shapes) to extract features across different scales.

2. Imbalance-Aware Metric Learning

Rather than relying on standard Cross-Entropy loss, which can be biased toward majority classes, MARLIN uses a three-part objective:

  • Cosine-Margin Loss: Pushes classes apart in angular space to make them more discriminative.
  • Frequency-Aware Prototype Compactness: Pulls samples of the same class toward a "prototype" center, with the strength of the pull weighted by how rare the class is.
  • Pairwise Margin Separation: Specifically forces a wider "gap" between classes that are frequently confused, especially when one of them is a minority class.

Datasets

The researchers evaluated MARLIN on three diverse, publicly available SAR datasets:

  • OpenSARShip: The "gold standard" benchmark, using Sentinel-1 C-band data. Tested on both 4-class and 6-class scenarios.
  • FUSAR-Ship: A high-resolution dataset from the Gaofen-3 satellite.
  • NASTaR: A newer dataset using S-band imagery from NovaSAR-1, providing a test for sensor-domain robustness.

Key Insights and Ideas

  • Physics-Informed Priors: By using directional masks, the authors essentially "told" the model that ships are long and thin. This architectural prior allowed them to achieve better results with a lightweight model (0.41 MB to 5.9 MB) than others achieved with massive Vision Transformers.
  • Context Matters: The dual-view approach confirms that the "clutter" around a ship actually contains useful information for classification.
  • Metric Learning > Cross-Entropy: For imbalanced data, shaping the embedding space (the "geometry" of how the model thinks) is more effective than simply re-weighting the final classification layer.

Key Results

MARLIN consistently outperformed heavyweights like ResNet50, EfficientNetV2, and Vision Transformers (ViT).

  • Accuracy: On the OpenSARShip 6-class task, MARLIN achieved 79.1% Overall Accuracy, beating the next best model (SARATR-X) by 3.4%.
  • Balanced Performance: The Average F1-score (AF1), which accounts for class imbalance, saw a massive jump—reaching 59.8% compared to the 56.1% of the previous state-of-the-art.
  • Data Efficiency: In a "low-data" test using only 1% of training samples, MARLIN improved accuracy from 44.0% to 60.9% compared to the baseline, proving its robustness when labels are scarce.

Limitations and Future Work

While MARLIN is highly effective, the authors note that confusion still exists between visually similar categories like "Cargo" and "Tanker," which often share similar dimensions and radar returns.

Future Work: The authors suggest exploring self-supervised pre-training (learning from unlabeled data) to further boost performance in data-scarce environments. There is also potential to integrate polarimetric data (different radar wave orientations) to provide even more structural cues to the directional convolutional layers.

For those interested in the implementation, the code is available on GitHub at github.com/benyaminhosseiny/marlin.

Summary updated

BibTeX
@misc{hosseiny2026marlin,
  author = {Benyamin Hosseiny and Kamirul Kamirul and Odysseas Pappas and Alin Achim},
  title = {{MARLIN: Multiscale And Directional Sparse Representation Learning for Imbalanced SAR Ship Classification}},
  year = {2026},
  eprint = {2611.20065},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20065},
}
Figure