Rarity-Gated Context Conditioning for Offline Imitation Learning-Based Maritime Anomaly Detection

Yongmin Kim, ByeongHoon Jeon, Sungil Kim
6/11/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Contextual anomaly detection aims to identify abnormal behavior conditional on context variables, but practical deployments often face highly imbalanced context distributions where rare regimes can be critical information. Under such frequency bias, context-conditioned models can produce unstable decisions and excessive false alarms in rare contexts. We propose Rarity-Gated Feature-wise Linear Modulation (RGFiLM), a rarity-aware conditioning module that combines feature-wise modulation (i.e., context-conditioned scaling and shifting of hidden features) with a gate controlled by a data-driven rarity score. The rarity score is estimated from the empirical distribution of context variables and regulates how strongly context modulates intermediate representations: the gate becomes more decisive under rare contexts while remaining conservative under frequent contexts. We evaluate RGFiLM on maritime trajectory anomaly detection using AIS motion sequences with ERA5 environmental context in an environment-sensitive detour scenario. When instantiated in a sequential anomaly scoring pipeline, RGFiLM achieves the best mean F1--False Positive Rate (FPR) trade-off among the compared context-agnostic and context-conditioned methods. These results suggest that explicitly accounting for context rarity is an effective approach for reducing false alarms in context-sensitive anomaly detection.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kim2026raritygated,
  title  = {Rarity-Gated Context Conditioning for Offline Imitation Learning-Based Maritime Anomaly Detection},
  author = {Yongmin Kim and ByeongHoon Jeon and Sungil Kim},
  year   = {2026},
  eprint = {2606.13311},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.13311v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.13311.svg)](https://codeofpaper.com/paper/2606.13311)

Discussion