NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PestWeave: Linking Semantic Modeling and Evidence-Guided Text Modulation through Visual Prototypes for Fine-Grained Pest Learning

Xueheng Li, Yu Wang, Yuxiang Shen, Wen Xue, Rui Li, Jie Zhang, Chengjun XiearXiv 2026

Imagine you’re a farmer trying to identify a tiny, mottled brown bug on a leaf. Is it a harmless native species or a devastating pest that requires immediate intervention? In the world of "fine-grained" recognition, the difference might be a single row of microscopic spots or a subtle curve in a wing vein.

Standard AI models often struggle here. They get distracted by the complex "noise" of the background leaves or try to force-fit a textbook text description (e.g., "has yellow spots on its back") onto an image where the bug is seen from the side and those spots are invisible.

The authors of PestWeave have introduced a clever way to bridge this gap, creating a model that doesn't just look at pixels, but organizes them semantically and uses them as "evidence" to filter out misleading information.

TL;DR

PestWeave is a multimodal framework that masters fine-grained pest recognition by intelligently grouping similar visual features and using them to "fact-check" textual descriptions. By only allowing text to influence the model when there is clear visual evidence to support it, the system achieves state-of-the-art accuracy while ignoring distracting backgrounds and irrelevant descriptions.

What Problem Does This Paper Address?

Fine-grained pest recognition is a high-stakes game of "spot the difference." The authors identify two primary hurdles:

  1. Spatial Disconnect: Traditional vision models scan images in a fixed grid (left-to-right, top-to-bottom). If a bug’s head and tail look similar but are far apart in the grid, the model might fail to link them effectively.
  2. The "Lying" Text Problem: Multimodal models use text descriptions to help identify species. However, a description might mention a feature that is occluded or simply not visible from the current camera angle. Standard models often "hallucinate" these features into the visual representation, leading to errors.

Methods

PestWeave builds on the RWKV (Receptance Weighted Key Value) architecture—a modern, efficient alternative to Transformers that offers linear complexity. The researchers added three key innovations:

  • Semantic Scanning: Instead of a rigid grid, PestWeave uses Locality-Sensitive Hashing (LSH) to group pixels with similar features together. As shown in Figure 1, this "Semantic Scanning" brings related parts of the pest into neighboring positions in the processing sequence, making it much easier for the model to capture the bug's overall morphology.
  • Visual Prototypes: The model creates "prototypes"—compact summaries of these feature groups. These act as the "visual essence" of different parts of the image (e.g., a "wing prototype" or a "leaf prototype").
  • Evidence-Guided Text Modulation: This is the heart of the system. As detailed in Figure 3, the model compares text tokens (like "striped legs") against the visual prototypes. If a text feature finds a strong visual match, its influence is dialed up. If there’s no match, a "null-evidence" gate suppresses that part of the text, preventing it from confusing the visual model.
Figure 1. (a) Fixed spatial scanning may separate visually similar regions. (b) Saliency-guided adaptive scanning is susceptible to interference from salient background regions. (c) Our semantic scanning brings feature-similar regions into neighboring sequence positions while preserving the original spatial layout.
Figure 3. Overview of the proposed evidence-guided text modula- tion module. Visual prototypes estimate the support for textual se- mantics, guiding evidence-weighted cross-attention and spatially gated text injection for adaptive vision-language fusion.

Datasets

The authors evaluated PestWeave on three established benchmarks for agricultural pest recognition:

  • Li dataset: 5,629 images across 10 categories, known for challenging natural-scene backgrounds.
  • QianFSD: A larger set with 7,054 images and 143 categories.
  • AgriInsect: The most diverse set, containing 9,452 images from 200 different categories.

Key Insights and Ideas

  • Context is King: By reordering tokens based on similarity rather than just location, the model effectively "denoises" the image, focusing on the pest's structure rather than the random arrangement of background clutter.
  • The Power of "No": One of the most important features is the null-evidence key. In many AI systems, the model must find a relationship between text and image. PestWeave is allowed to say, "I hear what the text is saying, but I don't see it here," which significantly boosts reliability.
  • Efficiency Matters: By using RWKV and LSH-based clustering, the authors achieve these complex interactions without the massive computational "tax" usually associated with global attention in standard Transformers.

Key Results

PestWeave consistently outperformed 15 representative baselines (including heavyweights like ResNet, Swin Transformer, and specialized pest-ID models):

  • Accuracy Jumps: On the Li dataset, it reached 93.66% accuracy, beating the previous state-of-the-art (PestVL-Net) by over 5 percentage points.
  • Consistency: It maintained high performance across all three datasets, proving it can handle both small-scale and large-scale category sets (up to 200 species).
  • Ablation Proof: When the researchers turned off the "Evidence Weighting" (forcing the model to listen to all text equally), accuracy on the QianFSD dataset dropped from 89.65% to 83.78%, proving that "fact-checking" the text is vital.

Limitations and Future Work

While the paper demonstrates impressive results, a few areas remain for exploration:

  • Caption Quality: The model relies on high-quality, descriptive captions. In real-world "in-the-wild" scenarios, such detailed text might not always be available.
  • Clustering Overhead: Although LSH is efficient, the iterative refinement of semantic clusters still adds a layer of complexity to the training process.
  • Real-time Deployment: The authors mention potential for practical pest management, but future work would likely need to focus on optimizing the model for mobile devices used by farmers in the field.

Summary updated

BibTeX
@misc{li2026pestweave,
  author = {Xueheng Li and Yu Wang and Yuxiang Shen and Wen Xue and Rui Li and Jie Zhang and Chengjun Xie},
  title = {{PestWeave: Linking Semantic Modeling and Evidence-Guided Text Modulation through Visual Prototypes for Fine-Grained Pest Learning}},
  year = {2026},
  eprint = {2611.30796},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30796},
}
Figure