![]()
Dominos in motion
(Wikipedia)
Preamble
- looper : Causality Resource
- Looper Nuggets 1 (LN1) : Definition of wDAGs with no simultaneity rule.
![]()
Dominos in motion
(Wikipedia)
Preamble
Preamble
![]() |
| Figure: Evolution of Ising-Conway Game (arXiv:2310.01458) |
Ising-Lenz model is probably one of the landmark models in physics, remarkably provides beyond its idealised case of magnetic domains, now impacts even quantum computational research. However, computing entropy of Ising-Lenz models are still quite difficult. On the other hand, Conway introduce a game with simple rules generating complexity in various orders, via simple dynamical rules. By analogy to these two modelling approach, we recently introduce game like physical system of spins or lattice sides on a finite space with constraints. This gives a physically plausible dynamics but simpler dynamical evolution to generate the trajectories. Because vanilla Ising-Models requires more complicated Monte Carlo techniques. Here is the configuration and dynamics of Ising-Conway games,
Defining ensemble Entropy on ICG
Now we are in position to define the entropy for ICGs, which easy to grasp conceptually and computationally. $C(i, t) \in \{1,0\}$ defines the states of the game. We build an ensemble at a given time $t$ by defining a region enclosed by 1s. Then dimensionality of the ensemble $ k(t) = argmax[\mathbb{I}(C(i))] - argmin [\mathbb{I}(C(i)) ]$. Here, $\mathbb{I}$ returns index of $1$s on the lattice. This ensemble closely track maximum entropy of the system at a given time.
Conclusions
A new game-like system that helps us to understand entropy increase that has a plausible physical characteristics that one can easily simulate.
Further reading
Preamble
![]() |
| Fractal Tree (Wikipedia) |
Understanding weighted Directed Acyclic Graphs (wDAGs) as causal data structure
We first define what is a directions and weights. Providing a notational definition via tuples of objects.
Definition (wDAG): A weighted Directed Acyclic Graph (wDAG) $\mathscr{G_{c}}$ is defined as set of ordered triplets of weights and connected random variables, such that, $k$th triplet $(w_{k}, x_{i}, x_{j})$ where by $w_{k} \in \mathbb{R}$ is the weight, an effect size, between two variates that $x_{i}$ effects $x_{j}$. There are constraints :
(i) No cyclic effects can be defined, necessarily $x_{i}$ can not be equal to $ x_{j}$.
(ii) If there is a definition, $(w_{k}, x_{i}, x_{j})$ the reverse can't be defined, i.e., so that $(w_{k}, x_{j}, x_{i})$ does not exist.
(iii) No two causal effects sizes can't be exactly equal, $w_{k}$ can not be equal to $w_{l}$, from the same causal variable, meaning no simultaneous events caused by the same random variable. This prevents ambiguity of ordering and random tie-breaks are unnatural.
This definition is practical and do not introduce any graph theory jargon. We left the sizes of indices as an exercise.
Inducing Causal Order via wDAGs
By the very definition of wDAGs, the power of this definition is one can construct causal ordering.
Definition (Causal Ordering from wDAG): Given $\mathscr{G_{c}}$, we can construct causal ordering among random variates $O(i)$ for $x_{i}$ using directionality and weights from $\mathscr{G_{c}}$:
(i) if there exist a triplet $(w_{k}, x_{i}, x_{j})$, then ordering $x_{j} \succ x_{i}$, implies $x_{j}$ occurred before $x_{j}$, or cause of $x_{i}$ was $x_{j}$
(ii) if there are two or more triplets having the same first variates, ordering is induces by the effect size $w_{k}$ among them.
To provide a simple example, let's say we formed a wDAG, $\mathscr{G_{c}} = \{ (0.1, x_{1}, x_{2}),(0.2, x_{1}, x_{3}), (1.1, x_{2}, x_{4}) \}$ then the following causal ordering is established $x_{1} \succ x_{3} \succ x_{2} \succ x_{4}$, note the ordering of $x_{3}$ that took precedence on $x_{2}$ due to its weight.
Why LLMs with causal ordering are so successful?
Probably not very well spelled property of LLMs are having causal layers with deep learning elevating their ability to capture causal ordering in natural language so well, not only sequence. This is still in infancy from research perspective as LLMs are biologically not plausible engineered software systems act as lossy knowledge compressors, lossy part usually identified as hallucination.
Conclusion
We introduce basic definition of wDAGs without heavy graph theory jargon and provide hints on why causal ordering with wDAGs has an immense contribution in constructing useful LLMs.
Further reading
Self-attention for LLMs acts as casual discovery machines over human experience
The success of transformers deep learning architecture can also be attributed to causal modelling. But how? Probably the most prominent application of transformers in machine translation. As translation models trained on human translated data
Causality is inbuilt in these datasets and transformers behave as causal discovery layers. We could imagine weights on the translation matrix and other query matrices as DAGs, as connection between connectivity matrices and graphs are well known. Directionality is dictated by asymmetric weights. This manifest as causal analysis preserving ordering of most meaningful words embeddings empirically i.e., heuristic causality. This can be demonstrated by triplets without graph theoretic notation, that would induce as causal ordering discovery.
Causal set theory is also quite striking in quantum gravity. DAGs appear as Partially-ordered sets of events in Planck-scale relativistic events within the discrete space-time. Monograph by Benjamin Dribus, Discrete Causal Theory, Springer (2017)
Time-series analysis is needed almost in any quantitative field and real-life systems that collects data over time, i.e., temporal datasets. Building predictive models on temporal datasets for future evolution of systems in consideration are usually called forecasting. The validation of such models deviates from the standard holdout method of having random disjoint splits of train, test and validation sets used in supervised learning. This stems from the fact that time-series are ordered and order induces all sorts of statistical properties that should be retained. For this reason, applying direct cross-validation to time-series model building is not possible and only restricted to out-of-sample (OOS) validation, using the end-tail of a temporal set as a single test set. A recent work proposed an approach that overcomes the known limitation achieving full cross-validation for time-series. The approach opens up for a possibility to produce learning curves for the time-series models as well, which is usually also not possible due to similar reasons.
rCV is proposed recently in the paper titled Generalised learning of time-series: Ornstein-Uhlenbeck processes. The design principles of rCV for time-series aims at the following principles:
![]() |
| Figure 1 : rCV meta-algorithm for time-series cross-validation and learning curves. |
Idea of introducing missing-data : Temporal cross-validation and learning curves
The key idea of rCV is to create cross-validation sets via creating missing-data sets K-times, as in K-fold, with a given degree of missing ratio, i.e., random data point removal. Each fold will have disjoint set of missing data points. By an imputation method, we would fill out the K-disjoint missing data sets and generate K-different training datasets. This would allow us to have K-different models and we could measure the generalised performance of the modelling approach by testing the primary models prediction on the Out-of-sample (OOS) test set. To avoid confusion about what is a model?, what we are trying to achieve is to find out hypothesis, i.e., the modelling approach. By changing the ratio of missing data and repeating the cross-validation exercise will yield to set of ratio of missing-missing data introduced and their corresponding rCV errors, the plot is nothing but a learning-curve from supervised learning perspective. Note that the imputation and prediction models are different models. The primary model we are trying to build is the prediction model we used for producing OOS predictions. The procedure is summarised in Figure 1.
![]() |
| Figure 2 : Synthetic data and reconstructions. |
To demonstrate the utility of rCV, the mentioned paper uses a synthetic data generated by Ornstein-Uhlenbeck process, i.e., Gaussian process with certain parameter setting. Figure 2, shows the synthetic data and example locations of generated missing-data sets's reconstruction errors. Figure 3 shows learning curves depending on the different ratios of missing data setting.
![]() |
| Figure 3: Learning curves for the Gaussian Process model generated by rCV. |
Conclusion
rCV provides logically consistent way of practicing cross-validation in time-series. It is usually not possible to produce learning-curves on the same time-window for time-series model: by using rCV with different ratio missing data achieves this as well. rCV paves way to do generalised learning for time-series.
Further Reading
Apart from the paper Generalised learning of time-series: Ornstein-Uhlenbeck processes. the results can be reproduced with the Python prototype implementation, here.

This work is licensed under a Creative Commons Attribution 4.0 International License