← 中英对照目录 · ← 书架
§3 基于高层级认知的归纳偏置(五)
3.9 Variables, Instances and Reusable Knowledge Pieces · 3.10 Relevant Causal Chains Can Be Approximated as Very Short Chains
3.9 变量、实例与可复用知识片段
3.9 Variables, Instances and Reusable Knowledge Pieces
A standard graphical model is static, with a separate set of parameters for each conditional distribution (in a directed acyclic graph) or factor (in a factor graph). There are extensions which allow parameter sharing, e.g. through time with dynamic Bayes nets, or in undirected graphical models such as Markov Networks which allow one to "instantiate" general "patterns" into multiple factors of the factor graph. Markov Networks can for example implement forms of recursively applied probabilistic rules. But they do not take advantage of distributed representations and other inductive biases of deep learning.
标准图模型是静态的,每个条件分布(在有向无环图中)或因子(在因子图中)都有一套独立参数。有一些扩展允许参数共享——例如动态贝叶斯网络跨时间共享,或马尔可夫网络这类无向图模型允许把通用「模式」「实例化」到因子图的多个因子中。马尔可夫网络可以实现递归应用的概率规则形式,但它们没有利用深度学习的分布式表征与其他归纳偏置。
The inductive bias we are presenting here is that instead of separately defining specific factors in the factor graph (maybe each with a piece of neural network), each having its separate set of parameters, we would define generic factors, "schemas" or "factor templates". A schema, or generic factor is a reusable probabilistic relation, i.e., with argument variables which can be bound to instances (also discussed in (Rumelhart et al., 1986)).
我们在此提出的归纳偏置是:与其在因子图中分别定义特定因子(也许每个因子都配一块神经网络、各有一套独立参数),不如定义通用因子、「模式(schemas)」或「因子模板」。一个模式或通用因子是一种可复用的概率关系——其参数变量可以绑定到实例上。
A static instantiated rule is a thing like 'if John is hungry then he looks for food'. Instead, a more general rule is a thing like, 'for all X, if X is a human and X is hungry, then X looks for food' (with some probability). X can be bound to specific instances (or to other variables which may involve more constraints on the acceptable set).
一个静态的已实例化规则,是这样的东西:「如果约翰饿了,他就去找食物」。而一个更一般的规则是:「对所有 X,如果 X 是人且 X 饿了,则 X 去找食物」(带一定概率)。X 可以绑定到特定实例(或绑定到对可接受集合有更多约束的其他变量)。
In classical symbolic AI, we have unification mechanisms to match together variables, instances or expressions involving variables and instances, and thus keep track of how variables can ultimately be 'bound' to instances (or to variables with more constraints on their attributes), when exploring whether some schema can be applied to some objects (instances or more generic objects) with properties (constituting a database of entities).
在经典符号 AI 中,我们有合一(unification)机制来把变量、实例或涉及变量与实例的表达式匹配起来,从而在探索某个模式能否应用于具有某些属性(构成实体数据库)的对象(实例或更通用的对象)时,跟踪变量最终如何「绑定」到实例(或绑定到对其属性有更多约束的变量)。
The proposed inductive bias is also inspired by the presence of such a structure in the semantics of natural language and the way we tend to organize knowledge according to relations, e.g., in knowledge graphs. Natural language allows us to state rules involving variables and is not limited to making statements about specific instances.
所提归纳偏置也受到自然语言语义中此类结构的启发,以及我们倾向于按关系组织知识的方式(如知识图谱)。自然语言允许我们陈述涉及变量的规则,而不限于陈述关于特定实例的事实。
Knowledge is generic and can be instantiated on different instances. The independent mechanisms (with separate parameters) which specify dependencies between variables are generic, i.e., they can be instantiated in many possible ways to specific sets of arguments with the appropriate types or constraints.
知识是通用的,可实例化到不同实例上。指定变量间依赖的独立机制(各带参数)是通用的——它们能以许多可能的方式实例化到具有恰当类型或约束的特定参数集上。
What this means in practice is that we do not need to hold in memory the full instantiated graph with all possible instances and all possible mechanisms relating them (or worse, all the generic factor instantiations that are compatible with the data, in a Bayesian posterior).
这在实践中的含义是:我们不需要在记忆中保存完整的已实例化图——即所有可能的实例及关联它们的全部机制(更糟的是贝叶斯后验中所有与数据兼容的通用因子实例化)。
Instead, inference involves generating the needed pieces of the graph and even performing reasoning (i.e. deduction) at an abstract level, where nodes in the graph (random variables) stand not for instances but for sets of instances belonging to some category or satisfying some constraints.
相反,推理涉及按需生成图的片段,甚至在抽象层面执行推理(即演绎)——图中的节点(随机变量)代表的不是实例,而是属于某个类别或满足某些约束的实例集合。
Whereas one can unfold a recurrent neural network or a Bayesian network to obtain the fully instantiated graph, in the case we are talking about, similarly to a Markov network, it is generally not feasible to do that. It means that inference procedures always look at a small piece of the (partially) unfolded graph at a time and they can reason about how to combine these generic schemas without having to fully instantiate them with concrete instances or concrete objects in the world.
虽然可以展开循环神经网络或贝叶斯网络得到完全实例化的图,但就我们讨论的情形而言——类似于马尔可夫网络——这样做通常不可行。这意味着推理过程每次只看(部分)展开图的一小片,并且能推理如何组合这些通用模式,而无需用世界中的具体实例或具体对象把它们完全实例化。
One way to think about this, inspired by how we do programming, is that we have functions with generic and possibly typed variables as arguments and we have instances on which a program is going to be applied. At any time (as you would have in Prolog), an inference engine must match the rules with the current instances (so the types and other constraints between arguments are respected) as well as other elements (such as what we are trying to achieve with this computation) in order to combine the appropriate computations.
受编程方式的启发,一种思考方式是:我们有以通用、可能带类型的变量为参数的函数,也有程序将要应用于其上的实例。在任何时刻(就像在 Prolog 中),推理引擎必须把规则与当前实例匹配(从而尊重参数间的类型与其他约束),也要与其他元素(如我们想通过这次计算达成什么)匹配,以组合恰当的计算。
It would make sense to think of such a computation controller, as an internal policy with attention and memory access as actions, to select which pieces of knowledge and which pieces of the short-term (and occasionally long-term) memory need to be combined in order to push new values in working memory.
把这样的计算控制器视为一个内部策略(以注意力和记忆访问为动作)是合理的:它选择需要组合哪些知识片段、哪些短期(偶尔长期)记忆片段,以把新值推入工作记忆。
An interesting outcome of such a representation is that one can apply the same knowledge (i.e knowledge specified by a schema which links multiple abstract entities together) to different instances (i.e different "object files" in cognitive psychology). For example, you can apply the same laws of physics to two different balls that are visually different (and maybe have different colors and masses).
这种表示的一个有趣结果是:可以把同一知识(即由连接多个抽象实体的模式所指定的知识)应用于不同实例(认知心理学中的不同「对象档案」)。例如,你可以把同一条物理定律应用于两个视觉上不同(也许颜色和质量不同)的球。
This is also related to notions of arguments and indirection in programming. The power of such relational reasoning resides in its capacity to generate inferences and generalizations that are constrained by the roles that elements play, and the roles they can play may depend on the properties of these elements, but these schemas specify how entities can be related to each other in systematic (and possibly novel) ways.
这也与编程中的参数与间接引用概念相关。这种关系推理的力量在于:它能产生受「元素所扮演角色」约束的推断与泛化;元素能扮演的角色可能取决于这些元素的属性,而这些模式则指定了实体之间如何以系统性的(可能是新颖的)方式相互关联。
In the limit, relational reasoning yields universal inductive generalization from a finite and often very small set of observed cases to a potentially infinite set of novel instances, so long as those instances can be described by attributes (specifying types) allowing to bound them to appropriate schemas.
在极限情况下,关系推理从有限且往往很小的已观测案例集合,产生到潜在无限新实例集合的普遍归纳泛化——只要这些实例能用允许将它们绑定到恰当模式的属性(指定类型)来描述。
There are two forms of knowledge representation we have discussed: declarative knowledge or hypotheses, i.e., that can be verbalized (e.g. of facts, hypotheses, explicit causal dependencies, etc), and inference machinery used to reason with these pieces of knowledge.
我们讨论过的知识表示有两种形式:陈述性知识或假设(即可言语化的,如事实、假设、显式因果依赖等),以及用于对这些知识片段进行推理的推理机制
Standard graphical models only represent the declarative knowledge and typically require expensive but generic iterative computations (such as Monte-Carlo Markov chains) to perform approximate inference. However, brains need fast inference, and most of the advances made with deep learning concern such learned fast inference computations.
标准图模型只表示陈述性知识,且通常需要昂贵但通用的迭代计算(如蒙特卡洛马尔可夫链)来做近似推理。然而,大脑需要快速推理——而深度学习取得的大部分进展,正是关于这种学到的快速推理计算。
Doing inference using only the declarative knowledge (the graphical model) is very flexible (any question of the form "predict some variables given other variables or imagined interventions" can be answered) but also very slow. In general, searching for a good configuration of the values of top-level variables which is consistent with the given context is computationally intractable. However, different approximations can be made which trade-off computational cost for quality of the solutions found.
仅用陈述性知识(图模型)做推理非常灵活(「在给定其他变量或想象干预的情况下预测某些变量」这类任何问题都能回答),但也非常慢。一般而言,搜索与给定上下文一致的顶层变量值的好配置,在计算上是棘手的。然而,可以做出不同的近似,用计算成本换取所得解的质量。
This difference could also be an important ingredient of the difference between system 1 (fast and parallel approximate and inflexible inference) and system 2 (slower and sequential but more flexible inference).
这一差异也应是系统 1(快速、并行、近似而不灵活的推理)与系统 2(较慢、序列化但更灵活的推理)之间差异的重要组成部分。
We also know that after system 2 has been called upon to deal with novel situations repeatedly, the brain tends to bake these patterns of response in habitual system 1 circuits which can do the inference job faster and more accurately but have lost some flexibility. When a new rule is introduced, the system 2 is flexible enough to handle it and slow inference needs to be called upon again.
我们还知道:在系统 2 被反复调用以处理新颖情境之后,大脑倾向于把这些响应模式固化进习惯性的系统 1 回路——它们能更快、更准地完成推理,但失去了一些灵活性。当引入新规则时,系统 2 足够灵活以处理它,慢推理又需要被调用。
Neuroscientists have also accumulated evidence that the hippocampus is involved in replaying sequences (from memory or imagination) for consolidation into cortex so that they can be presumably committed to cortical long-term memory and fast inference.
神经科学家也已积累证据表明:海马体参与重放序列(来自记忆或想象),以固化到皮层——这样它们大概可以被提交到皮层长期记忆和快速推理。
3.10 相关的因果链(用于学习或推理)可近似为很短的链
3.10 Relevant causal chains can be approximated as very short chains
In a clock-based segmentation, the boundaries between discrete time steps are spaced equally. In an event-based segmentation, the boundaries depend on the state of the environment, resulting in dynamic duration of intervals. Our brains seem to segment streams of sensory inputs into meaningful representations of variable-length episodes and events.
在基于时钟的分段中,离散时间步之间的边界等距;在基于事件的分段中,边界取决于环境状态,产生动态长度的区间。我们的大脑似乎把感觉输入流分段为可变长度的情节与事件的有意义表征。
The detection of a relevant event in the temporal stream triggers information processing of the event. The psychological reality of event-based segmentation can be illustrated through a familiar phenomenon. Consider the experience of traveling from one location to another, such as from home to office.
在时间流中检测到相关事件会触发对事件的信息加工。基于事件分段的心理现实可以通过一个熟悉的现象来说明:考虑从一处到另一处的旅行体验,比如从家到办公室。
If the route is unfamiliar, as when one first starts a new job, the trip is confusing and lengthy, but as one gains more experience following the route, one has the sense that the trip becomes shorter. One explanation for this phenomenon is as follows.
如果路线不熟悉(如刚开始新工作时),旅途令人困惑且显得漫长;但随着对路线的经验增多,人会感觉旅途变短了。对这一现象的一种解释如下。
On an unfamiliar route, the orienting mechanism that detects novel events is triggered for a large number of such events over the course of the trip. In contrast, few novel events occur on a familiar route. If our perception of time is event-based, meaning that higher centers of cognition count the number of events occurring in a temporal window, not the number of milliseconds, then one will have the sense that a familiar trip is shorter than an unfamiliar trip.
在陌生路线上,检测新事件的定向机制在旅途中被大量触发;而在熟悉路线上,新事件很少发生。如果我们的时间感知是基于事件的——即更高层认知中心计算的是时间窗内发生的事件数量,而不是毫秒数——那么人就会觉得熟悉的旅途比不熟悉的旅途更短。
Event segmentation allows functional representations that support temporal reasoning, an ability that arguably relies on neural circuits to encode and retrieve information to and from memory. Indeed, faced with a task, our brains appear to easily and selectively pluck context-relevant past information from memory, enabling both powerful multi-scale associations as well as flexible computations to relate temporally distant events.
事件分段允许支持时间推理的功能性表征——这种能力可说是依赖神经回路向记忆编码与从记忆检索信息。确实,面对任务时,我们的大脑似乎能轻松、有选择地从记忆中提取与上下文相关的过去信息,既支持强大的多尺度关联,也支持灵活地计算联系时间上遥远的事件。
As we argue here, the ability of the brain to efficiently segment sensory inputs into events, and the ability to selectively recall information from the distant past based on the current context helps to efficiently propagate information (such as credit assignment or causal dependencies) over long time spans. Both at the cognitive and at the physiological levels, there is evidence of information "routing" mechanisms that enable this efficient propagation of information, although they are far from being sufficiently understood.
正如我们在这里论证的:大脑把感觉输入高效分段为事件的能力,以及基于当前上下文有选择地回忆遥远过去信息的能力,帮助在长时间跨度上高效传播信息(如信用分配或因果依赖)。无论在认知层面还是生理层面,都有证据表明存在实现这种高效信息传播的「路由」机制——尽管它们还远未被充分理解。
Relevant Causal Chains tend to be sparse. Our next inductive bias is almost a consequence of the biases on causal variables and the bias on the sparsity of the factor graph for the joint distribution between high-level variables. Causal chains used to perform learning (to imagine counterfactuals and to propagate and assign credit) or inference (to obtain explanations or plans for achieving some goal) are broken down into short causal chains of events which may be far in time but linked by the top-level factor graph over semantic variables.
相关的因果链往往是稀疏的。我们的下一个归纳偏置几乎是由「因果变量偏置」和「高层级变量联合分布因子图稀疏性偏置」推出的结论。用于学习(想象反事实、传播与分配信用)或推理(为达成目标获得解释或计划)的因果链,被分解为短的事件因果链——这些事件可能在时间上很远,但由语义变量上的顶层因子图连接。
At least at a conscious level, humans are not able to reason about many such events at a time, due to the limitations on short-term memory and the bottleneck of conscious processing. Hence it is plausible that humans would exploit an assumption on temporal dependencies in the data: that the most relevant ones only involve short dependency chains, or a small-depth graph of direct dependencies. Depth here refers to the longest path in the relevant graph of dependencies between events.
至少在意识层面,由于短期记忆的限制与意识加工的瓶颈,人类无法一次推理许多这样的事件。因此合理的是:人类会利用数据中时间依赖的一个假设——最相关的依赖只涉及短依赖链,或一个浅层的直接依赖图。这里的「深度」指相关事件依赖图中最长的路径。
What we showed earlier (Ke et al., 2018; Kerg et al., 2020) is that this prior assumption is the strongest ingredient to mitigate the issue of vanishing gradients that occurs when trying to learn long-term dependencies.
我们此前的研究表明:这一先验假设是缓解「学习长程依赖时出现的梯度消失问题」的最强因素。
← 主页