# 迭代函数系统

迭代函数系统（iterated function system，IFS）是一组有限的压缩映射——通常是平面上的仿射变换——并为每个映射配上一个概率；从适当的初始紧集出发迭代哈钦森算子，会在豪斯多夫距离下收敛到唯一的紧集，称为吸引子；而随机点轨道则在距离意义下收敛到该吸引子，后者通常是分形。完备度量空间上的一族有限压缩映射连同相应的概率，确定了一个具有唯一吸引子的IFS，而只需指定少数几个映射就能产生非常复杂的对象。<sup>[1](https://dl.acm.org/doi/10.1145/325334.325245)</sup>因此，IFS可以用一小组压缩变换来描绘一个复杂的对象，<sup>[2](https://ar5iv.labs.arxiv.org/html/2211.14661)</sup>这正是它在数学和计算机图形学中主要用途的基础：生成分形集与分形图像、表示真实世界的图像，以及分形图像压缩。<sup>[3](https://ntrs.nasa.gov/api/citations/19890012975/downloads/19890012975.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 唯一吸引子 | 非空完备度量空间上的压缩IFS具有唯一吸引子，其吸引域为整个空间<sup>[4](https://link.springer.com/article/10.1007/s13373-013-0041-3)</sup> |
| 编码规模 | 每个仿射映射由六个数确定；由\( m \)个映射构成的吸引子由\( 6m \)个实数编码<sup>[5](https://www.ams.org/notices/199606/barnsley.pdf)</sup><sup> • </sup><sup>[6](https://csm.ro/reviste/Mathematical_Reports/Pdfs/2009/3/Iosifescu.pdf)</sup> |
| 渲染 | 混沌游戏绘制\( x_{n+1} = w_{i_n}(x_n) \)，每一步随机选取映射<sup>[7](https://mathstat.dal.ca/~yanghs/notes.php?name=AARMS_Fractals)</sup> |
| 收敛到屏幕分辨率 | 对典型例子，经过10到50次迭代后豪斯多夫距离降至屏幕分辨率以下<sup>[3](https://ntrs.nasa.gov/api/citations/19890012975/downloads/19890012975.pdf)</sup> |
| 压缩 | 用\( N \)个映射编码一幅1024 × 1024、每像素9比特的图像，得到长度为\( 72 \cdot N \)比特的编码；\( N = 100 \)时得到7200比特，压缩比超过1000:1<sup>[3](https://ntrs.nasa.gov/api/citations/19890012975/downloads/19890012975.pdf)</sup> |
| 拼贴误差界 | 若目标与其拼贴的豪斯多夫距离在\( E \)以内，则吸引子与目标的距离在\( E/(1-s) \)以内，其中压缩率为\( 0 < s < 1 \)<sup>[3](https://ntrs.nasa.gov/api/citations/19890012975/downloads/19890012975.pdf)</sup> |
| 受控可变性 | 在V可变分形中，整数\( V \)是每一放大层级上不同形状数量的上界<sup>[8](https://doi.org/10.48550/arxiv.math/0312314)</sup> |

## 工作原理

具有映射\( f_1, \dots, f_N \)的IFS在集合上诱导出哈钦森算子\( F(A) = f_1(A) \cup \dots \cup f_N(A) \)。限制在配备豪斯多夫度量\( h(A,B) = \mathrm{Max}\{d(A,B), d(B,A)\} \)的非空闭有界集上（其中\( d(A,B) = \sup_{a \in A} \inf_{b \in B} d(a,b) \)），该映射是压缩的，因此巴拿赫压缩映射原理保证存在唯一不动点\( K \)满足\( K = F(K) \)；这个不动点就是吸引子。<sup>[9](https://encyclopediaofmath.org/wiki/Iterated_function_system)</sup><sup> • </sup><sup>[5](https://www.ams.org/notices/199606/barnsley.pdf)</sup>哈钦森定理给出了一般形式的结果：非空完备度量空间\( (X,d) \)上的压缩IFS具有唯一吸引子\( A \)，且\( A \)的吸引域是整个空间\( X \)，因此从任何非空紧初始集出发迭代都会收敛。<sup>[4](https://link.springer.com/article/10.1007/s13373-013-0041-3)</sup>

拼贴定理把目标图像与IFS编码联系起来：若目标\( B \)与其像\( C(B) \)之间的豪斯多夫距离小于\( E \)，则\( B \)与\( C \)的吸引子之间的豪斯多夫距离小于\( E/(1-s) \)。<sup>[3](https://ntrs.nasa.gov/api/citations/19890012975/downloads/19890012975.pdf)</sup>加上概率\( (p_1, \dots, p_N) \)后，在博雷尔概率测度上诱导出映射\( G\mu(B) = \sum_{i=1}^{N} p_i \, \mu(f_i^{-1}B) \)；双曲IFS具有唯一不变测度，其拓扑支撑即为吸引子。<sup>[9](https://encyclopediaofmath.org/wiki/Iterated_function_system)</sup>

## 实现方法

有两种算法可以计算吸引子的图像。确定性算法迭代整个集合：从初始集\( S_0 = \{x_0\} \)出发，构造\( S_k = W(S_{k-1}) = \{ w_{i_1} \circ \dots \circ w_{i_k}(x_0): i_j \in \{1, \dots, N\} \} \)，其元素是所有\( k \)个映射的复合。<sup>[7](https://mathstat.dal.ca/~yanghs/notes.php?name=AARMS_Fractals)</sup>这种方法效率低下，因为计算量随\( k \)指数增长，而且要求初始集位于吸引子的吸引域内。<sup>[4](https://link.springer.com/article/10.1007/s13373-013-0041-3)</sup>

混沌游戏只需要一个起始点，占用内存很少。算法如下：从\( x_0 \in X \)出发；以概率\( 1/N \)（或以和为1的概率\( p_i \)）选取\( i_n \in \{1, \dots, N\} \)；令\( x_{n+1} = w_{i_n}(x_n) \)并绘制该点；重复直到图像足够接近。<sup>[7](https://mathstat.dal.ca/~yanghs/notes.php?name=AARMS_Fractals)</sup>该轨道是马尔可夫链\( X_{n+1} = f_{Y_n}(X_n) \)，其中\( \mathrm{P}[Y_n = i] = p_i \)，其分布收敛到不变测度。<sup>[9](https://encyclopediaofmath.org/wiki/Iterated_function_system)</sup>若IFS具有吸引子\( A \)，则从吸引域内出发的随机轨道以概率一收敛到\( A \)；在一般条件下已证明收敛性，甚至对闭有界集均为紧集的度量空间上仅含连续映射的非压缩IFS也成立。<sup>[10](https://people.clas.ufl.edu/avince/files/ETS-ETS31_04ChaosGame.pdf)</sup>

## 起源

其数学核心将紧集\( K \subset \mathbb{R}^n \)定义为不变的，当存在有限压缩映射集\( S = \{S_1, \dots, S_N\} \)使其并像等于\( K \)时。<sup>[11](https://maths-people.anu.edu.au/~john/Assets/Research%20Papers/fractals_self-similarity.pdf)</sup>后来的一篇综述指出，哈钦森提出了这一概念（尽管未用现在的名称），目的是用几何测度论使曼德博书中的一些关键思想严格化；吸引子概念的雏形出现在纳德勒和威廉姆斯的工作中。<sup>[4](https://link.springer.com/article/10.1007/s13373-013-0041-3)</sup>

IFS被引入计算机图形学，并提出了反问题：确定一个能近似生成给定几何形状的IFS。<sup>[1](https://dl.acm.org/doi/10.1145/325334.325245)</sup>相关工作引发了对用二维IFS变换表示真实世界图像的广泛兴趣。<sup>[12](https://link.springer.com/article/10.1186/s13663-026-00834-8)</sup><sup> • </sup><sup>[2](https://ar5iv.labs.arxiv.org/html/2211.14661)</sup>混沌游戏源于巴恩斯利1988年的教科书《无处不在的分形》。<sup>[13](https://ar5iv.labs.arxiv.org/html/2007.11517)</sup>

## 变体

带概率或权重的IFS，\( (f_1, \dots, f_N; \, p_1, \dots, p_N) \)且\( \sum_i p_i = 1 \)，不仅产生集合吸引子，还产生不变测度，因此渲染出的点密度具有意义。<sup>[8](https://doi.org/10.48550/arxiv.math/0312314)</sup><sup> • </sup><sup>[9](https://encyclopediaofmath.org/wiki/Iterated_function_system)</sup>递归IFS使用一个\( N \times N \)的零一矩阵\( M \)（满足\( M^n > 0 \)）以及对应于每个允许的指标对的压缩映射\( f_{ij} \)；它产生唯一的紧集向量，且不变测度结果在\( (Y_n) \)为马尔可夫链（其转移概率恰在\( m_{ij} \)为正处为正）时成立。<sup>[9](https://encyclopediaofmath.org/wiki/Iterated_function_system)</sup>分区IFS编码将图像分区并在各部分之间寻找压缩映射，为分形图像编码提供了一种高效方案。<sup>[12](https://link.springer.com/article/10.1186/s13663-026-00834-8)</sup>

V可变分形和超分形由迈克尔·巴恩斯利、约翰·E·哈钦森和约尔扬·斯滕弗洛在2003年的一篇arXiv论文中提出。<sup>[8](https://doi.org/10.48550/arxiv.math/0312314)</sup>参数\( V \)控制每一放大层级上不同形状的数量，\( V = 1 \)给出确定性和齐次随机分形；每一族V可变分形连同其概率分布构成单个超分形，由作用于图像V元组的超IFS生成。<sup>[8](https://doi.org/10.48550/arxiv.math/0312314)</sup>

## 应用

在分形图像压缩中，每个变换的几何部分是一个含六个参数的仿射映射\( w(x,y) = (a \cdot x + b \cdot y + e, \; c \cdot x + d \cdot y + f) \)，灰度编解码器还需要额外的强度参数和其他编码信息，因此六数集描述的是确定吸引子的映射的几何。<sup>[5](https://www.ams.org/notices/199606/barnsley.pdf)</sup>由于分形变换编码没有内在尺寸且在理论上与尺度无关，将其应用于初始图像可在相同或不同分辨率下产生原图的近似，保真度取决于编码和解码。<sup>[14](https://www.uni-konstanz.de/mmsp/fractal2/pdf/DuPoRo96.pdf.lic)</sup><sup> • </sup><sup>[5](https://www.ams.org/notices/199606/barnsley.pdf)</sup>应用拼贴定理使\( E < (1-s) \cdot \text{resolution} \)，可在定理假设下将豪斯多夫误差限制在所选分辨率以下；搜索压缩因子低于0.7的变换时，\( E \)低于\( 0.3 \cdot \text{resolution} \)即足以满足该界。<sup>[3](https://ntrs.nasa.gov/api/citations/19890012975/downloads/19890012975.pdf)</sup>

从目标图像估计映射是分形反问题：给定参考图像，找到一个IFS分形编码使其吸引子与形状匹配，之后可通过混沌游戏以几乎无限的分辨率重新合成该形状。<sup>[15](https://chaotic-fractals.mpi-inf.mpg.de/Chaotic_Fractals.pdf)</sup>巴恩斯利的压缩专利将该任务描述为：安排目标的小型仿射变形副本，使其尽可能精确地覆盖原图，拼贴越好编码越好。<sup>[16](https://patents.google.com/patent/US4941193A/en)</sup>已记录的既有方法包括目标区域的凸包、遗传算法、小波变换、类EM算法，某些情况下还有神经网络；目前尚无已知的通用解法，尽管对于构造IFS使其吸引子为给定IFS吸引子\( F \)的仿射像\( w(F) \)这一反问题，已有精确解发表（哈齐耶娃，《科学与工程中的不动点理论与算法》，2026年）。<sup>[17](https://differentiable.xyz/papers-2024/paper_60.pdf)</sup><sup> • </sup><sup>[12](https://link.springer.com/article/10.1186/s13663-026-00834-8)</sup>除压缩外，IFS还通过自相似分支结构为植物、叶片和蕨类提供模型。<sup>[8](https://doi.org/10.48550/arxiv.math/0312314)</sup>

## 局限与替代方案

压缩性是唯一吸引子保证的标准条件，但混沌游戏的收敛性已被大大推广：即使对闭有界集均为紧集的度量空间上含连续映射的非压缩IFS，该算法也几乎必然产生吸引子，从而去掉了早先对压缩性或平均压缩性的要求。<sup>[10](https://people.clas.ufl.edu/avince/files/ETS-ETS31_04ChaosGame.pdf)</sup>点渲染还会产生混叠；一种控制方法是用标准差为2.5像素的高斯核将混沌游戏点以比输入高5倍的分辨率泼溅到图像中，然后降采样，这一平衡由网格搜索确定。<sup>[15](https://chaotic-fractals.mpi-inf.mpg.de/Chaotic_Fractals.pdf)</sup>L系统是已有记录的分形生成替代方法，在图形学文献中与IFS和科赫构造进行了比较。<sup>[18](https://algorithmicbotany.org/papers/lrifs.sigt94.pdf)</sup>

近期工作使IFS估计变得可微且可学习。一种方法将IFS视为具有恒等激活函数和随机权重的循环神经网络，因此前向和反向传播可在PyTorch或TensorFlow中运行，并用可微渲染模块将生成的点序列转换为可与目标比较的图像，使梯度到达分形参数。<sup>[19](https://arxiv.org/pdf/2303.12722v1.pdf)</sup>一种相关方法在基于瓦片的流水线中通过将每个混沌游戏点泼溅为带阿尔法混合的各向同性二维高斯来进行可微光栅化。<sup>[15](https://chaotic-fractals.mpi-inf.mpg.de/Chaotic_Fractals.pdf)</sup>

## References

1. [Construction of fractal objects with iterated function systems (SIGGRAPH '85)](https://dl.acm.org/doi/10.1145/325334.325245)
2. [Iterated Function Systems: A Comprehensive Survey](https://ar5iv.labs.arxiv.org/html/2211.14661)
3. [N89-22346 (NASA contractor report on fractal image compression, Georgia Tech)](https://ntrs.nasa.gov/api/citations/19890012975/downloads/19890012975.pdf)
4. [Developments in fractal geometry (Bulletin of Mathematical Sciences)](https://link.springer.com/article/10.1007/s13373-013-0041-3)
5. [Fractal Image Compression (Notices of the AMS)](https://www.ams.org/notices/199606/barnsley.pdf)
6. [Iterated Function Systems. A Critical Survey (Mathematical Reports)](https://csm.ro/reviste/Mathematical_Reports/Pdfs/2009/3/Iosifescu.pdf)
7. [AARMS 5920: Fractals, Using Iterated Function Systems (IFS)](https://mathstat.dal.ca/~yanghs/notes.php?name=AARMS_Fractals)
8. [Barnsley, Michael, Hutchinson, John E., Stenflo, Örjan (2003). V-variable fractals and superfractals. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.math/0312314)
9. [Iterated function system - Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Iterated_function_system)
10. [The chaos game on a general iterated function system](https://people.clas.ufl.edu/avince/files/ETS-ETS31_04ChaosGame.pdf)
11. [Fractals and Self Similarity](https://maths-people.anu.edu.au/~john/Assets/Research%20Papers/fractals_self-similarity.pdf)
12. [Exact solution of an inverse problem for affine images of IFS attractors](https://link.springer.com/article/10.1186/s13663-026-00834-8)
13. [[2007.11517] How long is the Chaos Game?](https://ar5iv.labs.arxiv.org/html/2007.11517)
14. [Iterated Function Systems for Still Image Processing (1996)](https://www.uni-konstanz.de/mmsp/fractal2/pdf/DuPoRo96.pdf.lic)
15. [Learning Image Fractals Using Chaotic Differentiable Point Splatting](https://chaotic-fractals.mpi-inf.mpg.de/Chaotic_Fractals.pdf)
16. [US4941193A - Methods and apparatus for image compression by iterated function system](https://patents.google.com/patent/US4941193A/en)
17. [Differentiable Iterated Function Systems](https://differentiable.xyz/papers-2024/paper_60.pdf)
18. [Language-Restricted Iterated Function Systems, Koch Constructions, and L-systems (SIGGRAPH '94)](https://algorithmicbotany.org/papers/lrifs.sigt94.pdf)
19. [Learning Fractals by Gradient Descent](https://arxiv.org/pdf/2303.12722v1.pdf)

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

Topic: 物质世界与数学 › 数学与统计学 › 几何学与拓扑学

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/iterated-function-system

English original: https://www.edgepedia.org/iterated-function-system
