[Paper Review] Lightweight Convolutional Representations for On-Device Natural Language Processing
This paper proposes a lightweight, plug-and-play convolutional representation for on-device NLP that replaces recurrent units with efficient depthwise separable convolutions and GELU nonlinearities, achieving up to 32x model compression with minimal accuracy drop and significant gains in latency and file size on a Samsung Galaxy S9.
The increasing computational and memory complexities of deep neural networks have made it difficult to deploy them on low-resource electronic devices (e.g., mobile phones, tablets, wearables). Practitioners have developed numerous model compression methods to address these concerns, but few have condensed input representations themselves. In this work, we propose a fast, accurate, and lightweight convolutional representation that can be swapped into any neural model and compressed significantly (up to 32x) with a negligible reduction in performance. In addition, we show gains over recurrent representations when considering resource-centric metrics (e.g., model file size, latency, memory usage) on a Samsung Galaxy S9.
Motivation & Objective
- Address the challenge of deploying compute-heavy NLP models on low-resource devices like mobile phones and wearables.
- Reduce model size, inference latency, and memory usage without sacrificing performance.
- Develop a general-purpose, architecture-agnostic representation that can be integrated into any neural encoder at word-, character-, or byte-level.
- Demonstrate superior efficiency over recurrent models using resource-centric metrics on real hardware (Samsung Galaxy S9).
- Enable practical deployment of NLP models on edge devices through efficient, composable, and hardware-optimized components.
Proposed method
- Design a residual block-based convolutional representation using depthwise separable convolutions to reduce FLOPs and parameter count.
- Replace Gated Linear Units (GLUs) with GELU activation to reduce channel capacity and improve speed-accuracy trade-off.
- Apply channel-wise bottlenecks via grouped convolutions to further compress the model while preserving representational capacity.
- Use separable convolutions to decouple spatial and channel-wise feature learning, reducing computational cost from O(c²kt) to O(c²t + ckt).
- Integrate the representation into existing models as a plug-in encoder, compatible with word-, character-, and byte-level inputs.
- Apply standard compression techniques (pruning, quantization, matrix decomposition) in conjunction with the proposed architecture for further optimization.
Experimental results
Research questions
- RQ1Can a lightweight convolutional representation be designed to significantly reduce model size and inference latency on mobile devices without degrading accuracy?
- RQ2How does the proposed representation compare to recurrent models in terms of resource efficiency (file size, latency, memory) on real mobile hardware?
- RQ3To what extent can architectural innovations like depthwise separable convolutions and efficient nonlinearities reduce computational cost while maintaining performance?
- RQ4Is the proposed representation generalizable across different NLP tasks and input modalities (word, character, byte-level)?
- RQ5Can the representation be effectively combined with existing model compression techniques for further optimization?
Key findings
- The optimized convolutional representation reduced model file size by 80% (0.4 MB vs. 2.8 MB) and latency by 86% (10.1 ms vs. 109.9 ms) compared to a recurrent baseline on a Samsung Galaxy S9.
- Despite a 27x reduction in parameters (92.5K vs. 2.5M), the model achieved 86.4% accuracy on document classification, outperforming the baseline convolutional model (85.7%) and matching 87.4% accuracy of the recurrent model.
- The representation achieved up to 32x compression when combined with additional techniques like matrix decomposition, with only a 1% drop in accuracy compared to the recurrent baseline.
- The use of GELU instead of GLU reduced model capacity by 50% without performance loss, improving speed and efficiency.
- The model showed a 59% reduction in memory usage (8.9 MB vs. 6.5 MB) compared to the recurrent baseline, though memory usage was still higher than the recurrent model in absolute terms.
- The representation demonstrated consistent gains across three on-device NLP tasks: next word prediction, joint intent-slot modeling, and document classification, with superior efficiency metrics on real hardware.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.