arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.05502cs.SEcs.AI
收藏

评估LLMs在自动化网页性能问题DOM层面解决中的应用

Evaluating the Use of LLMs for Automated DOM-Level Resolution of Web Performance Issues

Concordia University(Concordia大学)

Gideon Peters, SayedHassan Khatoonabadi, Emad Shihab

AI总结:

本研究评估了九种先进LLMs在自动化网页性能问题DOM层面解决中的效果,发现其在SEO和可访问性问题上表现优异,但在性能关键的DOM修改中效果不一。

摘要:

用户要求快速无缝的网页体验,但开发者往往难以在严格限制下满足这些期望。性能优化虽然关键,但却是耗时且常需手动处理的过程。在这一领域中最复杂的任务之一是修改文档对象模型(DOM),因此本研究聚焦于此。近年来,大型语言模型(LLMs)的进展为自动化这一复杂任务提供了有前景的途径,可能改变开发者解决网页性能问题的方式。本研究评估了九种最先进的LLMs在自动化网页性能问题解决中的有效性。为此,我们首先提取了15个流行网页(如Facebook)的DOM树,然后使用Lighthouse获取其性能审计报告。随后,我们将提取的DOM树和相应的审计报告传递给每个模型进行解决。我们的研究考虑了7种独特的审计类别,发现LLMs普遍在SEO和可访问性问题上表现出色。然而,它们在性能关键的DOM修改中的效果则参差不齐。尽管高性能模型如GPT-4.1在初始加载、交互性和网络优化(如初始加载减少46.52%至48.68%的审计次数减少)等方面实现了显著改进,其他模型如GPT-4o-mini则明显表现不佳,表现不稳定。对这些修改的进一步分析显示,主要采用加法策略和频繁的位置变化,同时存在影响视觉稳定性的情况。

英文摘要:

Users demand fast, seamless webpage experiences, yet developers often struggle to meet these expectations within tight constraints. Performance optimization, while critical, is a time-consuming and often manual process. One of the most complex tasks in this domain is modifying the Document Object Model (DOM), which is why this study focuses on it. Recent advances in Large Language Models (LLMs) offer a promising avenue to automate this complex task, potentially transforming how developers address web performance issues. This study evaluates the effectiveness of nine state-of-the-art LLMs for automated web performance issue resolution. For this purpose, we first extracted the DOM trees of 15 popular webpages (e.g., Facebook), and then we used Lighthouse to retrieve their performance audit reports. Subsequently, we passed the extracted DOM trees and corresponding audits to each model for resolution. Our study considers 7 unique audit categories, revealing that LLMs universally excel at SEO & Accessibility issues. However, their efficacy in performance-critical DOM manipulations is mixed. While high-performing models like GPT-4.1 delivered significant reductions in areas like Initial Load, Interactivity, and Network Optimization (e.g., 46.52% to 48.68% audit incidence reductions), others, such as GPT-4o-mini, notably underperformed, consistently. A further analysis of these modifications showed a predominant additive strategy and frequent positional changes, alongside regressions particularly impacting Visual Stability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