TL;DR
This paper introduces a modular, token-oriented semantic communication framework for edge-server collaborative inference that avoids the high cost and compatibility issues of transmitting raw token embeddings. By exploiting a natural spatial alignment between Vision Transformer (ViT) patches and learned image compression (LIC) latents, the framework selectively transmits only task-relevant data guided by a gradient-free attention mechanism. This approach achieves a superior rate-accuracy trade-off on image classification without requiring end-to-end joint training of the client and server models.
What Problem Does This Paper Address?
In edge-server collaborative inference, a resource-constrained client device offloads heavy deep learning computations to a powerful cloud server. For Vision Transformers (ViTs), a common approach is "token communication," where the client computes early layers and transmits the resulting token embeddings to the server.
However, this paradigm faces two major hurdles:
- High Communication Cost: Token embeddings are high-dimensional vectors; transmitting them can actually consume more bandwidth than sending the raw image.
- Poor Interoperability: Different ViT models use entirely different embedding spaces. A lightweight client model cannot easily send its tokens to a massive server model without extensive, joint end-to-end retraining, which destroys system modularity.
Prior attempts to fix this either rely on rigid, jointly trained vector-quantized codebooks or fall back to sending raw pixel patches, which fails to exploit modern learned image compression efficiencies.
Methods
The authors propose a fully modular framework that coordinates three pretrained, independent components: a lightweight client ViT (e.g., DeiT-Tiny), a learned image compression (LIC) model, and a large server ViT (e.g., DeiT-III-Large).
The framework introduces three core technical innovations:
- Token-Aligned LIC (TA-LIC): Standard ViTs process images in $16 \times 16$ pixel patches. Coincidentally, many standard LIC architectures downsample images by a factor of 16 into a latent space. The authors exploit this one-to-one spatial alignment. Instead of sending token embeddings, the client uses token-level task relevance to mask out unimportant regions and selectively encode/transmit only the corresponding LIC latent vectors. Missing latents are imputed at the server using hyperprior-predicted means to preserve convolutional consistency.
- Layer-Selective Attention Rollout: To determine which tokens are important without expensive gradient computations, the client analyzes self-attention weights. While standard attention rollout aggregates weights across all layers, the authors discover that early layers are too noisy and final layers drift toward the background. They restrict aggregation to a specific middle-to-late layer range (e.g., layers 7–12), providing highly accurate relevance maps in a single forward pass.
- Learnable Surrogate Token Substitution: When the server receives an incomplete image, simply feeding it to a frozen ViT degrades accuracy. Instead of retraining the massive server backbone, the authors introduce a single learnable surrogate token that substitutes for all unselected/missing patch positions, signaling to the model that data is intentionally absent.
Datasets
The framework was trained and evaluated on the standard ImageNet-1K dataset for image classification. The large server model (DeiT-III-Large) was additionally pretrained on ImageNet-21k. No new datasets or benchmarks were introduced.
Key Insights and Ideas
- The 16x16 Alignment Serendipity: The core "aha!" moment is realizing that the spatial grid of a ViT's patch tokenization perfectly matches the latent space grid of standard learned image compression models. This allows token selection to happen directly within the image compression domain.
- Attention Drift: Visualizing attention weights across layers reveals that a ViT's focus shifts dramatically. Early layers capture local, noisy features, middle layers lock onto the target object, and final layers diffuse out to background context. Filtering out the early and late layers yields a much better proxy for task relevance.
- Parameter-Efficient Input Adaptation: Rather than fine-tuning a 304-million-parameter server model to handle missing patches, optimizing a single input vector (the surrogate token, typically dimension 1024) acts as an incredibly efficient adapter that preserves the server's peak performance on complete images.
Key Results
- Rate-Accuracy Superiority: The proposed framework achieves a significantly better rate-accuracy trade-off than hand-crafted codecs (JPEG2000, WebP, BPG) and task-agnostic LIC models. For instance, it retains an accuracy of 85.83% at just 1.24 bpp (bits per pixel)—a mere 0.98 percentage point drop from the lossless server baseline, outperforming WebP and BPG which require 1.57 bpp and 1.82 bpp respectively to match that accuracy.
- Robustness to Channel Erasures: In simulated packet-erasure channels, using the learnable surrogate token to replace corrupted or lost packets consistently outperformed standard direct reconstruction or selected-patch inference methods, proving highly resilient to unreliable network conditions.
Limitations and Future Work
- Hyperprior Constraints: The selective latent transmission mechanism is currently incompatible with advanced autoregressive context models (like ELIC), forcing the use of simpler mean-scale hyperpriors which slightly limits the upper bound of the compression efficiency.
- Task Scope: The evaluation is strictly limited to image classification. Extending this token-aligned compression framework to dense downstream tasks like object detection or semantic segmentation remains an open avenue for future research.
Summary updated