TernScope: Model-Hardware Co-Design for Efficient Ternary Endoscopic Segmentation
Abstract
TernScope co-designs a compact ternary-weight segmentation network with simplified hardware to achieve high accuracy and fast inference for edge medical imaging.
Edge medical segmentation must reconcile small model size, high accuracy, and fast inference. TernScope addresses this tradeoff through model--hardware co-design, learning a compact segmentation network whose low-bit operators also simplify hardware execution. Split-channel large-kernel blocks preserve spatial context with limited computation, while branch fusion removes redundant inference paths. Ternary Progressive Quantization-aware Training (TPQ) then adapts the fused network from deep to shallow layers, through the decoder, and finally to the input and prediction layers. All 25 convolutions use ternary weights and 8-bit activations, enabling packed storage and multiplier-free computation. The resulting model uses 0.2483 M parameters and 0.0949 GMACs while retaining competitive segmentation accuracy on in-domain and external datasets. Under the same 45 nm technology, TernScope reduces compute-array area by 88.46% compared with the original Gemmini, a systolic-array accelerator with 8-bit times 8-bit multipliers. These results demonstrate a path from accurate lightweight medical segmentation to compact low-bit hardware.
Community
Hi everyone! I'm the first author of TernScope. Can a tiny segmentation network use ternary weights throughout—including the input and prediction layers—and translate that into smaller hardware?
We co-design an endoscopic segmentation model and a matching accelerator:
• 0.2483M parameters and 0.0949 GMACs at 256×256.
• All 25 convolutions use ternary weights {−1, 0, +1} and 8-bit activations, trained through branch fusion and progressive QAT.
• External evaluation on ClinicDB and ColonDB without fine-tuning.
• 88.46% lower compute-array area than original INT8 Gemmini under matched 45 nm synthesis.
Code, a W2A8 checkpoint, and accelerator RTL are available:
https://github.com/ReaganWu/TernScope
Happy to discuss full-network ternary quantization, efficient medical vision, and model–hardware co-design!
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- CGDD-Net: Context-Guided Dynamic Detail Modeling for Retinal Vessel Segmentation (2026)
- LightMIS: Ultra-Lightweight Medical Image Segmentation Without a Stage-Wise Decoder (2026)
- SlimFormer++: Token Mixing Where It Matters for Efficient 3D Medical Image Segmentation (2026)
- NucShare: Lightweight Nuclei Instance Segmentation with Foundation-Model Accuracy (2026)
- U-PEN Mamba: Progressive Expansion with Selective State-Space Modeling for Efficient Retinal Vessel Segmentation (2026)
- TRIUNE-Net: Harmonizing Scale, Shape, and Efficiency in Pancreatic Tumor Segmentation (2026)
- Hardware-Aware Functional Kolmogorov-Arnold Networks for Efficient Medical Image Enhancement and Segmentation (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2610.29617 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper