arXiv:2608.23923cs.CVAug 2026

Manuscript Offprint

arXiv:2608.23923

ROI-Gated SAHI: Content-Adaptive Slicing-Based Inference for Efficient Object Detection

Rashid Riyadh, Abd Ullah Khan, Imad Gohar, Muzammil Behzad

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Rashid Riyadh 1^{1}, Abd Ullah Khan 2,3^{2,3}, Imad Gohar 4,∗^{4,*}, Muzammil Behzad 5,6,∗^{5,6,*}

1^{1} Faculty of Information Technology, City University, Malaysia

2^{2} Department of Information Convergence Engineering, Kyung Hee University, South Korea

3^{3} Department of Computer Science, National University of Sciences and Technology, Pakistan

4^{4} School of Computing and Artificial Intelligence, Sunway University, Malaysia

5^{5} King Fahd University of Petroleum and Minerals, Saudi Arabia

6^{6} SDAIA-KFUPM Joint Research Center for Artificial Intelligence, Saudi Arabia

Abstract—Slicing-Aided Hyper Inference (SAHI) improves small object detection in high-resolution images but often spends substantial compute on background tiles. We propose region-of-interest (ROI)-Gated SAHI, an inference-time framework that introduces a lightweight proposer to localize foreground regions and restrict sliced refinement to informative areas. We evaluate the framework in two settings. On the COCO128 full split dataset comprising 128 images, static ROI-gating is slower on average than Full SAHI, achieving a speed ratio of 0.88, and yields a lower mAP@0.5 of 0.6602 compared with 0.7569 for Full SAHI. A simple adaptive routing policy with τ=0.4\tau = 0.4 reduces the mean latency, achieving a slight gain of 1.02×1.02\times over Full SAHI. On a three-image sparse-to-dense case study, ROI-gating achieves speedups ranging from 0.96×0.96\times to 6.90×6.90\times with a mean speedup of 3.41×3.41\times. These results show that ROI-gating is most beneficial in sparse scenes and requires policy-based routing for robust average behavior.

Index Terms—object detection, sliced inference, SAHI, efficiency, YOLO, edge computing.

I. INTRODUCTION

Detecting small objects in high-resolution images is a challenging problem due to the trade-off between spatial resolution and computational efficiency [1]. For such detection, the fine-grained spatial details must be maintained, which makes processing images at high resolutions inevitable [2]. However, processing such high-resolution images using conventional object detectors is computationally expensive, leading to memory cost and inference latency [3]. These constraints make it challenging to deploy object detectors in real-world particularly on resource-constrained platforms such as mobile devices, embedded systems, aerial platforms, and edge computing environments [4].

To address this challenge, slicing-based inference has recently emerged, which improves small object detection without architectural changes or retraining. Slicing-Aided Hyper Inference (SAHI) [5] is one of the slicing-based inference approaches. SAHI first partitions high-resolution images into

Figure

Fig. 1: ROI-Gated SAHI pipeline: (top) baseline full-image patching; (bottom) proposer, ROI merge, coverage check with fallback, and selective refinement. Red dashed box marks injected ROI-gating components.

overlapping tiles. Next, it applies object detection independently to each tile, and then merges predictions through post-processing. On one hand, by increasing the size of small objects within each slice, SAHI enhances detection accuracy. On the other hand, due to computationally efficiency, it maintains compatibility with off-the-shelf detectors. However, the computational cost of such slicing-based inference approaches increases as the number of tiles increases. As a result, substantial overhead is generated when it is uniformly applied across the entire image.

In addition to the overhead problem, another challenge associated with the existing slicing-based methods is that they perform tiled inference without discriminating the image content. As a result, background regions having little or no relevant information are processed with the same computational cost as foreground, information-rich regions. This approach becomes particularly computation-inefficient in spatially sparse or clustered objects, where a large fraction of inference time is spent on redundant computation [6]. This renders slicing-based approaches inapplicable for applications with latency and real-time constraints. To circumvent these challenges, inference strategies that adapt computation based on scene content are required.

Given the above challenges, an effective slicing-based tech-

*Corresponding author. Email: imadg@sunway.edu.my, muzammil.behzad@kfupm.edu.sa nique is required that can reduce unnecessary computation in background regions while maintaining high accuracy [7]. Second, the technique must be focused on inference time, and must not require retraining or architectural changes of detectors, thereby facilitating deployment flexibility [8]. Third, its performance should remain robust across diverse scene densities, including cases where foreground objects densely occupy the image [9]. Finally, the technique should be seamlessly compatible with existing slicing frameworks and detectors [10].

To this end, we propose a content-adaptive inference framework called region-of-interest (ROI)-Gated SAHI. The framework conditions sliced inference on foreground presence to satisfy the above mentioned requirements. For this purpose, it introduces a lightweight ROI estimation that identifies candidate foreground regions before performing the computation-intensive tiled inference process. Specifically, it avoids slicing the entire image, by performing slicing-based refinement on the selectively applied regions, i.e., regions with overlapping ROIs. This way, it bypasses background-only areas. To ensure robust behavior in dense scenes where foreground coverage is high, an intelligent fallback mechanism dynamically reverts to conventional full-image SAHI when selective gating becomes counterproductive.

The proposed framework is designed as an external inference-time system that remains fully compatible with existing detectors and slicing pipelines. By decoupling ROI reasoning from detector architectures, ROI-Gated SAHI enables adaptive computation without compromising detection completeness or requiring model retraining. This design reframes inference efficiency as a content-adaptive routing problem rather than a model-level optimization, opening a new direction for efficient deployment of slicing-based object detection systems.

The contributions are summarized as follows.

References (28)