Concept animation

Paper: 2602.23318 Authors: Aloïs Rautureau, Tristan Cazenave, Éric Piette Categories: cs.AI

Abstract

Generalized Rapid Action Value Estimation (GRAVE) has proven to be a powerful Monte-Carlo Tree Search (MCTS) variant for General Game Playing, but its memory footprint limits practical deployment. This paper addresses GRAVE’s memory constraints by introducing three novel algorithms: GRAVE2 (two-level search), GRAVER (node recycling), and GRAVER2 (combined approach). These methods achieve dramatic reductions in stored nodes while preserving the algorithm’s playing strength, making GRAVE viable for memory-constrained environments such as embedded systems and mobile devices.

Key Contributions

  • Introduction of GRAVE2, which implements a two-level search strategy to reduce memory overhead while maintaining search quality
  • Development of GRAVER, a node recycling mechanism that reuses memory allocations across different search branches
  • Presentation of GRAVER2, combining two-level search and node recycling for maximum memory efficiency
  • Empirical demonstration that all three variants match GRAVE’s playing strength while drastically reducing the number of stored nodes
  • Validation across multiple games in the Ludii General Game System, showing consistent performance improvements in memory-constrained scenarios

Methodology and Technical Approach

The core challenge addressed is GRAVE’s requirement to store AMAF (All Moves As First) statistics at each node, which accumulates win/visit counts for all actions encountered during playouts. While this information improves action selection, it creates substantial memory overhead proportional to the tree size and action space.

GRAVE2 implements a two-level search architecture where the first level performs shallow exploration with full GRAVE statistics, while the second level conducts deeper searches with reduced memory allocation. This hierarchical approach concentrates expensive memory usage at critical decision points near the root while using lighter-weight search in deeper portions of the tree.

GRAVER introduces node recycling by maintaining a pool of reusable node structures. When a subtree is abandoned during search, its nodes are returned to the pool rather than deallocated. This reduces allocation overhead and enables more efficient memory utilization, particularly in games with high branching factors where many nodes are created and discarded during search.

GRAVER2 synergistically combines both techniques, applying node recycling within the two-level search framework. The first level maintains a recycling pool for its full-featured nodes, while the second level uses a separate pool for its lightweight nodes, maximizing memory efficiency across both search levels.

Experimental Results and Performance Analysis

The authors evaluated their algorithms on a diverse set of games from the Ludii platform, including both deterministic games (like Chess variants and connection games) and stochastic games (dice games and card games). The experiments measured both playing strength (through head-to-head matches) and memory efficiency (nodes stored per search).

Results demonstrate that GRAVE2, GRAVER, and GRAVER2 achieve comparable win rates to standard GRAVE while reducing memory consumption by factors ranging from 2x to 10x depending on the game and time constraints. In games with large action spaces, the memory savings are particularly pronounced, with GRAVER2 showing the most consistent improvements.

The two-level search in GRAVE2 proves especially effective in games requiring deep tactical calculation, where the shallow first level quickly identifies promising lines while the deeper second level validates them efficiently. Node recycling in GRAVER shows benefits across all game types, with particularly strong performance in games with repetitive position structures where node reuse is frequent.

Interestingly, in some games, the memory-constrained variants slightly outperform standard GRAVE, suggesting that the architectural constraints impose a beneficial regularization effect that prevents over-exploration of unpromising branches.

Implications for General Game Playing and Beyond

This work has significant implications for deploying MCTS-based agents in resource-constrained environments. The ability to maintain competitive performance while reducing memory footprint by an order of magnitude opens new application domains for general game playing systems, including mobile gaming, embedded systems, and large-scale game servers running multiple concurrent instances.

The techniques introduced are not limited to GRAVE but can be adapted to other MCTS variants that maintain additional statistics at nodes, such as RAVE (Rapid Action Value Estimation) and progressive history-based methods. The node recycling approach, in particular, represents a general optimization applicable to any tree search algorithm with dynamic node allocation.

For the broader AI community, this research demonstrates that algorithmic efficiency improvements can sometimes match or exceed the benefits of simply adding more computational resources. The careful engineering of memory management strategies proves as important as the underlying search algorithm itself.

Takeaways

  1. GRAVE2, GRAVER, and GRAVER2 successfully reduce MCTS memory requirements by 2-10x while maintaining playing strength equivalent to standard GRAVE
  2. Two-level search architectures effectively balance memory efficiency with search quality by concentrating resources at critical decision points
  3. Node recycling provides consistent memory benefits across diverse game types and can be combined with other optimization techniques
  4. Memory-constrained algorithm variants can sometimes outperform their unrestricted counterparts through implicit regularization effects
  5. These techniques enable practical deployment of sophisticated MCTS variants in resource-limited environments previously unsuitable for such algorithms

