基于上下文赌博机和强化学习的代数多重网格在线自动调优 Online Autotuning of Algebraic Multigrid via Contextual Bandits and Reinforcement Learning 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-31
⬇️ 1 次下载
👁️ 预览文献
💡 AI 中文简介
代数多重网格求解稀疏线性系统时,参数选择严重影响效率。本研究为hypre的BoomerAMG开发了一种在线自动调优方法,结合LinUCB上下文赌博机选择构建参数,并用LSTDQ控制器自适应调整求解参数。在扩散和对流扩散问题上,对5000个线性系统序列,总运行时间比默认配置减少19.8%-43.3%;在3万系统基准中,收敛失败数从1677降至2。
领域科学计算与数值分析/高性能计算
适合谁读需要一定专业背景(数值方法、机器学习基础)
核心贡献提出相位感知的在线自动调优框架,无需离线预训练,联合使用上下文赌博机和强化学习控制器,显著减少累计求解时间并提高鲁棒性。
关键数据在40^3、60^3、80^3网格上,对5000个线性系统序列,扩散问题总运行时间减少36.1-43.3%,对流扩散问题减少19.8-31.0%;在3万系统基准中,联合调优仅2个系统不收敛,默认配置为1677个。
推荐理由如果你苦于手动调参,这篇工作展示了如何用在线学习自动优化AMG参数,大幅节省时间并提升稳定性,值得一读!
关键词["代数多重网格", "在线自动调优", "上下文赌博机", "强化学习", "稀疏线性系统"]

原文摘要

查看英文原文摘要

Algebraic multigrid (AMG) methods are widely used for solving large sparse linear systems, but their efficiency depends strongly on interacting setup and solve parameters. Effective parameter choices typically depend on the problem. We develop a phase-aware online autotuning method for hypre's BoomerAMG to reduce cumulative time-to-solution over sequences of related linear systems. A LinUCB-based contextual bandit selects mixed-type parameters for AMG hierarchy construction using a shared cost model over PDE descriptors and configuration encodings. A recursive LSTDQ controller uses residual and timing observations to estimate the AMG solve time within each attempt and adapt relaxation weights between multigrid cycles. Both learners update from ongoing solves without offline pretraining. Across grids of sizes $40^3$, $60^3$, and $80^3$, the joint autotuning method reduces total runtime, including recurring learner computation, by 36.1-43.3% for diffusion problems and 19.8-31.0% for diffusion-advection problems over sequences of 5000 linear systems, relative to the reference BoomerAMG default configuration. On a variable-flow diffusion-advection benchmark comprising 30,000 systems on a $60^3$ grid, 2 systems fail to converge with joint autotuning, compared with 1677 for the reference configuration, under their respective attempt budgets.