Research Papers 论文研究 3h ago Updated 1h ago 更新于 1小时前 48

Emergent Sparsity in Frozen Random CNN Feature Extractors for Deep Reinforcement Learning 冻结随机CNN特征提取器中的涌现稀疏性用于深度强化学习

Deep reinforcement learning agents using frozen, randomly initialized CNN feature extractors spontaneously develop extremely sparse fully-connected representations without any sparsity-inducing objective. The first fully-connected layer (FC1) compresses task-relevant information through as few as 1-3 neurons out of 64 for deterministic Pong and 5-11 for stochastic Pong, while trainable CNNs activate 55-64 neurons under matched conditions. FC1 sparsity scales with task complexity: 1-11 for Pong, 深度强化学习代理在冻结的随机CNN特征提取器训练下,自发地在全连接层(FC1)中发展出极度稀疏的表示,无需任何显式稀疏化目标。 FC1层的神经元激活数量随任务复杂度增加而显著变化:Pong为1-11个,Breakout为19-26个,Space Invaders约为42个,表明稀疏性反映的是任务内在结构而非固定容量比例。 同一游戏的不同随机种子会产生不同数量的活跃神经元(如Pong分别为5、7、11),且活跃神经元数量直接限制最终奖励上限,证明随机投影的可用量子维度是性能瓶颈。 消融实验证实这些活跃神经元对性能至关重要;信息瓶颈形成早于奖励提升(活跃集在15-30M步锁定,奖励转正需35-10

65
Hot 热度
72
Quality 质量
68
Impact 影响力

Analysis 深度分析

TL;DR

  • Deep reinforcement learning agents using frozen, randomly initialized CNN feature extractors spontaneously develop extremely sparse fully-connected representations without any sparsity-inducing objective.
  • The first fully-connected layer (FC1) compresses task-relevant information through as few as 1-3 neurons out of 64 for deterministic Pong and 5-11 for stochastic Pong, while trainable CNNs activate 55-64 neurons under matched conditions.
  • FC1 sparsity scales with task complexity: 1-11 for Pong, 19-26 for Breakout, and ~42 for Space Invaders, reflecting task structure rather than a fixed capacity fraction.
  • Within-game scaling emerges in identical Pong seeds, producing different numbers of active neurons (5, 7, and 11), which affects achievable performance, suggesting the random projection's usable dimensionality bounds performance.
  • Ablation studies confirm the necessity of these active neurons, as removing them crashes performance across two PPO implementations and four games.
  • The information bottleneck commits early, with the active set locking by 15-30M steps, while reward turns positive 35-105M steps later.
  • Frozen and trainable CNNs reach competitive rewards via structurally different bottlenecks: frozen agents use 17-25 active neurons (participation ratio ~10-14), while trainable agents use 51 (participation ratio ~3.6).

Why It Matters

This phenomenon highlights how deep reinforcement learning agents can naturally exploit sparsity in their representations when using frozen, randomly initialized feature extractors, which could lead to more efficient and interpretable models. Understanding this emergent sparsity can inform the design of more effective and resource-efficient reinforcement learning algorithms, particularly in scenarios where computational resources are limited or where interpretability is crucial.

Technical Details

  • Sparsity in Fully-Connected Layers: Agents trained with frozen, randomly initialized CNN feature extractors develop extremely sparse representations in the first fully-connected layer (FC1), with only 1-3 neurons active for deterministic Pong and 5-11 for stochastic Pong.
  • Task Complexity Scaling: The degree of sparsity scales with task complexity, as evidenced by the number of active neurons increasing from 1-11 for Pong to 19-26 for Breakout and ~42 for Space Invaders.
  • Within-Game Variability: Different seeds within the same game produce varying levels of sparsity, affecting performance. For example, one seed with 5 active neurons plateaus at +14 reward, while others with 7 and 11 active neurons reach expert performance (+18.4 and +18.7).
  • Necessity of Active Neurons: Ablation studies show that removing these active neurons significantly degrades performance, confirming their critical role in the agent's decision-making process.
  • Early Information Bottleneck: The active set of neurons locks in early during training (15-30M steps), well before the reward becomes positive (35-105M steps), indicating an early commitment to a specific representation.
  • Comparison with Trainable CNNs: Frozen and trainable CNNs achieve similar rewards but through different structural bottlenecks, with frozen agents using fewer active neurons and higher participation ratios compared to trainable agents.

Industry Insight

  • Efficient Model Design: The discovery of emergent sparsity suggests that using frozen, randomly initialized feature extractors can lead to more efficient and compact models, potentially reducing computational costs and improving interpretability.
  • Performance Limitations: The variability in sparsity across different seeds indicates that the choice of initial random projections can significantly impact performance, highlighting the need for careful initialization strategies in reinforcement learning.
  • Early Commitment to Representations: The early locking of the active neuron set implies that reinforcement learning agents may benefit from early intervention techniques to optimize their representations, potentially leading to faster convergence and better final performance.

TL;DR

  • 深度强化学习代理在冻结的随机CNN特征提取器训练下,自发地在全连接层(FC1)中发展出极度稀疏的表示,无需任何显式稀疏化目标。
  • FC1层的神经元激活数量随任务复杂度增加而显著变化:Pong为1-11个,Breakout为19-26个,Space Invaders约为42个,表明稀疏性反映的是任务内在结构而非固定容量比例。
  • 同一游戏的不同随机种子会产生不同数量的活跃神经元(如Pong分别为5、7、11),且活跃神经元数量直接限制最终奖励上限,证明随机投影的可用量子维度是性能瓶颈。
  • 消融实验证实这些活跃神经元对性能至关重要;信息瓶颈形成早于奖励提升(活跃集在15-30M步锁定,奖励转正需35-105M步)。
  • 冻结与可训练CNN虽能达到相似奖励,但通过截然不同的瓶颈结构实现:前者使用约10%-14%参与率的稀疏激活,后者则依赖更密集的51个神经元(~3.6%参与率)。

为什么值得看

该研究揭示了在固定随机特征提取器下,强化学习代理如何通过自组织机制发现任务的有效低维表示,为理解神经网络中的隐式压缩与信息瓶颈提供了新视角。其发现不仅挑战了传统认为稀疏性需显式正则化的观点,还暗示了在高维输入与低维任务场景中,利用随机投影进行高效特征筛选的潜力,对设计轻量化RL架构和理论分析模型泛化能力具有重要启发。

技术解析

  • 实验设置:采用冻结的随机初始化CNN作为特征提取器,仅训练后续的全连接层(FC1: 3136→64)及策略网络;对比组为端到端可训练的相同架构CNN。
  • 稀疏度量:通过统计每轮训练中FC1层输出超过阈值的神经元数量来量化“活跃神经元”,发现其在Pong中低至1-3个(确定性)或5-11个(随机性),远低于可训练组的55-64个。
  • 缩放验证:通过增加FC1宽度至更高维度(如128、256),观察到活跃神经元绝对数随任务复杂度上升而线性增长,但占总宽度的比例下降,证明稀疏性是任务本质的体现而非容量限制。
  • 因果验证:移除FC1中识别出的活跃神经元导致所有测试游戏(Pong、Breakout等)和PPO变体性能崩溃,确认这些神经元承载关键任务信息。
  • 时间动态分析:追踪训练过程发现,活跃神经元集合在早期(15-30M步)即稳定下来,而奖励曲线在此后才开始上升,说明信息瓶颈先于价值函数收敛建立。

行业启示

  • 模型压缩新思路:在资源受限场景下,可尝试先用随机投影+冻结特征提取器快速筛选有效维度,再微调小规模决策头,从而大幅降低训练成本并加速收敛。
  • 架构设计原则:对于高维感知输入(如图像控制任务),应避免盲目扩大中间层容量,而应关注如何引导网络自动聚焦于任务相关的少数特征通道,这有助于提升样本效率和泛化性。
  • 理论研究方向:未来工作可探索此类“ emergent sparsity ”是否存在于其他模态(如文本、语音)及更复杂的连续控制任务中,并尝试从数学角度推导其存在条件与最优稀疏度预测公式。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Research 科学研究 Training 训练 Agent Agent