WorksComputer Science
PestWeave: Linking Semantic Modeling and Evidence-Guided Text Modulation through Visual Prototypes for Fine-Grained Pest Learning
Abstract
Agricultural pests threaten crop yield and quality, making accurate pest recognition essential for targeted management and sustainable agriculture. Their diverse appearances complicate recognition and motivate multimodal approaches incorporating complementary species knowledge from text. However, complex backgrounds can obscure discriminative visual cues, while textual descriptions may contain information unsupported by the current image, limiting effective cross-modal fusion. To address these challenges, we propose PestWeave, a multimodal framework connecting content-adaptive visual organization with text fusion through visual prototypes. Its visual pathway augments a Receptance Weighted Key Value (RWKV) architecture with semantic token grouping and three types of auxiliary tokens, enabling content-adaptive scanning and contextual modeling while preserving spatial structure. Feature-similar tokens are reordered into adjacent scanning positions, while cluster prototype, global, and register tokens provide group-level summaries, global context, and additional interaction capacity, respectively. These prototypes also guide text modulation by assessing visual support for semantic components and regulating their relative contributions and overall fusion strength, reducing interference from unsupported descriptions. Extensive experiments on multiple pest recognition datasets demonstrate the effectiveness of PestWeave and its potential for practical pest management.