# ContextShift: A Controlled Benchmark for Context Dependence in Object Detection

*Dan Zlotnikov, Alex Lazarovich, Ohad Ben-Shahar*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/139652) · [OpenReview](https://openreview.net/forum?id=DDUVPd74o7) · [alphaXiv](https://www.alphaxiv.org/abs/2606.09495) · [Open on the map](../papers.html#p139652)

Category: [Graphs, OOD Detection & Medical Imaging](../pcat/7.md) › [Open-World Object Detection](../pgroup/615.md) · Type: benchmark or dataset · Keywords: object detection, context dependence, benchmark, evaluation, augmentation, computer vision

Areas: [Evaluation & Benchmarks](../areas/evaluation.md) › Visual Multimodal Evaluation › Benchmark Evaluation; [Evaluation Methodology & Auditing](../areas/eval-methodology.md) › Interpretability and Explanation Quality › Evaluation metrics; [Computer Vision & 3D](../areas/computer-vision.md) › Visual Multimodal Perception › Open-Vocabulary Visual Recognition

## Summary
ContextShift is a controlled benchmark that isolates context variation in object detection, revealing performance degradation patterns not captured by standard metrics.

## Explained to a 5-year-old
We made a new test for robots that look at objects in different surroundings. The test changes the background or the objects' positions while keeping the objects the same. It shows that the robots sometimes miss objects when the surroundings are weird. We also found that training with varied backgrounds helps the robots see better. This helps make robots that work well in real life.

## Explained to a 5-year-old, longer
The researchers wanted to know how well object detectors work when the things around the objects change. They created a special test that only changes the context, not the objects themselves. The test uses different backgrounds and moves objects around in a controlled way. They measured how often the detectors missed objects, found extra objects, or kept the same. The results showed that detectors often missed objects when the context was very different. They also saw that detectors sometimes stopped making predictions at all. The study found that performance was best when the context was neither too similar nor too different. Finally, they tried training detectors with extra varied backgrounds, which helped them see objects better even in the new contexts.

## For a technical reader
The paper introduces a benchmark that isolates context as an independent variable for object detection evaluation. It manipulates object-context relationships through geometric transforms and background substitutions, using NPMI to quantify statistical compatibility. Experiments across multiple detector architectures reveal consistent degradation patterns, with large increases in false negatives and drops in prediction volume, while false positives remain stable. Context-aware data augmentations during training improve performance on both original and manipulated test sets, showing that targeted augmentation can mitigate context-induced suppression.

## Problem
Object detectors' robustness to contextual variation is not well understood because existing benchmarks conflate multiple factors and obscure performance degradation under context changes. There is a need for a controlled evaluation that isolates context as an independent variable to study how detectors behave when object-context relationships change.

## Method
The approach builds a benchmark on COCO 2017 that manipulates object-context relationships via geometric transformations and background substitutions, introducing a statistical compatibility axis based on NPMI. It evaluates detectors across architectures, measuring false negatives, false positives, and prediction volume under systematic context changes.

## Results
The approach shows up to 227% increase in false negatives and up to 44% decrease in prediction volume under context changes, while false positives remain stable. Performance peaks at intermediate statistical compatibility (NPMI) and degrades toward extremes, and context-aware augmentations improve results on both original and manipulated images.

## Contributions
The paper provides a controlled benchmark that isolates context variation, introduces a statistical compatibility axis, and demonstrates systematic degradation patterns not captured by standard metrics. It also shows that context-aware data augmentations can mitigate performance loss.

## Practical relevance
It offers a reliable evaluation tool for developing robust object detectors in real-world varying contexts and demonstrates that context-aware training can improve model performance.

## Research questions this paper is counted under

- [How can we measure and mitigate the impact of contextual cues on vision model performance?](../q/365.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/139652)
