从暴力到语义洞察:基于LLM的性能引导数据转换设计
From Brute Force to Semantic Insight: Performance-Guided Data Transformation Design with LLMs
AI总结:
本文提出了一种基于LLM的性能引导数据转换设计方法,通过经验反馈实现闭环优化,减少穷举搜索需求,提升代码生成的准确性与任务对齐性。
摘要:
大型语言模型(LLMs)在代码合成方面取得了显著的性能;然而,数据感知的增强仍是一个限制因素,通常通过启发式设计或暴力方法处理。我们引入了一个在NNGPT项目生态系统中的闭环解决方案,使LLMs能够通过内部化经验性能线索自主设计最优的转换。我们使用低秩适应对一个包含超过6000个经过实验验证的PyTorch增强函数的新型仓库进行微调,每个函数仅通过下游模型的准确性进行注释。训练使用成对性能排序(更好-更差的转换),通过经验反馈实现对齐,而无需强化学习、奖励模型或符号目标。这减少了对穷举搜索的需求,相比暴力发现,评估的候选者减少了多达600倍,同时保持了具有竞争力的峰值准确性,并将生成从随机合成转向任务对齐的设计。消融研究显示,结构化的Chain-of-Thought提示引入了语法噪声并降低了性能,而直接提示确保了在性能关键的代码任务中稳定的优化。定性和定量分析表明,模型内部化了语义性能线索,而不是记忆语法。这些结果表明,LLMs可以通过非文本反馈循环表现出任务级推理,绕过了显式的符号奖励。
英文摘要:
Large language models (LLMs) have achieved notable performance in code synthesis; however, data-aware augmentation remains a limiting factor, handled via heuristic design or brute-force approaches. We introduce a performance-aware, closed-loop solution in the NNGPT ecosystem of projects that enables LLMs to autonomously engineer optimal transformations by internalizing empirical performance cues. We fine-tune LLMs with Low-Rank Adaptation on a novel repository of more than 6,000 empirically evaluated PyTorch augmentation functions, each annotated solely by downstream model accuracy. Training uses pairwise performance ordering (better-worse transformations), enabling alignment through empirical feedback without reinforcement learning, reward models, or symbolic objectives. This reduces the need for exhaustive search, achieving up to 600x times fewer evaluated candidates than brute-force discovery while maintaining competitive peak accuracy and shifting generation from random synthesis to task-aligned design. Ablation studies show that structured Chain-of-Thought prompting introduces syntactic noise and degrades performance, whereas direct prompting ensures stable optimization in performance-critical code tasks. Qualitative and quantitative analyses demonstrate that the model internalizes semantic performance cues rather than memorizing syntax. These results show that LLMs can exhibit task-level reasoning through non-textual feedback loops, bypassing explicit symbolic rewards.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。