Wenxin Tang, Jingyu Xiao, Zhenyu Liu, Zipeng Xie, Junliang Liu, Wang Luo, Yuan Jiang, Yintong Huo, Michael Lyu
CodeShrink introduces a dynamic approach to compressing code visualizations for multimodal models by eliminating redundant whitespace, adapting compression settings per input via a reinforcement learning agent, and removing irrelevant visual tokens during inference. It achieves up to 71.2% reduction in visual tokens while maintaining or improving performance over baseline methods. The framework enhances efficiency without sacrificing task accuracy across multiple code understanding tasks.
Efficient multimodal code processing is critical for scaling large models in software engineering applications. By reducing visual token overhead without compromising performance, CodeShrink enables faster inference and lower computational costs, making multimodal code analysis more practical for real-world deployment.
Thank you to arXiv for use of its open access interoperability. arxiv.org. aibrief.ai is not affiliated with or endorsed by arXiv.