# 学习自动机

学习自动机是一种随机决策装置，它从固定动作集上的概率分布中选择一个动作，并仅利用来自未知随机环境的强化信号来更新该分布，目标是识别最有可能获得奖励的动作。这种方法可以说是强化学习的基础，至今仍用于自适应控制、路由和随机优化。

| 关键事实 | 详情 |
|---|---|
| 更新对象 | 动作概率向量 \( p(n) \)，通过形如 \( p(n+1) = T[p(n), \alpha(n), \beta(n)] \) 的算子进行更新，其中 \( \alpha(n) \) 为所选动作，\( \beta(n) \) 为环境响应 <sup>[1](https://www.ias.ac.in/article/fulltext/sadh/015/04-05/0263-0281)</sup> |
| 环境模型 | P-模型（二值响应）、Q-模型（[0, 1] 中的有限值集）、S-模型（[0, 1] 中的连续响应）<sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup> |
| 收敛目标 | 具有最大奖励概率 \( d_i \) 的动作；ε-最优方案使任何次优动作的概率任意小 <sup>[3](https://eprints.iisc.ac.in/5011/1/varieties.pdf)</sup> |
| 经典方案 | LR-I、LR-P、LR-εP、多响应方案、估计器（追踪）算法 <sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup> |
| 追踪速度 | 通常比 LR-I 快 10 到 50 倍，代价是额外的计算和内存开销 <sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup> |
| 起源 | 特塞特林（Tsetlin）1961 年提出的随机介质中的确定性自动机；1963 年的变结构随机自动机 <sup>[4](https://pure.iiasa.ac.at/id/file/231720)</sup> |
| 现代用途 | 电话与网络路由、云与边缘任务分配、卸载和负载均衡 <sup>[5](https://link.springer.com/article/10.1007/s11227-024-06292-6)</sup> |

## 工作原理

自动机与环境构成一个反馈回路。在每个时刻 \( n \)，自动机从 \( p(n) \) 中采样一个动作 \( \alpha(n) \)；环境以 \( \beta(n) \) 作出响应；更新算子 \( T \) 相应地修正概率向量。<sup>[1](https://www.ias.ac.in/article/fulltext/sadh/015/04-05/0263-0281)</sup> 环境的特征由奖励概率 \( d_i = P\{\beta(n)=1 \mid \alpha(n)=\alpha_i\} \) 刻画，惩罚概率为 \( c_i = 1 - d_i \)；最优动作即具有最大 \( d_i \) 的动作。<sup>[1](https://www.ias.ac.in/article/fulltext/sadh/015/04-05/0263-0281)</sup> 在响应连续的 S-模型中，奖励强度 \( s_i = E[\beta(n) \mid \alpha(n)=\alpha_i] \) 扮演奖励概率的角色。<sup>[1](https://www.ias.ac.in/article/fulltext/sadh/015/04-05/0263-0281)</sup>

性能标准是分级的。若期望惩罚保持有界，则方案是合宜的；若收敛到最优动作，则是最优的；若对于任意给定的 \( \epsilon > 0 \)，可以选择参数使得 \( \liminf E[G(k)] > d_m - \epsilon \)，其中 \( G(k) = \sum_i d_i p_i(k) \) 为平均奖励，则是 ε-最优的。<sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup> 区分两种收敛行为：遍历算法（如 LR-P 和 LR-εP）按分布收敛，且极限分布不再依赖初始 \( p(0) \)，而吸收算法（如 LR-I）以概率一收敛到吸收态。<sup>[1](https://www.ias.ac.in/article/fulltext/sadh/015/04-05/0263-0281)</sup>

## 实现方法

实践者定义动作集 \( \alpha \)、输入集 \( \beta \)、初始概率向量 \( p \) 和更新算子 \( T \)；这四元组定义了一个变结构自动机。<sup>[5](https://link.springer.com/article/10.1007/s11227-024-06292-6)</sup> 最常见的更新是线性奖励-不惩罚方案 LR-I：

\[ p(k+1) = p(k) + \lambda \left( e_i - p(k) \right) \beta(k), \]

其中 \( 0 < \lambda < 1 \) 为步长，\( e_i \) 为所选动作上的单位概率向量，当响应表示惩罚时概率保持不变。<sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup> LR-I 通过在更一般的 LR-P 方案中令 \( b = 0 \) 得到，被称为“仁慈”方案，因为惩罚时不发生更新。<sup>[1](https://www.ias.ac.in/article/fulltext/sadh/015/04-05/0263-0281)</sup> 在 LR-P 中，若奖励参数 \( a \) 超过惩罚参数 \( b \) 且某个动作的惩罚概率为零，则自动机达到纯最优策略。<sup>[6](https://vtechworks.lib.vt.edu/server/api/core/bitstreams/3c1b5d24-e34c-4365-9be8-f95ea062fdee/content)</sup> 应用中的终止通常在一个动作概率越过阈值（某云调度部署中为 95%）、某个目标（如完工时间）不再变化、或达到迭代上限时宣告。<sup>[5](https://link.springer.com/article/10.1007/s11227-024-06292-6)</sup>

## 起源

特塞特林于 1961 年在《自动学与远程力学》上引入了学习自动机，研究了在未知随机环境中运行的确定性自动机，并证明它们在某些条件下是渐近最优的。<sup>[4](https://pure.iiasa.ac.at/id/file/231720)</sup> 变结构随机自动机直接更新动作概率，所需状态更少。<sup>[4](https://pure.iiasa.ac.at/id/file/231720)</sup> 前驱工作包括布什（Bush）和莫斯特勒（Mosteller）1958 年的数学心理学研究，以及齐普金（Tsypkin）1960 年代将学习归结为参数上的随机爬山法；统计学中的双臂老虎机问题是其近亲。<sup>[1](https://www.ias.ac.in/article/fulltext/sadh/015/04-05/0263-0281)</sup><sup> • </sup><sup>[7](https://vtechworks.lib.vt.edu/server/api/core/bitstreams/2b645ea4-89e5-4145-bf92-0b05195578a9/content)</sup> LR-I 方案由布什和莫斯特勒描述，1969 年由夏皮罗（Shapiro）和纳伦德拉（Narendra）独立重新发现，并在引入时给予了应有的重视。<sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup><sup> • </sup><sup>[8](https://doi.org/10.1109/tssc.1969.300228)</sup> “学习自动机”一词在一篇综述中得到推广 <sup>[9](https://doi.org/10.1109/tsmc.1974.5408453)</sup><sup> • </sup><sup>[3](https://eprints.iisc.ac.in/5011/1/varieties.pdf)</sup>，他们 1989 年的著作综述了该领域至那个十年末的进展。<sup>[7](https://vtechworks.lib.vt.edu/server/api/core/bitstreams/2b645ea4-89e5-4145-bf92-0b05195578a9/content)</sup>

## 变体

有限动作集学习自动机（FALA）是原始形式。估计器算法对其加速：塔塔查尔（Thathachar）和萨斯特里（Sastry）的追踪算法维护奖励估计 \( \hat{d}_i(k) = B_i(k)/Z_i(k) \) 并将概率移向估计的最优动作，\( p(k+1) = p(k) + \lambda (e_H - p(k)) \)，收敛速度比 LR-I 快 10 到 50 倍，且适用于任何有界强化集。<sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup><sup> • </sup><sup>[10](https://doi.org/10.1109/tsmc.1985.6313407)</sup> 广义追踪算法追踪所有估计值超过所选动作估计值的动作，收敛更快。<sup>[11](https://people.scs.carleton.ca/~oommen/papers/GenPurCn.PDF)</sup> 概率空间的离散化被引入以提高变结构自动机缓慢的收敛速度，产生了 DPRI、CPRI、CPRP 和 DPRP 等变体。<sup>[11](https://people.scs.carleton.ca/~oommen/papers/GenPurCn.PDF)</sup> 多响应自动机对不同响应使用不同的奖励率和惩罚率，LR-P、LR-I 和 LR-εP 作为特例。<sup>[12](https://conta.uom.gr/conta/publications/PDF/Multiple%20Response%20Learning%20Automata.pdf)</sup> 参数化（PLA）、广义（GLA）和连续动作集（CALA）自动机扩展了框架：CALA 使用正态动作分布 \( N(\mu(k), \sigma(k)) \)，并对 \( \sigma(k) \) 设置下限，使算法不会卡在非最优点。<sup>[3](https://eprints.iisc.ac.in/5011/1/varieties.pdf)</sup><sup> • </sup><sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup> 使用 LR-I 的自动机团队收敛到[纳什均衡](https://www.edgepedia.org/zh/nash-equilibrium)，基于追踪的团队即使对非单峰博弈也能达到全局最优动作集。<sup>[3](https://eprints.iisc.ac.in/5011/1/varieties.pdf)</sup><sup> • </sup><sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup> 更大的结构包括分层系统、分布式学习自动机 <sup>[13](https://doi.org/10.1142/s0218488506004217)</sup> 和元胞学习自动机，后者在元胞空间的每个元胞中放置一个自动机。<sup>[14](https://doi.org/10.1142/s0219525904000202)</sup> 特塞特林机（Tsetlin Machine）是一种基于规则的学习器，由具有随机奖励、惩罚和不作为反馈的双动作特塞特林自动机构建，将该框架带入模式识别领域。<sup>[15](https://arxiv.org/html/2607.20124v1)</sup>

## 应用

纳伦德拉、赖特（Wright）和梅森（Mason）于 1977 年将学习自动机应用于电话话务路由，通过对比仿真表明，在网络其他地方存在空闲容量时，在选定的过载条件下，其阻塞概率显著低于固定规则迂回路由。<sup>[16](https://doi.org/10.1109/tsmc.1977.4309623)</sup> 在面向连接的数据网络中，源节点处的自动机动态路由虚呼叫，结合分组和虚呼叫计数的“虚链路长度”在仿真中优于最小分组延迟和最短队列链路长度。<sup>[17](https://www.conta.uom.gr/conta/publications/PDF/LEARNING%20AUTOMATA%20ROUTING%20IN%20CONNECTION-ORIENTED%20NETWORKS.pdf)</sup> 近期工作将自动机应用于云和边缘计算：LATA 在 S-模型环境中使用变结构自动机博弈将 DAG 任务映射到异构虚拟机，优化完工时间、负载和能耗 <sup>[5](https://link.springer.com/article/10.1007/s11227-024-06292-6)</sup>；一种移动边缘卸载方案将双动作自动机（卸载至云端/卸载至边缘端，各初始化为 0.5）与 LSTM 预测和基于 A3C 的模糊自动缩放相结合，在 CPU 消耗、执行时间和能耗方面优于 LAF 和 LAQ 基线 <sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC10772128/)</sup>；ALBLA 使用服务时间度量指标在边缘和云服务器之间分配实时任务 <sup>[19](https://dl.acm.org/doi/10.1007/s00607-024-01380-0)</sup>；ICLA-ARO 将不规则元胞学习自动机与元启发式混合用于雾任务调度。<sup>[20](https://link.springer.com/article/10.1007/s10586-026-06038-4)</sup>

## 局限与替代方案

LR-I 在所有平稳随机环境中是 ε-最优的且绝对合宜，即平均惩罚是一个上鞅 <sup>[21](https://tarlton.info/09-Citations/thathacharLearningAutomataChanging1987_Amedia/Thathachar_Harita_1987_Learning-automata-with-changing-number-of-actions.pdf)</sup>；存在步长 \( \lambda^* \)，使得对所有 \( \lambda \le \lambda^* \)，最优动作概率最终以大概率超过 \( 1 - \epsilon \)。<sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup> 但较小的步长以较慢的收敛为代价换取精度，LR-I 的收敛可能相当缓慢。<sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup> 在由许多自动机组成的分散团队中，LR-I 只能找到局部极小值。<sup>[2](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)</sup> 大多数经典分析假设平稳的单教师环境；对非平稳多教师 S-模型设置的扩展（如 MGAE 方案）仅在所述条件下被证明是 ε-最优的。<sup>[4](https://pure.iiasa.ac.at/id/file/231720)</sup> 固定动作集是另一个经典限制，通过使用修改的 LR-I 的变动作数自动机 <sup>[21](https://tarlton.info/09-Citations/thathacharLearningAutomataChanging1987_Amedia/Thathachar_Harita_1987_Learning-automata-with-changing-number-of-actions.pdf)</sup> 和用于大或连续动作空间的 CALA <sup>[22](https://doi.org/10.1016/0016-0032%2894%2990039-6)</sup> 来解决。在理论方面，实际追踪实现固定调优参数，而早期证明中的 ε-最优性要求采用趋于零的调优参数序列；离散化和吸收连续追踪算法的正式 ε-最优性证明直到 2014 年和 2015 年才出现。<sup>[23](https://www.cambridge.org/core/journals/journal-of-applied-probability/article/on-optimality-of-the-pursuit-learning-algorithm/ADB5180F9A789385D839D8DBF920B819)</sup><sup> • </sup><sup>[24](https://doi.org/10.1007/s10489-015-0670-1)</sup><sup> • </sup><sup>[25](https://doi.org/10.1007/s10489-014-0541-1)</sup> 已发表文献将学习自动机描述为可以说是强化学习的基础 <sup>[26](https://ieeexplore.ieee.org/document/9999274)</sup>，近期的结构工作继续沿其他方向推进，如 2024 年的 ε-最优分层离散追踪自动机。<sup>[26](https://ieeexplore.ieee.org/document/9999274)</sup>

## References

1. [Stochastic automata and learning systems (Thathachar, Sādhanā 1990)](https://www.ias.ac.in/article/fulltext/sadh/015/04-05/0263-0281)
2. [Learning automata algorithms for pattern classification (Sastry & Thathachar, Sādhanā 1999)](https://www.ias.ac.in/article/fulltext/sadh/024/04-05/0261-0292)
3. [Varieties of learning automata: an overview (Thathachar & Sastry, IEEE Trans. SMC-B, 2002)](https://eprints.iisc.ac.in/5011/1/varieties.pdf)
4. [Learning behaviors of stochastic automata under nonstationary multi-teacher environments (Baba et al., IIASA)](https://pure.iiasa.ac.at/id/file/231720)
5. [LATA: learning automata-based task assignment on heterogeneous cloud computing platform (Journal of Supercomputing, 2024)](https://link.springer.com/article/10.1007/s11227-024-06292-6)
6. [Intelligent Navigation of Autonomous Vehicles in an Automated Highway System (Ünsal, Virginia Tech thesis, 1998)](https://vtechworks.lib.vt.edu/server/api/core/bitstreams/3c1b5d24-e34c-4365-9be8-f95ea062fdee/content)
7. [Stochastic Learning Automata (Virginia Tech thesis)](https://vtechworks.lib.vt.edu/server/api/core/bitstreams/2b645ea4-89e5-4145-bf92-0b05195578a9/content)
8. [I. Shapiro, Kumpati Narendra (1969). Use of Stochastic Automata for Parameter Self-Optimization with Multimodal Performance Criteria. IEEE Transactions on Systems Science and Cybernetics.](https://doi.org/10.1109/tssc.1969.300228)
9. [Kumpati S. Narendra, M. A. L. Thathachar (1974). Learning Automata - A Survey. IEEE Transactions on Systems Man and Cybernetics.](https://doi.org/10.1109/tsmc.1974.5408453)
10. [M. A. L. Thathachar, P. S. Sastry (1985). A new approach to the design of reinforcement schemes for learning automata. IEEE Transactions on Systems Man and Cybernetics.](https://doi.org/10.1109/tsmc.1985.6313407)
11. [Continuous and Discretized Generalized Pursuit Learning Schemes (Oommen & Agache)](https://people.scs.carleton.ca/~oommen/papers/GenPurCn.PDF)
12. [Multiple Response Learning Automata (IEEE Trans. SMC correspondence)](https://conta.uom.gr/conta/publications/PDF/Multiple%20Response%20Learning%20Automata.pdf)
13. [HAMID BEIGY, M. R. MEYBODI (2006). UTILIZING DISTRIBUTED LEARNING AUTOMATA TO SOLVE STOCHASTIC SHORTEST PATH PROBLEMS. International Journal of Uncertainty Fuzziness and Knowledge-Based Systems.](https://doi.org/10.1142/s0218488506004217)
14. [HAMID BEIGY, M. R. MEYBODI (2004). A MATHEMATICAL FRAMEWORK FOR CELLULAR LEARNING AUTOMATA. Advances in Complex Systems.](https://doi.org/10.1142/s0219525904000202)
15. [Autonomous Collaborative Learning Among an Ensemble of Tsetlin Machines with Consensus-Based Inference (preprint)](https://arxiv.org/html/2607.20124v1)
16. [Application of Learning Automata to Telephone Traffic Routing and Control (Narendra, Wright, Mason, IEEE TSMC 1977)](https://doi.org/10.1109/tsmc.1977.4309623)
17. [Learning automata routing in connection-oriented networks (Papadimitriou et al.)](https://www.conta.uom.gr/conta/publications/PDF/LEARNING%20AUTOMATA%20ROUTING%20IN%20CONNECTION-ORIENTED%20NETWORKS.pdf)
18. [A decision-making mechanism for task offloading using learning automata and deep learning in mobile edge networks](https://pmc.ncbi.nlm.nih.gov/articles/PMC10772128/)
19. [ALBLA: an adaptive load balancing approach in edge-cloud networks utilizing learning automata (Computing, 2024)](https://dl.acm.org/doi/10.1007/s00607-024-01380-0)
20. [A novel hybrid task scheduling method in fog computing using reinforcement learning and metaheuristic algorithms (Cluster Computing)](https://link.springer.com/article/10.1007/s10586-026-06038-4)
21. [Learning automata with changing number of actions (Thathachar & Harita, 1987)](https://tarlton.info/09-Citations/thathacharLearningAutomataChanging1987_Amedia/Thathachar_Harita_1987_Learning-automata-with-changing-number-of-actions.pdf)
22. [Continuous action set learning automata for stochastic optimization (Journal of the Franklin Institute, 1994)](https://doi.org/10.1016/0016-0032%2894%2990039-6)
23. [On ε-Optimality of the Pursuit Learning Algorithm (Journal of Applied Probability, Cambridge Core)](https://www.cambridge.org/core/journals/journal-of-applied-probability/article/on-optimality-of-the-pursuit-learning-algorithm/ADB5180F9A789385D839D8DBF920B819)
24. [Xuan Zhang and colleagues (2015). A formal proof of the 𝜖-optimality of discretized pursuit algorithms. Applied Intelligence.](https://doi.org/10.1007/s10489-015-0670-1)
25. [Xuan Zhang and colleagues (2014). A formal proof of the ε-optimality of absorbing continuous pursuit algorithms using the theory of regular functions. Applied Intelligence.](https://doi.org/10.1007/s10489-014-0541-1)
26. [The Hierarchical Discrete Pursuit Learning Automaton (Omslandseter, Jiao, Zhang, Yazidi, Oommen, IEEE TNNLS 2024)](https://ieeexplore.ieee.org/document/9999274)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 21, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/learning-automata

English original: https://www.edgepedia.org/learning-automata
