arXiv:2608.23142cs.CVAug 2026

Manuscript Offprint

arXiv:2608.23142

How Merge-Tolerant Are Vision Transformers for Wheat Phenotyping?

Simon Ravé, Pejman Rasti, David Rousseau

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Simon Ravé 1∗^{1*}, Pejman Rasti 1,2^{1,2}, and David Rousseau 1,2^{1,2}

{simon.rave,pejman.rasti,david.rousseau}@univ-angers.fr

1^{1} LARIS, University of Angers, Angers, France

2^{2} UMR INRAE-IRHS, Angers, France

Abstract. Vision-based wheat phenotyping requires repeated measurements under deployment constraints, from growth-stage recognition to wheat-head counting and organ segmentation. Plain Vision Transformers (ViTs) provide a common architecture for these tasks, but quadratic attention limits high-throughput and edge inference. Training-free token merging is attractive because it can be inserted into trained models without retraining. We provide a systematic benchmark of ToMe and Mutual Pair Merging across growth-stage classification, wheat-head detection, and wheat-organ segmentation, measuring task quality, throughput, token count, and peak GPU memory, with additional Raspberry Pi 5 measurements. The benchmark reveals a clear hierarchy: classification is highly merge-tolerant, while detection and segmentation are constrained by repeated instances, thin organs, dense boundaries, reconstruction, and runtime overhead. Optimized attention backends can erase apparent speedups, so deployment value must be profiled on the target runtime rather than inferred from token count.

Keywords: Plant phenotyping · Vision transformers · Token merging · Efficient inference

1 Introduction

Image-based plant phenotyping has moved from isolated image analysis toward repeated measurement in fields, greenhouses, and breeding nurseries. Cameras on fixed stations, UAVs, robots, and low-cost edge devices produce visual streams across sites, growth stages, and acquisition platforms under varying device budgets. A breeder may need the growth stage of a wheat canopy, the number and location of wheat heads, or a pixel-level separation of leaves, stems, and spikes. A model that is accurate but too slow, too memory-hungry, or too dependent on workstation hardware may be difficult to use in field robots or low-cost phenotyping systems [12][12]. Recent work has therefore explored general visual representations and compact models for plant recognition [3,17,22][3, 17, 22].

Wheat images contain strong visual redundancy (Fig. 5). Repeated biological structures create both an opportunity and a risk: canopy evidence may be

  • Corresponding author.

S. Ravé et al.

Figure

Fig. 1: Overview of our merging protocol. We benchmark classification, segmentation, and detection using plain Vision Transformers [8]. After training and freezing each model, we apply ToMe [2] or MPM [20] only at inference. We evaluate multiple backbone sizes and report task quality, token count, latency, and throughput on an NVIDIA RTX PRO 6000 system and a Raspberry Pi 5, with peak memory reported for GPU runs.

compressed, whereas small instances and boundaries may be merged away. Plain ViTs provide the same sequence interface for classification, segmentation, and detection [8, 9, 25], but self-attention scales poorly with sequence length while crop images often require high resolution. The question is whether their token sequences can be compressed without losing phenotype-relevant evidence.

Training-free token merging addresses this deployment pressure by aggregating similar tokens inside an already trained transformer. ToMe showed that this intervention can improve throughput without retraining [2]. MPM emphasizes end-to-end latency and dense-feature reconstruction [20]. Yet generic computer-vision conclusions do not directly transfer to plant phenotyping: a merger that is harmless for classification may be harmful when the signal is one wheat head among many, a narrow stem, or a leaf boundary. The answer is also hardware-dependent because merge construction and reconstruction can dominate on optimized GPUs even when shorter sequences help embedded processors [5].

We therefore ask when an already trained ViT can be accelerated by merging tokens and when merging destroys the biological signal of interest. We study WGSP growth-stage classification [23], GWHD 2021 wheat-head detection [7], and GWFSS wheat-organ segmentation [26], using a ViT classifier, Segmenter, and YOLOs across multiple backbone sizes. We report primary and secondary task metrics together with measured GPU and Raspberry Pi 5 behavior. Classification tolerates substantial token reduction, detection provides limited practical gains in the tiled pipeline, and segmentation degrades under aggressive merging and dense reconstruction. Our contributions are:

  1. We provide a benchmark of training-free token merging for ViT-based wheat phenotyping across classification, detection, and segmentation under a unified inference-time protocol.

  2. We compare ToMe and MPM on plain ViT-based backbones and report task quality together with measured throughput, latency, final token count, and peak GPU memory, so that accuracy tolerance is separated from deployment usefulness.

  3. We analyze why merge tolerance differs across plant tasks, including merge locality, dense reconstruction cost, adaptive padding, attention backends, and Raspberry Pi 5 edge behavior, and derive task- and runtime-specific deployment guidance.

  4. The code is available at https://forge.inrae.fr/imhorphen/wheat-token-merging.

References (26)