paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Source-Free Detection and Impact Analysis of Compiler Optimization Problems in Mobile Applications

移动应用中编译器优化问题的无源码检测与影响分析
ASE Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering2026匹配度 2/10 · 论文属于二进制程序分析与编译优化问题检测,并具有移动应用工业落地价值,但未涉及用户核心关注的 LLM/Agent 与静态分析交叉、机器学习系统/Agentic 程序分析、浮点程序分析或贝叶斯程序分析。引用 1 inbox
Han Hu, Xiaoheng Xie, Bo Sun, Jian Gu, Gang Fan, Li Li
crossref: 2026-10-09

AI 速览

一句话:提出无源码框架 OptDetect,从移动应用二进制检测低优化级别编译问题并量化其影响。

移动应用常出现掉帧、过热和耗电问题,但一个关键瓶颈常被忽视:原生库以低优化级别(O0/O1 而非 O2/O3)编译。由于这类库运行时不产生功能错误,其性能退化在生产应用中难以发现。本文提出 OptDetect,一个无源码框架,通过二进制反汇编、chunk 级分类和加权分数聚合处理混合优化级别,直接从应用二进制检测编译优化问题。OptDetect 在受控数据集上达到 93.0% 准确率,在真实数据集上达到 81.9%。作者将其应用于 830 个 Google Play 热门应用的 21,972 个原生库,发现 30.5% 的库使用低优化级别,影响 91.7% 的应用。对 12 个生产应用的案例研究表明,修复检测出的问题可使商业应用 CPU 指令数减少 10-63%(中位数 20.5%),开源应用减少 15-58%(中位数 32%);6 个商业应用中有 5 个性能投诉下降、5 个评分上升。进一步调查发现,广泛使用的第三方库本身也以低优化级别分发,某主要仓库中 1,073 个库有 49.7% 存在该问题。这些结果表明,编译器优化问题在移动应用生态中普遍、可无源码检测且具有实际影响。

问题
移动应用常受掉帧、过热和耗电困扰,而以低优化级别编译的原生库因无功能错误而隐蔽地造成性能退化,生产应用又通常缺少源码,难以检测此类问题。
方法
OptDetect 是无源码框架,通过二进制反汇编、chunk 级分类和加权分数聚合,处理混合优化级别,并直接从应用二进制中检测编译器优化问题。
评估
在受控数据集上达到 93.0% 准确率、真实数据集上达到 81.9%;分析 830 个 Google Play 应用中的 21,972 个原生库,发现 30.5% 使用低优化级别、影响 91.7% 应用,并通过 12 个生产应用案例量化修复后的 CPU 指令减少与用户反馈改善。
原文摘要(Abstract)

Mobile apps frequently suffer from frame drops, overheating, and excessive power consumption. While developers optimize algorithms and debug code, a critical bottleneck often goes unnoticed: native libraries compiled with low optimization levels (O0/O1 instead of O2/O3). Because these libraries execute without functional errors, the resulting performance degradation remains hidden in production apps. We present OptDetect, a source-free framework that detects compiler optimization problems directly from app binaries. OptDetect handles mixed optimization levels through binary disassembly, chunk-level classification, and weighted score aggregation, achieving 93.0% accuracy on controlled datasets and 81.9% on real-world datasets. Applying OptDetect to 21,972 native libraries from 830 top-ranked Google Play apps, we find that 30.5% of libraries use low optimization levels, affecting 91.7% of apps. Through case studies on 12 production apps, fixing detected issues reduces CPU instructions by 10-63% (median: 20.5%) for commercial apps and 15-58% (median: 32%) for open-source apps. Performance complaints decrease in 5 of 6 commercial apps, and ratings increase in 5 of 6. Further investigation reveals that widely-used third-party libraries are themselves distributed at low optimization levels, with 49.7% of 1,073 libraries in a major repository exhibiting this problem. These findings show that compiler optimization problems are common, source-free detectable, and practically consequential in mobile app ecosystems.

链接与引用

DOI 原文 · arXiv · DBLP

BibTeX
@inproceedings{abs-2606-23512,
  title = {Source-Free Detection and Impact Analysis of Compiler Optimization Problems in Mobile Applications},
  author = {Han Hu and Xiaoheng Xie and Bo Sun and Jian Gu and Gang Fan and Li Li},
  booktitle = {ASE},
  year = {2026},
  doi = {10.1145/3832783.3834340}
}