Vision Transformer Downsampling With Non-Integer Stride

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Vision transformers (ViTs) face challenges in capturing long-range dependencies and global context due to local receptive fields, are computationally expensive, prone to overfitting on smaller datasets, and suffer from redundant calculations due to similar patches, leading to inefficiencies.

Innovation Solution

Implementing a downsampling technique using a non-integer stride within the vision transformer architecture, combined with a masked auto-encoder architecture, to reduce computational load and improve classification performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If ViTs process all patches separately using self-attention mechanism, then comprehensive contextual information is captured, but computational cost and memory usage increase significantly

Engineering Contradiction:
Improvecontextual information captureVSAvoidcomputational cost
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent merges similar patches by identifying patches with high cosine similarity and grouping them together. Instead of processing each patch independently through self-attention, similar patches are combined into a single representative patch, reducing the total number of patches processed while preserving the essential contextual information from all similar regions.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The patent introduces a universal downsampled feature map that serves multiple purposes: it provides contextual information for all patches, reduces computational redundancy, and maintains the hierarchical structure needed for both local and global feature extraction. This single feature map replaces the need for separate processing of numerous similar patches.

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Reliability

If ViTs use fixed-size patches for all regions, then global context is captured, but local spatial structures are lost

Engineering Contradiction:
Improveglobal context captureVSAvoidlocal spatial structure preservation
Core Design Contradiction:
ReliabilityVSManufacturing precision

Solution Approach 1:

The patent applies different processing strategies to different regions of the image based on their characteristics. High-frequency regions with fine details maintain their original patch structure, while low-frequency regions with smooth variations are downsampled. This local differentiation preserves important spatial structures while reducing redundancy in homogeneous areas.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent segments the image into different frequency regions using Gaussian blur comparison. High-frequency regions (edges, textures, fine details) are identified and processed separately from low-frequency regions (smooth areas, uniform regions). This segmentation allows the model to apply appropriate processing to each region type, maintaining local structures where needed.

Inventive Principle:
Principle #1Segmentation

3Measurement precision

If ViTs process high-resolution images with many patches, then detailed features are captured, but processing speed decreases

Engineering Contradiction:
Improvefeature detail captureVSAvoidprocessing speed
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent dynamically adjusts the number of patches processed based on image content characteristics. By analyzing frequency content and identifying similar patches, the system adaptively reduces the patch count for images with large homogeneous regions while maintaining detailed processing for images with fine structures. This dynamic adjustment optimizes processing speed without sacrificing necessary detail capture.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20260044928A1Fdvit: improve the hierarchical architecture of vision transformer
Publication Date: 2026.02.12 XILINX INC
  • US20260044928A1 patent drawing
  • US20260044928A1 patent drawing
  • US20260044928A1 patent drawing

AI summary

Embodiments herein relate to implementing a downsampling technique that uses a non integer stride, within the architecture of a vision transformer. Furthermore, embodiments herein relate to implementing a masked auto-encoder architecture to facilitate training the flexible, non integer stride downsampling layer. This reduces computational costs while increasing classification performance.