现代编译器通过一系列模块化的中间表示(IR)遍历来优化程序。虽然这种逐步范式提供了工程上的好处,但它面临着一个遍历协调问题:局部有益的转换可能会阻塞后续更盈利的优化。这种限制源于缺乏显式的优化意图概念,定义为协调多个转换以实现全局性能目标的整体策略。最近的基于LLM的方法将IR优化视为端到端生成任务,从而避免了传统的逐步结构。然而,优化意图仍然隐含在这些方法中,迫使模型联合推断优化策略并生成低级转换,这限制了正确性和性能。我们提出IntOpt,这是首个意图驱动的IR优化器,它显式地将高层次的优化意图与低层次的分析和转换分开。IntOpt将IR优化分为三个阶段:意图制定、意图细化和意图实现,从而实现全局协调的转换。实验表明,IntOpt在200个程序测试集上实现了90.5%的验证正确性,并在平均速度提升方面达到2.660倍,优于最先进的基于LLM的优化器在正确性和性能方面,并在37个基准测试中超过了现代编译器的-O3选项,最高速度提升达到272. bona fide。
英文摘要:
Modern compilers optimize programs through a sequence of modular passes over intermediate representations (IR). While this pass-by-pass paradigm offers engineering benefits, it suffers from a pass coordination problem: locally beneficial transformations may block more profitable optimizations in later stages. This limitation stems from the lack of an explicit notion of optimization intent, defined as a holistic strategy for coordinating multiple transformations toward a global performance objective. Recent LLM-based approaches formulate IR optimization as an end-to-end generation task, thereby avoiding the traditional pass-by-pass structure. However, optimization intent remains implicit in these methods, forcing models to jointly infer optimization strategy and generate low-level transformations, which limits both correctness and performance. We propose IntOpt, the first intent-driven IR optimizer that explicitly separates high-level optimization intent from low-level analysis and transformation. IntOpt organizes IR optimization into three stages: intent formulation, intent refinement, and intent realization, enabling globally coordinated transformations. Experiments show that IntOpt achieves 90.5% verified correctness and 2.660x average speedup on 200-program test set, outperforming state-of-the-art LLM-based optimizers in both correctness and performance, and surpassing modern compiler with the -O3 option on 37 benchmarks with speedups of up to 272.60x.
MuISQA: Multi-Intent Retrieval-Augmented Generation for Scientific Question Answering
Zhongke Zidong Taichu (Beijing)(中科紫东太初(北京));Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Wuhan AI Research(武汉人工智能研究院)
Vision-language models lag human performance on physical dynamics and intent reasoning
East China Normal University(东华大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Shanghai Innovation Institute(上海创新研究院);University of Agder(阿格德大学)
IntentCoding: Amplifying User Intent in Code Generation
School of Computer Science, Peking University(北京大学计算机科学学院);Department of Computing Science, University of Alberta(阿尔伯塔大学计算机科学系);Canada CIFAR AI Chair(加拿大CIFAR人工智能 chair)
SARGes: Semantically Aligned Reliable Gesture Generation via Intent Chain
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Beijing Engineering Research Center of Mixed Reality and Advanced Display(混合现实与先进显示北京工程研究中心);Institute of Technology, Beijing(北京理工大学);Kuaishou Technology(快手科技)
Knowlesdge Lab, University of Chicago, Chicago, Illinois, USA(知识实验室,芝加哥大学,芝加哥,伊利诺伊州,美国);Knowledge Lab, Data Science Institute, Department of Sociology, University of Chicago, Chicago, Illinois, USA(知识实验室,数据科学学院,社会学系,芝加哥大学,芝加哥,伊利诺伊州,美国)
Evaluating LLMs on Conversational Text-to-SQL under Chain Ambiguity and Intent Drift
The Hong Kong Polytechnic University(香港理工大学);City University of Macau(澳门城市大学);Jilin University(吉林大学);Beihang University(北京航空航天大学);Jinan University(暨南大学)
Reasoning While Asking: Transforming Reasoning Large Language Models from Passive Solvers to Proactive Inquirers
National Key Laboratory for Novel Software Technology(新型软件技术国家重点实验室);Artificial Intelligence Research Institute(人工智能研究院);Shenzhen Institutes of Advanced Technology(深圳先进技术研究院);University of California, Santa Cruz(加州大学圣克鲁兹分校);University of Texas, Dallas(德克萨斯大学达拉斯分校);University of Minnesota(明尼苏达大学)