phanerozoic commited on
Commit
dbb292c
·
1 Parent(s): c1f23de

Compute the restoration bound along the orbit from each row's margin and push direction, with its Table 7 column and whole-run figures

Browse files
paper/universal_construction_ternary.pdf CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:65149cc8b925e0925a8d0ffd77a3d607204e0f41545b6c4c1a926cc32310a581
3
- size 350216
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fd39d35508b4bb0fe06b400fdfea99d23c4d7a79b39a204fa9d35e3c238d4af
3
+ size 354694
paper/universal_construction_ternary.tex CHANGED
@@ -1539,60 +1539,107 @@ second order in the probability of a flip.
1539
 
1540
  \begin{proposition}[Restoration]\label{prop:restore}
1541
  Let the perturbations of $N_3$ be independent centred Gaussians of standard
1542
- deviation $s$ on every pre-activation, and put $p=Q(3/(2s))$ and
1543
- $\sigma=Q(1/(2s))$. Unroll $\Lev(\Nhost)$ over the steps, the rows of layer~$1$ of
1544
- each step reading the rows of layer~$L$ of the step before, and write $u\to v$
1545
- when row $v$ reads row $u$. For values $x$ on the rows of a layer, every copy of a
1546
- row $w$ carrying $x_w$, let $\pi(x)$ be the sum of $x_wx_{w'}$ over the unordered
1547
- pairs of distinct copies that some row of the next layer reads, together with
1548
- the pairs of copies of one row when the layer is the last. Let $a$ be the least
1549
- solution of $a_v=p+3\sigma\sum_{u\to v}a_u$; for a row $u$ let $V^u$ be the least
1550
- solution of $V^u_v=\sigma[u\to v]+3\sigma\sum_{w\to v}V^u_w$, let $G_u$ be the sum of
1551
- $\pi(V^u)$ over the layers after $u$, and let $X_u=G_u-3\sigma^2\sum_{u\to v}G_v$.
1552
- Then the probability that the state of $N_3$ read by majority differs from the
1553
- orbit at some step $t\le T$ is at most
1554
  \[
1555
- T\Bigl(\sum_{\ell}\pi(a)+3\sum_{u}a_u\min(1,X_u)\Bigr),
 
 
 
 
1556
  \]
1557
- the sums over the layers and the rows of one step.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1558
  \end{proposition}
1559
 
1560
  \begin{proof}
1561
- Call a copy wrong when its output differs from the replicated orbit. By
1562
- Proposition~\ref{prop:amplify}(ii) and~(iii), a copy that reads no wrong copy is
1563
- wrong only if its perturbation carries it across its distance
1564
- $3|z+\tfrac12|\ge\tfrac32$ from the comparator, and a copy that reads one wrong
1565
- copy only if its perturbation carries it across a distance of at least $\tfrac12$;
1566
- the first event has probability at most $p$, the second at most $\sigma$, and each
1567
- depends on the perturbation of that copy alone. Call two wrong copies that some
1568
- row reads, or two wrong copies of one row of the last layer, a \emph{collision};
1569
- the device reads and writes every register by majority, so the state read by
1570
- majority is wrong only after a collision. Before the first collision every row
1571
- reads at most one wrong copy, so a wrong copy either reads none, and its first
1572
- event occurred, or reads exactly one, its parent, and its second event occurred;
1573
- following parents gives a chain from a copy of the first kind. The two copies of
1574
- the first collision therefore end two chains that are disjoint or share an
1575
- initial segment up to a last common copy $z$, after which they continue as two
1576
- paths through distinct copies. Distinct copies have independent perturbations,
1577
- so such a configuration occurs with probability at most the product of $p$ for
1578
- the first copy of each chain and $\sigma$ for every other copy.
1579
-
1580
- The sum of these products over the chains ending at a copy of $v$ is $a_v$, and
1581
- over the paths from one copy of $u$ to a copy of $v$ it is $V^u_v$, every copy of a
1582
- row reading all three copies of its inputs. Pairs of disjoint chains whose ends
1583
- collide in one step therefore contribute at most $\sum_\ell\pi(a)$. For a
1584
- configuration parting at a copy $z$ of $u$, the chain to $z$ and the paths after
1585
- it involve disjoint copies, so its probability is at most $a_u$ times the
1586
- probability that two paths leaving $z$ through distinct copies reach a collision.
1587
- The pairs of paths from $z$ that reach a collision number $G_u$ in expectation,
1588
- and those that leave $z$ through the same copy of a consumer $v$ number
1589
- $\sigma^2G_v$ for each of its three copies, so the pairs that part at $z$ number at
1590
- most $X_u$ in expectation and occur with probability at most $\min(1,X_u)$.
1591
- Summing over the three copies of every row and over the $T$ steps at which the
1592
- first collision can occur gives the bound.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1593
  \end{proof}
1594
 
1595
- For the self-reproducing run, $T=1{,}664{,}939$, the bound of Proposition~\ref{prop:restore} is $3.80\times10^{-6}$ at $s=0.20$, where Theorem~\ref{thm:amplify}(ii) gives $1.34\times10^{-2}$, and $2.98\times10^{-3}$ at $s=0.22$, where that bound exceeds one; from $s=0.25$ on it exceeds one as well, and from $s=0.33$ its sums diverge (Table~\ref{tab:bound3}). Along the orbit, over $64$ noisy copies, the state read by majority failed at $4.04\times10^{-6}$ per step at $s=0.27$ and $2.13\times10^{-4}$ at $s=0.30$, below the bound by factors of $23$ and $53$, and $21$ and $12$ times less often than the replicated state left its orbit.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1596
 
1597
 
1598
  % =============================================================================
@@ -2420,10 +2467,9 @@ copies of $N_3$ were stepped together from the initial state of the
2420
  self-describing instance for up to $20{,}000$ steps, the state of each noisy copy
2421
  read by majority and compared with the exact state after every step, and each
2422
  noisy copy stopped at its first wrong majority-read state. The restoration bound
2423
- of Proposition~\ref{prop:restore} is computed with the worst margins, every row
2424
- at distance $\tfrac12$ from the comparator, so it holds along every orbit; along
2425
- this one most rows of the decoders sit at distance at least $\tfrac32$, which is
2426
- why it lies one to two orders of magnitude above the measured rate.
2427
 
2428
  \begin{table}[ht]
2429
  \centering\small
@@ -2431,18 +2477,18 @@ why it lies one to two orders of magnitude above the measured rate.
2431
  \toprule
2432
  $s$ & Failed & Exposure & Measured rate & Restoration bound & $rM\erfc(r/2\sqrt2s)$\\
2433
  \midrule
2434
- $0.10$ & --- & --- & --- & $2.13\times10^{-57}$ & $9.24\times10^{-46}$\\
2435
- $0.15$ & --- & --- & --- & $9.96\times10^{-24}$ & $1.92\times10^{-18}$\\
2436
- $0.20$ & --- & --- & --- & $2.28\times10^{-12}$ & $8.03\times10^{-9}$\\
2437
- $0.22$ & --- & --- & --- & $1.79\times10^{-9}$ & $1.16\times10^{-6}$\\
2438
- $0.25$ & --- & --- & --- & $2.10\times10^{-6}$ & $2.48\times10^{-4}$\\
2439
- $0.27$ & 5/64 & 1{,}237{,}505 & $4.04\times10^{-6}$ & $9.28\times10^{-5}$ & $3.48\times10^{-3}$\\
2440
- $0.30$ & 63/64 & 295{,}163 & $2.13\times10^{-4}$ & $1.14\times10^{-2}$ & $7.22\times10^{-2}$\\
2441
- $0.33$ & 64/64 & 17{,}472 & $3.66\times10^{-3}$ & diverges & $6.90\times10^{-1}$\\
2442
- $0.36$ & 64/64 & 2{,}188 & $2.93\times10^{-2}$ & diverges & $3.89$\\
2443
  \bottomrule
2444
  \end{tabular}
2445
- \caption{The per-step probability that the state of $N_3$ read by majority leaves the orbit under read noise of standard deviation $s$: $64$ noisy copies stepped beside an exact one from the initial state of the self-describing instance for up to $20{,}000$ steps, each stopped at its first wrong majority-read state, against the bound of Proposition~\ref{prop:restore} per step and the first-order bound of Theorem~\ref{thm:amplify}(ii). From $s=0.33$ the sums defining the restoration bound diverge.}
2446
  \label{tab:bound3}
2447
  \end{table}
2448
 
 
1539
 
1540
  \begin{proposition}[Restoration]\label{prop:restore}
1541
  Let the perturbations of $N_3$ be independent centred Gaussians of standard
1542
+ deviation $s$ on every pre-activation, and unroll $\Lev(\Nhost)$ along the orbit
1543
+ of $x_0$, the rows of layer~$1$ of each step reading the rows of layer~$L$ of the
1544
+ step before. For a row $v$ of a step let $z_v$ be its pre-activation and $y_v$
1545
+ its value on the orbit, $D_v=3|z_v+\tfrac12|$, $q_j(v)=Q\bigl((D_v-j)/s\bigr)$ for
1546
+ $j=0,1,2,3$ and $\Delta_v=q_1(v)-q_0(v)$, and let $T(v)$ be the set of rows $u$
1547
+ that $v$ reads with a weight $w$ satisfying $w(1-2y_u)(z_v+\tfrac12)<0$. Define,
1548
+ layer by layer,
 
 
 
 
 
1549
  \[
1550
+ \begin{gathered}
1551
+ P_v=3q_0(v)+3\Delta_vX_v,\qquad
1552
+ P^{(2)}_v=3q_0(v)^2+3\bigl(q_1(v)^2-q_0(v)^2\bigr)X_v,\\
1553
+ P^{(3)}_v=q_0(v)^3+\bigl(q_1(v)^3-q_0(v)^3\bigr)X_v,
1554
+ \end{gathered}
1555
  \]
1556
+ where $X_v=\sum_{u\in T(v)}P_u$, and for distinct rows $v_1,v_2$ of one layer
1557
+ \[
1558
+ K_{v_1v_2}=9\Delta_{v_1}\Delta_{v_2}\Bigl(\sum_{u\in T(v_1)\cap T(v_2)}P_u
1559
+ +\sum_{\substack{u_1\in T(v_1),\ u_2\in T(v_2)\\ u_1\neq u_2}}K_{u_1u_2}\Bigr),
1560
+ \]
1561
+ with $P$ and $K$ zero on the state of step~$0$ and on the device cells of every
1562
+ state, and $P^{(2)}$ and $P^{(3)}$ zero on every state. Let
1563
+ \begin{multline*}
1564
+ b(t)=\sum_{w}\Bigl(\min\bigl(1,3q_2(w)\bigr)\sum_{u\in T(w)}P^{(2)}_u
1565
+ +\min\bigl(1,3q_3(w)\bigr)\sum_{u\in T(w)}P^{(3)}_u\\
1566
+ +\sum_{\substack{u_1,u_2\in T(w)\\ u_1<u_2}}\bigl(P_{u_1}P_{u_2}+K_{u_1u_2}\bigr)\Bigr)
1567
+ +\sum_{v}P^{(2)}_v,
1568
+ \end{multline*}
1569
+ the first sum over the rows of the layers of step~$t$ and the last over the rows
1570
+ of its last layer. Then the probability that the state of $N_3$ read by majority
1571
+ differs from the orbit after one of the first $T$ steps is at most
1572
+ $\sum_{t<T}b(t)$.
1573
  \end{proposition}
1574
 
1575
  \begin{proof}
1576
+ Call a copy wrong when its output differs from the replicated orbit. Every copy
1577
+ of a row $v$ reads the same copies, and a wrong copy of an input $u$ moves the
1578
+ pre-activation of a copy of $v$ by $w(1-2y_u)=\pm1$, toward the comparator
1579
+ exactly when $u\in T(v)$. Let $S_v$ be the set of wrong copies of the rows of
1580
+ $T(v)$. By Proposition~\ref{prop:amplify}(ii) a copy of $v$ is wrong only if its
1581
+ perturbation, on the far side of the comparator, has magnitude at least
1582
+ $D_v-|S_v|$; given the perturbations of the earlier layers the three copies of
1583
+ $v$ therefore fail independently, each with probability at most $q_{|S_v|}(v)$.
1584
+ Call a layer a \emph{stop} when it holds a wrong copy of a row $v$ with
1585
+ $|S_v|\ge2$, or when it is the last layer of a step and one of its rows has two
1586
+ wrong copies. The state read by majority is wrong after a step only if the last
1587
+ layer of that step is a stop, and while no layer is a stop the device reads
1588
+ every cell correctly and writes every copy of it, so the probability to be
1589
+ bounded is at most the sum, over the layers of the first $T$ steps, of the
1590
+ probability that the first stop is that layer.
1591
+
1592
+ For a row $v$ let $W_v$ be the event that $v$ has a wrong copy and neither its
1593
+ layer nor an earlier one is a stop. On $W_v$, $|S_v|\le1$, and $|S_v|=1$ only on
1594
+ the union of the $W_u$ with $u\in T(v)$, so
1595
+ $\Pr(W_v)\le3q_0(v)+3\Delta_v\sum_{u\in T(v)}\Pr(W_u)$ and, by induction over the
1596
+ layers, $\Pr(W_v)\le P_v$; on the device cells of a state $W_v$ is empty, the
1597
+ device having written every copy. Two of three independent copies fail with
1598
+ probability at most $3q_j^2$ and all three with probability at most $q_j^3$, so
1599
+ the probability that no earlier layer is a stop, $|S_v|\le1$, and $v$ has two or
1600
+ three wrong copies is at most $P^{(2)}_v$ or $P^{(3)}_v$; for a row of a state it
1601
+ is zero as far as the layers after it are concerned, since two wrong copies of a
1602
+ state row make the last layer of the step before a stop. For distinct rows
1603
+ $v_1,v_2$ of one layer the copies of $v_1$ and of $v_2$ fail independently given
1604
+ the earlier layers, so
1605
+ \[
1606
+ \Pr(W_{v_1}\cap W_{v_2})\le9\,\mathbb E\Bigl[\bigl(q_0(v_1)+\Delta_{v_1}\mathbf 1_{|S_{v_1}|=1}\bigr)\bigl(q_0(v_2)+\Delta_{v_2}\mathbf 1_{|S_{v_2}|=1}\bigr)\Bigr],
1607
+ \]
1608
+ the expectation taken on the event that no earlier layer is a stop. Both
1609
+ indicators are $1$ only on the union of the $W_u$ with $u\in T(v_1)\cap T(v_2)$
1610
+ and of the $W_{u_1}\cap W_{u_2}$ with $u_1\in T(v_1)$, $u_2\in T(v_2)$,
1611
+ $u_1\neq u_2$; expanding the product and bounding the latter events by induction
1612
+ gives $\Pr(W_{v_1}\cap W_{v_2})\le P_{v_1}P_{v_2}+K_{v_1v_2}$, since
1613
+ $\sum_{u_1\neq u_2}P_{u_1}P_{u_2}\le X_{v_1}X_{v_2}$.
1614
+
1615
+ If the first stop holds a wrong copy of a row $w$ with $|S_w|\ge2$, then either
1616
+ $S_w$ consists of two or of three copies of one row $u\in T(w)$, events of
1617
+ probability at most $P^{(2)}_u$ and $P^{(3)}_u$ after which a copy of $w$ fails
1618
+ with probability at most $\min(1,3q_2(w))$ or $\min(1,3q_3(w))$, or two distinct
1619
+ rows $u_1,u_2\in T(w)$ have wrong copies, with probability at most
1620
+ $P_{u_1}P_{u_2}+K_{u_1u_2}$. Otherwise the first stop is the last layer of a step
1621
+ and one of its rows $v$ has two wrong copies with $|S_v|\le1$, with probability
1622
+ at most $P^{(2)}_v$. Summing over the rows of the layers of the first $T$ steps
1623
+ gives $\sum_{t<T}b(t)$.
1624
  \end{proof}
1625
 
1626
+ The sums are taken along the exact orbit, from the pre-activation of every row at
1627
+ every step. $K$ is held sparse: entries below $10^{-20}\cdot3Q(3/(2s))$, sources
1628
+ $u$ with $P_u$ below that level, and pairs reached through a row with
1629
+ $\Delta_v<10^{-14}$ are carried by rank-one majorants, which pass through the
1630
+ recursion exactly and contribute less than $10^{-12}$ of $b(t)$. Every quantity
1631
+ of the recursion bounds a probability, so it may be restarted at any step from
1632
+ $P=1$ and $K=0$ on the state; restarted twenty steps before its first counted
1633
+ step, a chunk reproduces the uninterrupted recursion to within $10^{-14}$, and
1634
+ the sums over the self-reproducing run are computed in $36$ chunks in parallel.
1635
+ Along that run, $T=1{,}664{,}939$, $\sum_{t<T}b(t)$ is $6.13\times10^{-7}$ at
1636
+ $s=0.20$, where Theorem~\ref{thm:amplify}(ii) gives $1.34\times10^{-2}$,
1637
+ $3.11\times10^{-4}$ at $s=0.22$ and $0.271$ at $s=0.25$, where that bound exceeds
1638
+ one, and it exceeds one from $s=0.27$. Along the first $20{,}000$ steps of the
1639
+ self-describing instance, weighted by the steps each of the $64$ noisy copies
1640
+ ran, $b(t)$ lies $1.06$ to $1.47$ times above the measured failure rates
1641
+ (Table~\ref{tab:bound3}), which are $21$ and $12$ times below the rates at which
1642
+ the replicated state left its orbit at $s=0.27$ and $0.30$.
1643
 
1644
 
1645
  % =============================================================================
 
2467
  self-describing instance for up to $20{,}000$ steps, the state of each noisy copy
2468
  read by majority and compared with the exact state after every step, and each
2469
  noisy copy stopped at its first wrong majority-read state. The restoration bound
2470
+ of Proposition~\ref{prop:restore} is computed along the same orbit; at $s=0.27$
2471
+ the probability it gives that a copy fails within the $20{,}000$ steps is $0.091$,
2472
+ against $5$ of the $64$ copies.
 
2473
 
2474
  \begin{table}[ht]
2475
  \centering\small
 
2477
  \toprule
2478
  $s$ & Failed & Exposure & Measured rate & Restoration bound & $rM\erfc(r/2\sqrt2s)$\\
2479
  \midrule
2480
+ $0.10$ & --- & --- & --- & $8.62\times10^{-59}$ & $9.24\times10^{-46}$\\
2481
+ $0.15$ & --- & --- & --- & $4.02\times10^{-25}$ & $1.92\times10^{-18}$\\
2482
+ $0.20$ & --- & --- & --- & $3.59\times10^{-13}$ & $8.03\times10^{-9}$\\
2483
+ $0.22$ & --- & --- & --- & $1.82\times10^{-10}$ & $1.16\times10^{-6}$\\
2484
+ $0.25$ & --- & --- & --- & $1.58\times10^{-7}$ & $2.48\times10^{-4}$\\
2485
+ $0.27$ & 5/64 & 1{,}237{,}505 & $4.04\times10^{-6}$ & $4.57\times10^{-6}$ & $3.48\times10^{-3}$\\
2486
+ $0.30$ & 63/64 & 295{,}163 & $2.13\times10^{-4}$ & $2.26\times10^{-4}$ & $7.22\times10^{-2}$\\
2487
+ $0.33$ & 64/64 & 17{,}472 & $3.66\times10^{-3}$ & $4.34\times10^{-3}$ & $6.90\times10^{-1}$\\
2488
+ $0.36$ & 64/64 & 2{,}188 & $2.93\times10^{-2}$ & $4.30\times10^{-2}$ & $3.89$\\
2489
  \bottomrule
2490
  \end{tabular}
2491
+ \caption{The per-step probability that the state of $N_3$ read by majority leaves the orbit under read noise of standard deviation $s$: $64$ noisy copies stepped beside an exact one from the initial state of the self-describing instance for up to $20{,}000$ steps, each stopped at its first wrong majority-read state, against the bound $b(t)$ of Proposition~\ref{prop:restore} along the same orbit, weighted by the steps each copy ran where copies ran and averaged over the $20{,}000$ steps elsewhere, and the first-order bound of Theorem~\ref{thm:amplify}(ii).}
2492
  \label{tab:bound3}
2493
  \end{table}
2494