论文: 2602.23318 作者: Aloïs Rautureau, Tristan Cazenave, Éric Piette 分类: cs.AI

摘要

广义快速动作价值估计(GRAVE)已被证明是通用博弈中蒙特卡洛树搜索(MCTS)算法家族的强大变体,但其内存占用限制了实际部署。本文通过引入三种新算法来解决GRAVE的内存约束问题:GRAVE2(两层搜索)、GRAVER(节点回收)和GRAVER2(组合方法)。这些方法在保持算法博弈强度的同时实现了存储节点数量的大幅减少,使GRAVE能够在嵌入式系统和移动设备等内存受限环境中可行应用。

主要贡献

  • 提出GRAVE2算法,实现两层搜索策略以降低内存开销同时保持搜索质量
  • 开发GRAVER算法,采用节点回收机制在不同搜索分支间重用内存分配
  • 展示GRAVER2算法,结合两层搜索和节点回收以实现最大内存效率
  • 通过实证研究证明三种变体均能匹配GRAVE的博弈强度,同时大幅减少存储节点数量
  • 在Ludii通用博弈系统的多个游戏中验证,显示在内存受限场景下的一致性能提升

方法论与技术路径

本文解决的核心挑战是GRAVE需要在每个节点存储AMAF(所有移动作为首次移动)统计信息,这会累积所有在模拟中遇到的动作的胜负/访问计数。虽然这些信息改善了动作选择,但会产生与树大小和动作空间成正比的巨大内存开销。

GRAVE2实现了两层搜索架构,第一层使用完整GRAVE统计信息进行浅层探索,第二层使用减少的内存分配进行深度搜索。这种分层方法将昂贵的内存使用集中在根节点附近的关键决策点,而在树的深层部分使用轻量级搜索。

GRAVER通过维护可重用节点结构池来引入节点回收机制。当搜索过程中放弃某个子树时,其节点被返回到池中而非释放。这减少了分配开销并实现更高效的内存利用,特别是在具有高分支因子的游戏中,大量节点在搜索期间被创建和丢弃。

GRAVER2协同结合了两种技术,在两层搜索框架内应用节点回收。第一层为其全功能节点维护回收池,第二层为其轻量级节点使用单独的池,在两个搜索层级上最大化内存效率。

实验结果与性能分析

作者在Ludii平台的多样化游戏集上评估了算法,包括确定性游戏(如国际象棋变体和连接游戏)和随机游戏(骰子游戏和纸牌游戏)。实验测量了博弈强度(通过对战)和内存效率(每次搜索存储的节点数)。

结果表明,GRAVE2、GRAVER和GRAVER2在实现与标准GRAVE相当的胜率的同时,根据游戏和时间约束将内存消耗降低了2到10倍。在具有大动作空间的游戏中,内存节省尤为显著,GRAVER2显示出最一致的改进。

GRAVE2中的两层搜索在需要深度战术计算的游戏中特别有效,浅层第一级快速识别有希望的路线,而深层第二级高效验证它们。GRAVER中的节点回收在所有游戏类型中都显示出优势,在具有重复位置结构的游戏中表现尤为突出,因为节点重用频繁。

有趣的是,在某些游戏中,内存受限变体略微优于标准GRAVE,表明架构约束施加了有益的正则化效应,防止过度探索无希望的分支。

对通用博弈及其他领域的影响

这项工作对在资源受限环境中部署基于MCTS的智能体具有重要意义。在保持竞争性能的同时将内存占用减少一个数量级的能力,为通用博弈系统开辟了新的应用领域,包括移动游戏、嵌入式系统和运行多个并发实例的大规模游戏服务器。

引入的技术不限于GRAVE,可以适配到其他在节点维护额外统计信息的MCTS变体,如RAVE(快速动作价值估计)和基于渐进历史的方法。特别是节点回收方法,代表了一种适用于任何具有动态节点分配的树搜索算法的通用优化。

对于更广泛的AI社区,这项研究表明算法效率改进有时可以匹配或超过简单增加计算资源的收益。内存管理策略的精心设计与底层搜索算法本身同样重要。

要点总结

  1. GRAVE2、GRAVER和GRAVER2成功将MCTS内存需求降低2-10倍,同时保持与标准GRAVE相当的博弈强度
  2. 两层搜索架构通过在关键决策点集中资源,有效平衡了内存效率与搜索质量
  3. 节点回收在不同游戏类型中提供一致的内存优势,可与其他优化技术结合
  4. 内存受限算法变体有时可以通过隐式正则化效应优于其无限制对应版本
  5. 这些技术使复杂MCTS变体能够在以前不适合此类算法的资源受限环境中实际部署