OFBD: Object-Focused Background Debiasing for Long-Tailed Learning

shenghan chen, Yiming Liu, Zhipeng Deng, Haolin Wang, Jiale Zhou, Zhijian Wu, Xiankai Lu, Yafei Ou, Yefeng ZhengNeurIPS 2026

TL;DR

When computer vision models fail on rare ("tail") classes in imbalanced datasets, we usually blame a sheer lack of training examples. This paper uncovers asneakier culprit: because rare objects only appear in a handful of photos, models take a lazy shortcut and memorize their backgrounds instead of the objects themselves. By forcing the network to decouple objects from their surroundings—using smart image-mixing and parameter-free feature cleanup—the authors significantly boost accuracy on rare classes without hurting common ones.

What Problem Does This Paper Address?

Real-world visual data is almost always "long-tailed": you have thousands of photos of golden retrievers ("head" classes) and maybe ten photos of snow foxes ("tail" classes). Standard neural networks notoriously flop on these tail classes.

Historically, researchers assumed this was purely a numbers game, fixing it by oversampling rare images or tweaking loss weights. Yet, few-shot learning proves that models can learn rich representations from tiny datasets. So why do long-tailed models fail so badly?

The authors find that sample scarcity triggers a severe background bias. If you have 5,000 photos of dogs in parks, living rooms, and beaches, the background becomes useless noise, forcing the model to learn "dog." If you have 10 photos of snow foxes—all on snow—the snow becomes a seductive predictive shortcut. During training, gradients from these spurious background cues hijack optimization, causing the model's attention on tail classes to bleed into the scenery rather than focusing on the target object.

Figure 1: Motivation of OFBD. Tail-class degradation stems from both sample scarcity and back- ground bias in distribution and optimization. (a) Head classes possess diverse, class-agnostic backgrounds (BGs), making background representations (BG-Rep.) uninformative for classification. Conversely, tail classes often co-occur with class-correlated BGs (e.g., snow fox in snowy scenes), which makes BG-Rep. a predictive shortcut and encourages reliance on BG cues over sparse fore- grounds. Gray dashed lines denote BG-based decision boundaries. (b) Optimization-level background bias. “Head” and “Tail” represent the evaluation results under the long-tailed setting, while “All” indicates the overall result on the full balanced dataset. (c) Attention maps reveal that tail predictions co-activate foregrounds and backgrounds, whereas head predictions remain object-focused.

Methods

To cure background reliance without using external data or giant pretrained models, the authors propose Object-Focused Background Debiasing (OFBD), a plug-and-play framework with two core modules:

  1. Foreground-guided CutMix (FG-CutMix): Standard CutMix randomly pastes image patches onto other images, which risks pasting empty background or chopping off a rare object. Instead, FG-CutMix uses a lightweight Reinforcement Learning (RL) selector (optimized via Group Relative Policy Optimization, or GRPO) to pick crop regions that preserve the foreground object while swapping out the background. A candidate crop gets rewarded if the classifier still recognizes the target object over the new background's label.
  2. Background-guided Feature Rectification (BFR): Even with diverse backgrounds, optimization still leans toward easy background gradients. BFR cleans up the feature map right before classification. Crucially, it is strictly parameter-free—adding learnable layers here would just let abundant head classes dominate the weights. Instead, BFR uses channel-wise activation statistics (measuring how much a spatial location deviates from the channel mean) to estimate a "background score" for each pixel region and softly subtracts those background-heavy features from the final representation.

Datasets

The authors evaluate OFBD on four standard long-tailed image classification benchmarks (no new datasets are introduced):

  • CIFAR-10-LT and CIFAR-100-LT (tested across imbalance ratios from 10 up to 400, where the most common class has up to 400x more samples than the rarest).
  • ImageNet-LT (large-scale object recognition).
  • iNaturalist 2018 (a naturally imbalanced, real-world dataset of species).

Key Insights and Ideas

  • Perfect segmentation makes for bad augmentation: You might think using an off-the-shelf segmentation tool like SAM or CAM to cut out the exact object would beat an RL selector. Surprisingly, the RL selector wins (+1.76% over SAM). Exact object cutouts remove too much context and weaken regularization, whereas RL learns to grab partial object views that hit the sweet spot between target preservation and background perturbation.
  • Parameter-free is a feature, not a compromise: Tail-class background gradients fluctuate wildly during training. Making BFR purely statistical prevents data-rich head classes from hijacking learnable debiasing parameters, keeping tail-class cleanup stable.
  • True shortcut breaking: When evaluated on a "background-swap" test on ImageNet-LT (placing objects onto unfamiliar backgrounds), adding OFBD boosts accuracy by +7.02%, while dropping accuracy when fed background-only images. The model genuinely learns to ignore the scenery.

Key Results

OFBD acts as a universal plug-in across CNNs (ResNet) and Vision Transformers (ViT), improving 40 out of 42 experimental settings on CIFAR-LT:

  • Massive tail gains: On CIFAR-100-LT (imbalance ratio 100) with standard cross-entropy, OFBD boosts overall accuracy by +6.51%, driven by a massive +14.79% jump (from 9.14% to 23.93%) on the rarest "Few" classes.
  • Stacking with state-of-the-art: Even when plugged into strong modern baselines like BCL, GBG, and MKP, OFBD adds another +1.2% to +2.35% overall on CIFAR-100-LT and +2.4% to +7.4% on tail classes, with virtually zero degradation on head classes.
  • Large-scale generality: On ImageNet-LT and iNaturalist 2018, OFBD improves standard ResNet-50 training by +2.59% and +3.81%, respectively, and boosts ViT-B by +1.66% and +2.39%.

Limitations and Future Work

The authors note that OFBD has thus far been tested on standard object-centric benchmarks; how well its statistical foreground/background separation holds up in domains with highly complex, entangled scenes—such as medical imaging—remains an open question. For future work, because OFBD is a lightweight plug-in, they suggest extending it beyond image classification to other long-tailed vision tasks like object detection and trajectory prediction.

Summary updated

Abstract

Balancing performance trade-offs on long-tailed data distributions remains a long-standing challenge in visual recognition. Existing methods mainly improve tail classes through re-balancing, representation learning, or data augmentation, but the underlying cause of tail class degradation is still insufficiently explored. In this paper, we find that standard long-tailed training induces background-biased representation and optimization: tail classes suffer larger background distribution shifts and become increasingly driven by background gradients. This reveals that tail degradation is not merely caused by insufficient samples, but also by the learning of irrelevant background features. To tackle this issue, we propose Object-Focused Background Debiasing (OFBD), a framework that mitigates background bias from both distribution and optimization perspectives. Specifically, Foreground-guided CutMix preserves target-related foregrounds while diversifying complementary backgrounds, and Background-guided Feature Rectification suppresses background-biased features without learnable parameters or additional training. Extensive experiments show that our method improves overall accuracy, achieves significant tail-class gains, and can serve as a plug-in for mainstream long-tailed methods without external data or pretrained recognition models. The code is available at: https://ofbd-neurips2026-longtail-learning.github.io/
BibTeX
@inproceedings{chen2026ofbd,
  author = {shenghan chen and Yiming Liu and Zhipeng Deng and Haolin Wang and Jiale Zhou and Zhijian Wu and Xiankai Lu and Yafei Ou and Yefeng Zheng},
  title = {{OFBD: Object-Focused Background Debiasing for Long-Tailed Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=OuD9gP9e2o},
}
Figure