The paper introduces Dynamic InterpIoU, which extends InterpIoU by adaptively adjusting the interpolation coefficient based on the current IoU to overcome vanishing gradients in non-overlapping cases.
It replaces handcrafted geometric penalties with an additional IoU term computed on an interpolated box, thereby avoiding undesired enlargement and aligning optimization with precise localization.
Empirical results on COCO, VisDrone, and PASCAL VOC demonstrate consistent gains in mAP and small object detection, validating the method’s effectiveness across diverse datasets.
Searching arXiv for the target paper and core related IoU-loss papers to ground citations.
Searching for "InterpIoU: Rethinking Bounding Box Regression with Interpolation-Based IoU Optimization".
Searching for "Generalized Intersection over Union Rezatofighi".
Dynamic InterpIoU is a bounding box regression loss for object detection introduced as an extension of InterpIoU in "InterpIoU: Rethinking Bounding Box Regression with Interpolation-Based IoU Optimization" (Liu et al., 16 Jul 2025). It replaces handcrafted geometric penalties with an additional IoU term computed on an interpolated box between the prediction and the ground truth, and it further makes the interpolation coefficient adaptive by tying it to the current IoU value. The method is designed to provide meaningful gradients in non-overlapping cases, avoid the bounding-box enlargement behavior associated with misaligned penalty terms, and improve robustness across object scales and distributions, with experiments on COCO, VisDrone, and PASCAL VOC reporting consistent gains over existing IoU-based losses, particularly for small object detection (Liu et al., 16 Jul 2025).
1. Problem setting and motivation
Bounding box regression is fundamental to object detection, and the regression loss is a primary determinant of localization accuracy. In the formulation underlying Dynamic InterpIoU, the central limitation of standard IoU-based regression is that IoU is non-differentiable in non-overlapping cases in the sense that the gradient of the usual IoU loss vanishes when the predicted box and the ground-truth box do not intersect. Existing IoU-based losses often address this by adding handcrafted geometric penalties.
The motivating critique is that these penalties are sensitive to box shape, size, and distribution. The paper further states that such penalties often lead to suboptimal optimization for small objects and can induce undesired behaviors such as bounding box enlargement because the added penalty is misaligned with the IoU objective. InterpIoU is proposed to remove the handcrafted penalty and instead optimize an additional IoU term on an interpolated box; Dynamic InterpIoU extends this by dynamically adjusting the interpolation coefficient according to the current IoU.
A key implication of this design is that the auxiliary signal is still an IoU objective rather than an externally designed geometric surrogate. The paper’s simulation results are summarized as showing that IoU itself serves as an ideal regression target, while existing geometric penalties are both unnecessary and suboptimal. This suggests a reorientation of bounding box regression away from penalty engineering and toward modifying the optimization path of the IoU target itself.
2. Formal definition of Dynamic InterpIoU
Let the predicted box be
Bp​=[xp​,yp​,wp​,hp​]
and the ground-truth box be
Bgt​=[xg​,yg​,wg​,hg​].
For a fixed interpolation coefficient α∈(0,1), the interpolated box is defined by a coordinate-wise convex combination:
with clamp bounds Bgt​=[xg​,yg​,wg​,hg​].0 and Bgt​=[xg​,yg​,wg​,hg​].1. The dynamic coefficient is
Bgt​=[xg​,yg​,wg​,hg​].2
The intended operating regime is explicit. When Bgt​=[xg​,yg​,wg​,hg​].3, Bgt​=[xg​,yg​,wg​,hg​].4, which keeps Bgt​=[xg​,yg​,wg​,hg​].5 near Bgt​=[xg​,yg​,wg​,hg​].6 and yields strong early gradients. As Bgt​=[xg​,yg​,wg​,hg​].7, Bgt​=[xg​,yg​,wg​,hg​].8, moving Bgt​=[xg​,yg​,wg​,hg​].9 toward α∈(0,1)0 and emphasizing fine alignment. In the low-IoU regime, a large α∈(0,1)1 produces a large interpolated overlap and a gradient boost that helps escape flat regions. In the mid- and high-IoU regime, a small α∈(0,1)2 makes
α∈(0,1)3
thereby focusing optimization on precise localization.
3. Gradient mechanics and optimization behavior
Dynamic InterpIoU is motivated principally by gradient behavior in non-overlapping cases (Liu et al., 16 Jul 2025). When
α∈(0,1)4
the standard IoU loss satisfies
α∈(0,1)5
This is the vanishing-gradient failure mode that motivates the method.
If α∈(0,1)6 is sufficiently large that the interpolated box overlaps the target, then
α∈(0,1)7
and by the chain rule,
α∈(0,1)8
Thus α∈(0,1)9 controls the strength of the rescue gradient. Larger Bint​=(1−α)Bp​+αBgt​0 improves the likelihood that Bint​=(1−α)Bp​+αBgt​1 overlaps Bint​=(1−α)Bp​+αBgt​2, but it also reduces the backpropagated scale through the factor Bint​=(1−α)Bp​+αBgt​3. Dynamic InterpIoU is designed to manage this trade-off automatically rather than with a single static interpolation coefficient.
The paper distinguishes overlapping and non-overlapping regimes. In the overlapping case, both
Bint​=(1−α)Bp​+αBgt​4
contribute, guiding both center and size. In the non-overlapping case,
Bint​=(1−α)Bp​+αBgt​5
but
Bint​=(1−α)Bp​+αBgt​6
through the interpolated term and the Jacobian
Bint​=(1−α)Bp​+αBgt​7
The paper also analyzes why the method avoids box enlargement. For width Bint​=(1−α)Bp​+αBgt​8, the standard IoU gradient is given as
Bint​=(1−α)Bp​+αBgt​9
with Bint​=[(1−α)xp​+αxg​,(1−α)yp​+αyg​,(1−α)wp​+αwg​,(1−α)hp​+αhg​].0, Bint​=[(1−α)xp​+αxg​,(1−α)yp​+αyg​,(1−α)wp​+αwg​,(1−α)hp​+αhg​].1, and Bint​=[(1−α)xp​+αxg​,(1−α)yp​+αyg​,(1−α)wp​+αwg​,(1−α)hp​+αhg​].2. The second term always penalizes area growth because Bint​=[(1−α)xp​+αxg​,(1−α)yp​+αyg​,(1−α)wp​+αwg​,(1−α)hp​+αhg​].3 and Bint​=[(1−α)xp​+αxg​,(1−α)yp​+αyg​,(1−α)wp​+αwg​,(1−α)hp​+αhg​].4, so any change in Bint​=[(1−α)xp​+αxg​,(1−α)yp​+αyg​,(1−α)wp​+αwg​,(1−α)hp​+αhg​].5 that does not increase the intersection is driven negative. Because InterpIoU is the sum of two IoU losses, its net gradient inherits this no-enlargement property. A plausible implication is that Dynamic InterpIoU preserves the same mechanism while modulating how strongly the auxiliary IoU term contributes across training stages.
4. Relation to handcrafted geometric penalties
Many earlier IoU-based losses add a penalty term Bint​=[(1−α)xp​+αxg​,(1−α)yp​+αyg​,(1−α)wp​+αwg​,(1−α)hp​+αhg​].6 based on shape or distance rather than on IoU alone. The paper lists several representative examples.
Minimizing it can enlarge Bint​=[(1−α)xp​+αxg​,(1−α)yp​+αyg​,(1−α)wp​+αwg​,(1−α)hp​+αhg​].8 to fill the enclosing box
Adds aspect-ratio term LIoU​(Ba​,Bb​)=1−IoU(Ba​,Bb​).1 with weight LIoU​(Ba​,Bb​)=1−IoU(Ba​,Bb​).2
EIoU, SIoU, PIoU
Not expanded in the provided details
Listed as related IoU-based losses
For GIoU, the enclosing quantity LIoU​(Ba​,Bb​)=1−IoU(Ba​,Bb​).3 is the area of the smallest enclosing box. The paper states that minimizing LIoU​(Ba​,Bb​)=1−IoU(Ba​,Bb​).4 can be achieved by enlarging the predicted box to fill the enclosing box, and it identifies this as a source of box enlargement. In controlled simulations, these penalties often produce
LIoU​(Ba​,Bb​)=1−IoU(Ba​,Bb​).5
even when overlap is zero, thereby driving the predicted box to grow.
To quantify enlargement, the paper defines
LIoU​(Ba​,Bb​)=1−IoU(Ba​,Bb​).6
According to the reported simulations, for GIoU, CIoU, DIoU, and SIoU this metric regularly exceeds LIoU​(Ba​,Bb​)=1−IoU(Ba​,Bb​).7, interpreted in the paper as 600% enlargement, whereas InterpIoU keeps LIoU​(Ba​,Bb​)=1−IoU(Ba​,Bb​).8. The central methodological distinction is therefore not merely that Dynamic InterpIoU adds another term, but that its additional term remains an IoU objective evaluated at an interpolated box instead of a handcrafted geometric correction.
A common misconception in this area is that non-overlap necessarily requires an explicit geometric penalty. The paper’s position is narrower and more specific: the problem is addressed by constructing an interpolated box that restores overlap and therefore restores an IoU gradient, without introducing a separate penalty objective. This does not eliminate geometric considerations from optimization, but relocates them into the interpolation path between LIoU​(Ba​,Bb​)=1−IoU(Ba​,Bb​).9 and LInterpIoU​(Bp​,Bgt​;α)=LIoU​(Bp​,Bgt​)+LIoU​(Bint​,Bgt​),0.
5. Training procedure and operating regimes
Dynamic InterpIoU is implemented with a short training loop. For each training iteration, the detector predicts LInterpIoU​(Bp​,Bgt​;α)=LIoU​(Bp​,Bgt​)+LIoU​(Bint​,Bgt​),1 for each matched anchor or box, computes
Backpropagation then updates the network weights using LInterpIoU​(Bp​,Bgt​;α)=LIoU​(Bp​,Bgt​)+LIoU​(Bint​,Bgt​),8.
The paper reports that in most experiments the static version, InterpIoU, uses LInterpIoU​(Bp​,Bgt​;α)=LIoU​(Bp​,Bgt​)+LIoU​(Bint​,Bgt​),9. For Dynamic InterpIoU, the clamp ranges are dataset-specific: LInterpIoU​(Bp​,Bgt​;α)=[1−IoU(Bp​,Bgt​)]+[1−IoU(Bint​,Bgt​)].0 for VOC, LInterpIoU​(Bp​,Bgt​;α)=[1−IoU(Bp​,Bgt​)]+[1−IoU(Bint​,Bgt​)].1 for VisDrone, and LInterpIoU​(Bp​,Bgt​;α)=[1−IoU(Bp​,Bgt​)]+[1−IoU(Bint​,Bgt​)].2 for COCO. Training settings are also specified: SSD uses 140 k iterations with batch 32; YOLOv8 uses 150 epochs on VOC and VisDrone and 500 epochs on COCO with batch 16/4; DINO uses the official 12 epochs with batch 8.
The reported practical recommendations are correspondingly direct. If a dataset has consistent object scales, a fixed LInterpIoU​(Bp​,Bgt​;α)=[1−IoU(Bp​,Bgt​)]+[1−IoU(Bint​,Bgt​)].3 works robustly. For mixed-scale regimes or to boost early-stage learning, the recommended variant is D-InterpIoU with clamp approximately LInterpIoU​(Bp​,Bgt​;α)=[1−IoU(Bp​,Bgt​)]+[1−IoU(Bint​,Bgt​)].4. The loss can replace an existing IoU-based loss term directly, and no additional hyperparameters beyond LInterpIoU​(Bp​,Bgt​;α)=[1−IoU(Bp​,Bgt​)]+[1−IoU(Bint​,Bgt​)].5 and LInterpIoU​(Bp​,Bgt​;α)=[1−IoU(Bp​,Bgt​)]+[1−IoU(Bint​,Bgt​)].6 are needed. The paper also notes an implementation constraint arising from the factor
namely that very large LInterpIoU​(Bp​,Bgt​;α)=[1−IoU(Bp​,Bgt​)]+[1−IoU(Bint​,Bgt​)].8 yields a small gradient on LInterpIoU​(Bp​,Bgt​;α)=[1−IoU(Bp​,Bgt​)]+[1−IoU(Bint​,Bgt​)].9, so α0 should be avoided.
6. Empirical results and ablation behavior
The empirical evaluation covers PASCAL VOC 2007, VisDrone, and MS COCO across SSD, YOLOv8-m, and DINO-4scale (Liu et al., 16 Jul 2025). The benchmarks are selected to span medium-sized objects, small dense aerial objects, and a wide scale distribution, respectively.
On PASCAL VOC with SSD and YOLOv8, InterpIoU improves mAP by α1 to α2 over the best prior IoU loss, identified in the paper as SIoU or PIoU. D-InterpIoU adds a further α3 on small classes such as bottle and pottedplant.
On VisDrone with YOLOv8, the baseline α4 is reported as α5, InterpIoU as α6, and D-InterpIoU as α7. The paper also reports α8 gains of α9 and an overall mAP gain of IoU0​=IoU(Bp​,Bgt​),0.
On MS COCO with YOLOv8-m, the best baseline mAP is IoU0​=IoU(Bp​,Bgt​),1 using SIoU, with IoU0​=IoU(Bp​,Bgt​),2. InterpIoU reaches IoU0​=IoU(Bp​,Bgt​),3 with IoU0​=IoU(Bp​,Bgt​),4, while D-InterpIoU improves small-object performance to IoU0​=IoU(Bp​,Bgt​),5, a gain of IoU0​=IoU(Bp​,Bgt​),6. On DINO-4scale, the best baseline mAP is IoU0​=IoU(Bp​,Bgt​),7 using PIoU, and InterpIoU reaches IoU0​=IoU(Bp​,Bgt​),8 with IoU0​=IoU(Bp​,Bgt​),9, also reported as a Bgt​=[xg​,yg​,wg​,hg​].00 gain on small objects.
The ablation on Bgt​=[xg​,yg​,wg​,hg​].01 further clarifies the operating regime. On VisDrone and VOC with YOLOv8-s, static Bgt​=[xg​,yg​,wg​,hg​].02 in the range Bgt​=[xg​,yg​,wg​,hg​].03 yields a steady mAP increase as Bgt​=[xg​,yg​,wg​,hg​].04, while performance plateaus for Bgt​=[xg​,yg​,wg​,hg​].05. The best static setting is Bgt​=[xg​,yg​,wg​,hg​].06, with VisDrone mAP Bgt​=[xg​,yg​,wg​,hg​].07 and VOC mAP Bgt​=[xg​,yg​,wg​,hg​].08. A dynamic setting with clamp Bgt​=[xg​,yg​,wg​,hg​].09 yields VisDrone mAP Bgt​=[xg​,yg​,wg​,hg​].10 and VOC mAP Bgt​=[xg​,yg​,wg​,hg​].11, together with Bgt​=[xg​,yg​,wg​,hg​].12 gains. These results are consistent with the method’s stated rationale: large interpolation is beneficial for escaping poor initial localization, whereas reduced interpolation is preferable for fine-grained final alignment.
“Emergent Mind helps me see which AI papers have caught fire online.”
Philip
Creator, AI Explained on YouTube
Sign up for free to explore the frontiers of research
Discover trending papers, chat with arXiv, and track the latest research shaping the future of science and technology.Discover trending papers, chat with arXiv, and more.