Paper commentary
Deep Gradient Learning for Efficient Camouflaged Object Detection
- Problem Camouflaged objects blend into their background, and boundary- or uncertainty-driven COD models respond to sparse edges, which brings in background noise in cluttered scenes.
- Method DGNet trains a texture branch against an object-level gradient map, keeps a separate context branch, and fuses the two with a gradient-induced transition built on soft grouping and residual addition.
- Results DGNet-S runs at 80 fps with 8.3M parameters, and DGNet runs at 58 fps, both at 352×352 input on one NVIDIA RTX TITAN GPU.

Fig. 3 Overall pipeline of the proposed DGNet. It consists of two connected learning branches, i.e., context encoder (Sec. 3.1) and texture encoder (Sec. 3.2). Then, we introduce a gradient-induced transition (GIT) (Sec. 3.3) to collaboratively aggregate the feature that is derived from the above two encoders. Finally, a neighbor connected decoder (NCD) [2] is adopted to generate the prediction PC (Sec. 3.4).
Original paper · CC BY 4.0 · Ge-Peng Ji, Deng-Ping Fan, Yu-Cheng Chou, Dengxin Dai, Alexander Liniger, Luc Van Gool · Deep Gradient Learning for Efficient Camouflaged Object Detection · Original paper figure · Extracted the figure area from page 4 of the original PDF.Why boundary cues fall short for camouflaged objects
Camouflaged object detection, abbreviated COD in the paper, asks a model to segment objects whose patterns are chosen, or happen, to blend into the background. Its practical reach extends to medical image analysis such as polyp and lung infection segmentation, and to video understanding tasks.
Recent COD models have improved their masks with boundary-based and uncertainty-guided supervision, but those signals live on thin edges. The edges of a camouflaged object are often vague, so edge-driven features respond to sparse pixels and pick up background noise in complex scenes. Fig. 1 shows this for a boundary-supervised model, whose feature map carries diffuse background noise.
The authors observe that some clues remain inside a camouflaged object even when its edges are hard to see, and they propose learning from those interior intensity changes instead of from edges alone.
Object gradient as the supervision target
The supervision target is an object gradient map that is computed from the input image and the object-level ground-truth mask, rather than a boundary label. Each pixel of the map is the Canny edge response of the image multiplied element-wise by the ground-truth mask, so only edge responses that fall on the object survive. The map is written as \[ Z_G = F_E(I(x,y)) \circledast Z_C \], where \( F_E \) is the Canny edge detector applied to the image \( I \) at pixel coordinates \( (x,y) \), and \( Z_C \) is the object-level ground truth.
The circled operator stands for element-wise multiplication.
A plain image gradient would also respond to background texture, and that noise can mislead the optimization of the texture branch. Object boundary labels have the opposite problem: they are sparse and unevenly distributed over the image, which the authors argue makes them a weak target for thin structures. Fig. 1 contrasts the feature maps of the texture branch under boundary supervision and under object gradient supervision, which is the comparison this choice rests on.
Two encoders with separate roles
The context branch passes the image through an EfficientNet backbone and keeps the top three pyramid levels, at stages i = 3, 4 and 5. Each kept level is reduced to Ci channels, giving context features with spatial size Hi by Wi, where Hi and Wi are half the input size at the level. Only the top three levels are kept because they carry the strongest semantics, and lower levels at high resolution would add a heavy cost to the element-wise operations.
Fig. 3 gives the overall pipeline, in which the two encoders feed the transition module and the decoder.
The texture branch is a small encoder of four ConvBR layers, and layer #03 produces a texture feature with Cg channels at one eighth of the input resolution. The texture feature is taken from layer #03, and the following layer #04 is the one supervised by the object gradient map. The texture feature keeps a larger spatial size on purpose, because smaller maps would lose most of the geometric detail.
The two branches are kept separate because low-level and high-level features are not meant to be encoded together, and separation reduces the ambiguity between them.
How the gradient-induced transition fuses the branches
Plain concatenation or addition ignores how context and texture features relate, so the authors build a gradient-induced transition, GIT, as a plug-and-play module. GIT splits each context feature into M groups of Ki = Ci / M channels, and the texture feature into groups of Kg = Cg / M channels. It then pairs group m of the texture feature, down-sampled to match the context resolution, with group m of the context feature, giving a regrouped feature Qi.
Each paired sub-component follows the formula \[ Y_{mi} = \langle F_{\downarrow}(X_{G_m}); X_{R_i,m} \rangle \], where the down-sampling operation \( F_{\downarrow} \) matches the spatial resolution of the texture group. Fig. 4 illustrates the module, with the context feature, the texture feature, the residual connection and the addition.
Soft grouping then passes the regrouped features through three parallel sub-branches, N1, N2 and N3, and each sub-branch splits its input into N subsets. Each subset passes through its own learnable projection, and the projected subsets are concatenated into one sub-branch output \( A^N_i \), which the authors describe as adding soft non-linearity over several sub-spaces.
The sub-branch output is written as \[ A^N_i = \langle F^1_N(Q^1_i); \ldots; F^n_N(Q^n_i); \ldots; F^N_N(Q^N_i) \rangle \].
The sub-branch outputs are summed over the scaling factor set and added back to the context feature through a residual connection, which gives \[ Z_{T_i} = T_i(X_{R_i}, X_G) = X_{R_i} \oplus \sum_{N} A^N_i \]. For DGNet-S the scaling factor set is {8, 16, 32}, with M = 8 groups and Ci = 32; DGNet uses {4, 8, 16} with Ci = 64. The grouping counts and scaling factors are fixed in the configuration, and the projection weights are the parts learned during training.
Decoder, loss and training setup
The neighbor connected decoder receives the three transition outputs and passes information from high to low levels to produce the prediction map.
The total objective adds a segmentation term and an object gradient term, \[ \mathcal{L} = \mathcal{L}_C(P_C, Z_C) + \mathcal{L}_G(P_G, Z_G) \]. The segmentation term is a weighted IoU loss plus a weighted binary cross-entropy loss, and both assign each pixel a weight according to how hard it is. The gradient term is a standard mean squared error loss.
The batch size is 12 and the maximum training epoch is 100, while the backbone starts from ImageNet weights. Each input is resized to 352×352 and augmented with color enhancement, random flipping, random cropping and random rotation. DGNet and DGNet-S took 8.8 and 7.9 hours to converge, and at test time the final output is used directly without post-processing such as DenseCRF.
Accuracy on the three COD benchmarks
NC4K-Te contains 4,121 samples and is used to test generalization. Models are trained on the hybrid COD10K-Tr and CAMO-Tr set of 4,040 samples and evaluated on all three benchmarks.
Five metrics are reported: structure measure, enhanced-alignment measure, F-measure, weighted F-measure and mean absolute error. The comparison covers 20 competitors, 8 SOD-based and 12 COD-based, whose results were taken from public sites or retrained on the same training data with default settings.
On CAMO-Te the structure measure is .839 for DGNet and .820 for SINetV2, and on COD10K-Te it is .822 for DGNet and .815 for SINetV2.
On CAMO-Te, the weighted F-measure is .769 for DGNet against .743 for SINetV2, which the authors report as a 2.6% gain. The authors explain the qualitative advantage by saying that competitors often leave out objects that touch the image border, whereas DGNet locates those targets more completely.
Speed and parameter budget
DGNet-S has 8.3M parameters and uses the EfficientNet-B1 backbone with Ci = 32, whereas DGNet uses EfficientNet-B4 with Ci = 64. The authors report that DGNet-S reaches performance comparable to JCSOD while using 6.82% of its parameters. Compared with JCSOD, DGNet-S has 113.33M fewer parameters.
On one NVIDIA RTX TITAN GPU with 352×352 input, DGNet-S runs at 80 fps and DGNet at 58 fps. In the same table SINetV2 runs at 68 fps, JCSOD at 43 fps and LSR at 31 fps, and R-MGL and S-MGL run at 473×473 input. DGNet-S is the fastest entry in that speed table.
The fps values are timing measurements on the single GPU listed with the table, while the comparable-accuracy statement against JCSOD rests on the benchmark table rather than on the timing run.
What each ablation isolates
Adding the texture branch and GIT increases the parameter count by 0.06M.
Replacing the texture feature with the low-level feature X2 from the context encoder gives a single-stream variant, #05, with CAMO-Te Fwβ of .701 and the same gradient supervision kept. The authors report that decoupling into two streams improves CAMO-Te Fwβ by 5.3%.
Feature visualizations show a cleaner and finer representation after GIT, with background noise suppressed in the context feature.
With M = 1, which means ungrouped features (#07), COD10K-Te Fwβ is 1.0 point lower, and the authors choose M = 8 for the best performance. Scaling factor sets {2, 4, 8} (#11) and {4, 8, 16} (#12) both score below the {8, 16, 32} set of DGNet-S, and the authors read this as a benefit of finer factors. Comparing three, four and five sub-branches, the authors report that adding sub-branches gives unstable performance across the datasets.
Limits: lightweight backbones and hard cases
With MobileNet in place of EfficientNet, the authors find the performance unsatisfactory, and they test only the two MobileNet sizes listed. MobNet-L reaches .820 Sα on NC4K-Te, against .857 for DGNet with EfficientNet-B4.
When the camouflaged object is small, its limited region provides too few texture cues, and the model produces false-positive predictions. SINetV2 is also confused on such samples.
Some camouflaged objects show no noticeable gradient change, and the authors report that extreme cases with rare gradient cues are not handled well.
ZoomNet uses 32.38M parameters, while DGNet with EfficientNet-B4 uses 21.02M.
Three downstream applications
For polyp segmentation, the authors retrain DGNet on the Kvasir-SEG and CVC-ClinicDB training sets and test on CVC-ColonDB and ETIS-LPDB, following the protocol of PraNet. On ETIS-LPDB it reaches .847 Sα, against .845 for MSNet, and it is higher than the four listed baselines on the four metrics reported for both sets.
Visual cases are shown, and no score for this task is given in the text.
For transparent object segmentation, the Trans10K annotations are reorganized from instance-level to object-level before the retrained model is trained. Visual results are reported for this task, and no quantitative score is given.
Paper info
- Authors
- Ge-Peng Ji, Deng-Ping Fan, Yu-Cheng Chou, Dengxin Dai, Alexander Liniger, Luc Van Gool
- Venue
- arXiv · Preprint
- First published
- 2022-5-25
- Added
- 2026-11-6
- Updated
- 2022-8-8
- Version
- v2
- arXiv
- 2205.12853
- DOI
- 10.1007/s11633-022-1365-9
- Category
- cs.CV
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
This paper introduces DGNet, a novel deep framework that exploits object gradient supervision for camouflaged object detection (COD). It decouples the task into two connected branches, i.e., a context and a texture encoder. The essential connection is the gradient-induced transition, representing a soft grouping between context and texture features. Benefiting from the simple but efficient framework, DGNet outperforms existing state-of-the-art COD models by a large margin. Notably, our efficient version, DGNet-S, runs in real-time (80 fps) and achieves comparable results to the cutting-edge model JCSOD-CVPR$_{21}$ with only 6.82% parameters. Application results also show that the proposed DGNet performs well in polyp segmentation, defect detection, and transparent object segmentation tasks. Codes will be made available at https://github.com/GewelsJI/DGNet.
Quote from the paper
Ge-Peng Ji, Deng-Ping Fan, Yu-Cheng Chou, Dengxin Dai, Alexander Liniger, Luc Van Gool (2022). Deep Gradient Learning for Efficient Camouflaged Object Detection. arXiv:2205.12853v2. https://doi.org/10.1007/s11633-022-1365-9
BibTeX
@article{ji2022deep,
title = {{Deep Gradient Learning for Efficient Camouflaged Object Detection}},
author = {Ge-Peng Ji and Deng-Ping Fan and Yu-Cheng Chou and Dengxin Dai and Alexander Liniger and Luc Van Gool},
year = {2022},
eprint = {2205.12853},
archivePrefix = {arXiv},
doi = {10.1007/s11633-022-1365-9},
url = {https://arxiv.org/abs/2205.12853v2}
}