The following are my thoughts on the definition of learning in infra-Bayesian physicalism (IBP), which is also a candidate for the ultimate prescriptive agent desideratum.
In general, learning of hypotheses about the physical universe is not possible because of traps. On the other hand, learning of hypotheses about computable mathematics is possible in the limit of ample computing resources, as long as we can ignore side effects of computations. Moreover, learning computable mathematics implies approximating Bayesian planning w.r.t the prior about the physical universe. Hence, we focus on this sort of learning.
We consider an agent comprised of three modules, that we call Simulator, Learner and Controller. The agent's history consists of two phases. In the Training phase, the Learner interacts with the Simulator, and in the end produces a program for the Controller. In the Deployment phase, the Controller runs the program.
Roughly speaking:
We will refer to this as the SiLC architecture.
Let H⊆□Γ be our hypothesis class about computable mathematics. Let ξ:Γ→□2Γ be our prior about the physical universe[1]. These have to satisfy the coherence conditions
∀y∈Γ,α∈suppξ(y):y∈α∀y,y′∈Γ,θ∈ξ(y):χy′∈αθ∈ξ(y′)∀Θ∈H,θ∈Θ,s:Γ→Γ,ϕ:Γ→ΔcΓ:ϕ⪯ξ⟹prΓχelΓ(s×id2Γ)∗(θ⋉ϕ)∈ΘHere, ϕ⪯ξ means that ∀y∈Γ:ϕ(y)∈ξ(y).
Together, these ensure that Θ⋉ξ is a coherent IBP hypothesis. Notice that for any ξ0:Γ→□2Γ satisfying the first condition[2], there is a unique minimal coherent ξ:Γ→□2Γ s.t. ∀y∈Γ:ξ0(y)⊆ξ(y). Moreover, given a coherent ξ and any Θ0∈□Γ, there is a unique minimal coherent Θ∈□Γ s.t. Θ0⊆Θ.
The duration of the Training phase will be denoted by τ∈N[3]. We can think of it as "computational time".
Let the source codes of the Learner (obtained by quining), the Simulator and the Controller respectively be denoted by
DL:Γ×N×(IS×OS)∗→ΔQ(IS×IC)DS:Γ×I+S→OSDC:Γ×I∗C×O∗→AHere, the N argument of DL corresponds to τ and ΔQ is a probability distribution in which all probabilities are rational numbers[4].
We assume that the simulator can indeed run any computation, and that any given halting computation would run fast for τ≫0. These are assumptions on DS (or, on some combination of (i) DS, (ii) the definition of Γ, and (iii) the support of all Θ∈H) that we will not spell out here.
We will say that a policy is a mapping of type (IS×IC×OS)∗→ΔQ(IS×IC) and a metapolicy is a mapping of type N×(IS×IC×OS)∗→ΔQ(IS×IC).
Given any D′L:Γ×N×(IS×IC×OS)∗→ΔQ(IS×IC), we can compose it with DS and DC in the obvious way[5] to yield
DS⊗D′L⊗DC:Γ×N×(A×O)∗→ΔQAIn particular, we can take D′L=μ for some metapolicy μ by postulating no dependence on the Γ argument.
Denote by P the set of all policies. Given metapolicy μ and π∈P, we define μπ:[τ+1]×(IS×IC×OS)∗→ΔQ(IS×IC) by
μπ(k,pq):={μ(k,pq) if k<τπ(pq) if k=τGiven any ν:[τ+1]×(IS×IC×OS)∗→ΔQ(IS×IC), we say that y∈Γ is a ντ-consistent counterpossible when the following conditions hold:
We denote by Cτν⊆Γ the set of ντ-consistent counterpossibles.
A (deterministic) copolicy is a mapping of signature I+S→OS. We denote the set of copolicies by C. Given a policy π and a copolicy ν, we define π^⊗ν∈Δ(IS×IC×OS)∗ in the obvious way. Given policies π1,π2, we define their total variation distance[6] to be
dTV(π1,π2):=maxν∈CdTV(π1^⊗ν,π2^⊗ν)Given Ξ∈□(Γ×2Γ), f:Γ×2Γ→[0,∞), τ∈N and metapolicy μ, we will use the notation
EΞ[f∣∣μτ]:=minπ∈P(EΞ[f⋅χCτμπ]+dTV(π,μ(τ)))Intuitively, EΞ[f∣∣μτ] should be thought as the counterfactual expectation of loss function f assuming metapolicy μ, while adding a "bonus" to account for "fair" treatment of randomization by the agent. More on that below.
Given a metapolicy μ and τ∈N, we define Eτμ⊆2Γ by
Eτμ:={α∈2Γ∣∃π∈P:Cτμπ∩α=∅}Intuitively, Eτtμ is the set of universe states for which at least one copy of the agent exists which followed the metapolicy μ until computational time τ.
Given a loss function l:N×2Γ→[0,1][7] (which we allow to explicitly depend on computational time for greater generality), the learning condition on a metapolicy μ∗ and hypothesis Θ∈H is
∑τ<NEξ∗Θ[l(τ)∣∣μ∗τ]≤∑τ<N(minπ∈PEξ∗Θ[l(τ)⋅χCτμ∗π]+Eξ∗Θ[χEτμ∗]ϵ(Θ,N))Here, ϵ is the "regret bound" function which should vanish in the N→∞ limit.
Some remarks on the particulars of this definition:
This framework assumes all our hypotheses are disintegrable w.r.t. the factorization into Γ and 2Γ. It is an interesting question to understand whether we should or can relax this assumption.
For example, we can imagine ξ0 to be a Solomonoff-like prior along the following lines. Every hypothesis comprising ξ0 is defined by a Turing machine M with access to two oracles representing y,y′∈Γ and two tapes of random and "ambiguous" bits respectively. ξ0(y) is defined by running M with one oracle fielding queries about y (i.e. we given a program P we can request to know its counterpossible output Py) and the other oracle fielding queries about some y′ s.t. we want to decide whether y′∈α for α∼θ∈ξ0(y). M is only allowed to return NO if there was at least one query to which the two oracles gave different answers.
We use the "duration" interpretation for simplicity, but more generally τ can be some parameter controlling the computing resources available in the Training phase, and we can also allow the computing resources of the Controller to scale with τ.
The reason we restrict to rational numbers is because we need a notion of computing the distribution. It is in principle possible to generalize further to computable numbers. On the other hand, it might be more realistic to constrain even further to e.g. dyadic rationals (which can be implemented via fair coinflips). We stick to Q for simplicity.
We let the Learner interact with the Simulator for τ timesteps, producing some output g∈IτC, and then run the Controller with g as an input.
This is not technically a distance since it is possible to have dTV(π1,π2)=0 if π1≠π2 so long as π1 and π2 only disagree on histories that are inconsistent with these policies. Such π1 and π2 are morally equivalent.
We could also allow l to have a Γ argument, but then we would have to remove the Eξ∗Θ[χEτμ∗] factor from the learning condition, because the choice of policy would matter intrinsically even if the agent doesn't exist. Alternatively, we could modify the definition of Cτμ to avoid that. Or perhaps use some normalization factor more complicated than Eξ∗Θ[χEτμ∗].