Manuscript Offprint
arXiv:2611.04056Structured Priors: Towards an algebra of component priors for prior-data fitted networks
ABSTRACT
Prior-data fitted networks are typically trained using synthetic data generated by a single, manually constructed generator. In cases where such a generator combines multiple components, e.g., in TabPFN, Mitra, or TabICLv2, this is achieved through a mixture using manually specified weights, the impact of which on the network only becomes apparent after pre-training. Instead of such a hand-built generator, this work proposes a structured prior: a small set of named component priors, linked by operators whose algebraic properties are formally proven and whose influence on the trained network has been validated. Within a measure-theoretic framework, the operators of mixture, convolution, amplitude scaling, local transform, and projection are defined. Their governing laws are proven. These operators are implemented in the mac121 software package. Experiments demonstrate that the implemented generators reproduce the identities within the resolution of a permutation test. Furthermore, it is shown that trained networks obey the distributive law; that a mixed prior composed of small components performs as well as or better than any individual component in seven out of eight open regression benchmarks; and that on two of these tables a structured prior reaches, with a ninth of the data budget, an error that a generic random-function prior does not reach even with the full budget. A theorem on model averaging demonstrates that networks trained on individual components—when averaged according to their prequential likelihoods—constitute the Bayes predictor for the mixture, provided that the component networks are themselves the Bayes predictors for their respective priors. However, the pre-registered test of this averaged predictor with trained component networks failed, because the networks identify the generating component too rarely. The paper proposes a research program focused on the algebra of structured priors for prior-data fitted networks.
Keywords prior-data fitted networks • TabPFN • in-context learning • mixture priors • convolution of priors • kernel mean embedding • Bayesian model averaging • mac121
1 Introduction
Prior-data fitted networks (PFNs) are transformers trained on synthetic datasets sampled from a prior over data-generating processes (Müller et al., 2022). This approach was made practical for tabular data through TabPFN (Hollmann et al., 2023; Hollmann et al., 2025). Models such as TabICL, TabForestPFN, Mitra, and TabICLv2 incorporate tree-based and other components into the generator (Breejen et al., 2024; Qu et al., 2025, 2026; Zhang et al., 2025). In each case, however, these components are combined via a categorical mixture or an ad hoc composition using manually specified weights. Furthermore, the outcome of any modification only becomes apparent after a pre-training run.
The structured prior proposed in this paper (Figure 1) instead combines named component priors using operators (see Section 3) whose laws are proved before any network is trained. In simple terms, a prior can be thought of as a recipe for generating synthetic tables. This work treats such recipes like numbers—they can be added, scaled, composed, and compared. Three of its experiments were pre-registered: N1 tests whether the implemented generators reproduce the laws of the algebra, N2 tests the construction of one network per component, and N4 tests whether the pruning by projection depends on the dataset kernel.

one object, edited as code
named parts, combined by operators with laws
Figure 1: One hand-built generator (left) against a structured prior (right). On the left the components are glued inside one program by a categorical mixture with weights fixed by hand. The effect of a change is known only after a pretraining run. On the right named component priors are combined by operators whose laws are proved before any network is trained, so a structured prior is a term in an algebra and a change of the prior is a change of a term.
2.1 RQ1: What constitutes a prior from which a program can draw, and which types of priors can be constructed in this manner?
The paper defines a prior as the distribution of the function that a generator produces and shows that these realisable priors form a cone and that the pretraining objective of a PFN is minimised by the posterior predictive distribution of its prior. Every object of the theory can therefore be sampled, and the target of training is known.
2.2 RQ2: Which operations combine priors such that the result is again a prior—from which a program can sample—and what rules do these operations follow?
It is shown that mixture and convolution turn the cone into a commutative semiring. Amplitude scaling acts via endomorphisms of the semiring, while local transforms form a monoid of additive maps that distribute over mixtures. Projection onto a basis corresponds to the metric projection onto the convex hull of the embedded basis with respect to the Maximum Mean Discrepancy. A structured prior is thus a term within an algebra, and modifying the prior corresponds to changing a term.
2.3 RQ3: Can multiple small networks—one for each component—replace a single network trained on the mixture?
The question has a positive theoretical answer and a negative empirical one. A model-averaging theorem shows that component networks, averaged by their prequential likelihoods, are exactly the Bayes predictor of the mixture when they are the Bayes predictors of their priors, and bounds the cumulative excess risk of the averaged predictor otherwise by the weighted average of the component risks. A corollary extends this construction to include convolution, scaling, and transform applied to the components, as well as the projection used to derive the weights. In experiment N2, however, the trained component networks identify the generating component too infrequently for this construction to be practical.
2.4 RQ4: Do the laws hold for the operators as implemented, and do they remain valid after training?
A positive answer can be given here. Each operator is implemented as a class or function within the Python software package mac121 (Bartz-Beielstein, 2026). The identities hold for the implemented generators, within the resolution of a permutation test. The distributive law survives training.
2.5 RQ5: Does a structured prior pay off compared to a hand-constructed one?
For open regression tables, the answer is yes. A combination of real windows and small “teacher” priors performs as well as or better than any of its individual components on 7 out of 8 tables. On two of these tables, a structured prior achieves a level of error using only one-ninth of the data budget—a result that a generic random-function prior fails to reach even with the full budget. The projection prunes a basis of teachers at no measurable cost on the same two tables, but it does not predict what adding a component gains, and the teachers it admits depend on the dataset kernel.
3 Operators and their laws
A prior designer who builds a prior from named parts wants to know, before any network is trained, what the combination is, which laws it obeys, and what it costs. The paper proves this for four operators. The mixture picks one component at random and hedges between alternatives. The convolution with amplitude scaling adds independent draws from several priors and sets the size of each source of structure. A local transform fits a data-driven teacher to the draws of a prior. Transforms compose, so a teacher can be fitted to the output of another teacher. The projection onto a basis explains a target prior by the closest mixture of named priors. Two payoffs hold for all four. Every output is again a realisable prior, so the operators nest and a structured prior is a term of an algebra, which the main theorem of the paper collects. Every operator comes with an exact law for the dataset law and the predictive of its result, and the averaging theorem turns the law of the mixture into a construction at inference time, which a corollary carries through the other operators. Figure 2 shows the four operators with their inputs, outputs, laws, and purpose, and Table 1 lists the laws.

Figure 2: The four operators of the paper, one column each. Blue boxes are the inputs, the orange box is the operator, and the dark box is its output together with the laws proved for it; the grey line names the purpose. The mixture weights its components. The convolution and the amplitude scaling add independent draws and form, with the mixture, a commutative semiring. The local transform fits a teacher to the draws of a prior, and transforms compose. The projection returns the mixture of a basis that is closest to a target in the maximum mean discrepancy. The strip at the bottom holds the two payoffs shared by all operators: closure, collected in the main theorem, and the averaging construction, which trains networks on the parts rather than on the term and passes through the other operators.
In Table 1, denotes a prior, the law of the function that a generator produces, the set of realisable priors, the cone of realisable measures, a weight vector in the simplex over components, the scaling by , a local transform, the projection onto a basis , and the dataset density of ; Table 2 lists every symbol with its type.
Table 1: The four operators of the paper with their maps, closure results, laws, and purpose
| Operator | Map | Result | Law proved | Purpose |
|---|---|---|---|---|
| mixture | dataset density ; predictive the Bayesian model average; cost at most per component; addition of the semiring commutative semiring with the as endomorphisms; labels on shared rows; kernels add for Gaussian processes | hedge between alternatives; component inference made explicit add independent sources of structure; set the size of each | ||
| convolution and amplitude scaling | ; | in | monoid under composition; additive and positively homogeneous, so it distributes over mixtures; | fit a data-driven teacher to the draws of a prior; reaches priors outside the semiring |
| local transform and composition | explain a target by named parts; weights found by computation | |||
| projection onto a basis | unique minimiser of the maximum mean discrepancy over ; fixes every mixture of the basis; non-expansive |
4 Contributions
This work lays the foundation for a broader research program concerning the algebra of component priors for PFNs. It contributes to the theory by defining a prior as the distribution of the function generated by a generator. Furthermore, it proves the laws of mixture, convolution, amplitude scaling, local transform, and projection. These are collectively termed the algebra of structured priors. An averaging theorem for networks trained on component priors is introduced, along with its extension to the other aforementioned operators. Each law is stated alongside its required assumptions. Every operator is implemented as a class or function of the Python package mac121. Pre-registered experiments and training studies test the laws on the implemented generators and after training, and measure what the mixture, the data budget, and the projection gain. The failed test of the averaged predictor is reported.
5 Practical consequences
A practitioner who pretrains a network for a family of related tables with mac121 first designs named components: real windows, which are blocks of rows cut from the table at hand, and teacher recipes, which fit a standard model to reference rows. The prior is then written as a term that combines these components by the operators. A prior built this way can be read, because it is a term over named parts, and the effect of changing a part is known from the laws before any retraining. The projection finds the weights of a basis of teachers and drops every teacher with weight zero. On 8 of 8 comparisons, the arm trained with the two admitted teachers was at most one seed spread above the arm with all five; the seed spread is the spread between runs with different random seeds.
The costs are as follows: every family of tables needs training from scratch, whereas a pretrained model needs at most one fine-tuning run per family. The studies ran one regression recipe on public tables, so classification and other recipes are untested. One network per component, averaged at use, is not yet practical, and the first remedy to try is a density head, an output that gives a distribution over the label.
The complete proofs, the full experimental protocol, and the list of excluded candidates will be provided in a later version of this working paper.
Notation
Table 2: Symbols of the extended abstract, ordered Latin lower case, Latin upper case, calligraphic and sans serif, Greek, operators
| Symbol | Meaning | Type |
|---|---|---|
| amplitude scales | scalar | |
| vector of amplitude scales of a weighted convolution | vector | |
| dataset density of | density | |
| vectors of clean labels on a row block | vector | |
| mixture weights, weight vector in , projection weights | scalar, vector | |
| number of component priors | integer | |
| amplitude scaling of a measure by | operator |
| Symbol | Meaning | Type |
|---|---|---|
| cone of realisable measures | set | |
| realisable priors | set | |
| B | basis of priors () | tuple |
| projection onto the basis B | operator | |
| simplex of weight vectors | set | |
| priors, in the algebra realisable priors | measure | |
| mixture of with weights w | measure | |
| prior transformed by | measure | |
| local transform, amplitude transform | transform | |
| + | addition of measures, the addition of the semiring | operation |
| convolution, weighted convolution | operation |
Use of AI tools
Transparency notice: parts of this paper were researched, drafted, and checked with the support of artificial intelligence. This information is provided voluntarily for complete transparency, as no legal requirement mandates its disclosure.
References
Bartz-Beielstein, T. (2026). macl2l: A framework for efficient and flexible in-context learning on Apple silicon [Unpublished manuscript].
Breejen, F. den, Bae, S., Cha, S., & Yun, S.-Y. (2024). Fine-tuned in-context learning transformers are excellent tabular data classifiers. https://arxiv.org/abs/2405.13396
Hollmann, N., Müller, S., Eggensperger, K., & Hutter, F. (2023). TabPFN: A transformer that solves small tabular classification problems in a second. The Eleventh International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=cp5Pvcl6w8_
Hollmann, N., Müller, S., Purucker, L., Krishnakumar, A., Körfer, M., Hoo, S. B., Schirrmeister, R. T., & Hutter, F. (2025). Accurate predictions on small data with a tabular foundation model. Nature, 637, 319–326. https://doi.org/10.1038/s41586-024-08328-6
Müller, S., Hollmann, N., Pineda Arango, S., Grabocka, J., & Hutter, F. (2022). Transformers can do Bayesian inference. International Conference on Learning Representations (ICLR). https://openreview.net/forum?id=KSugKcbNf9
Qu, J., Holzmüller, D., Varoquaux, G., & Le Morvan, M. (2025). TabICL: A tabular foundation model for in-context learning on large data. Proceedings of the 42nd International Conference on Machine Learning (ICML). https://arxiv.org/abs/2502.05564
Qu, J., Holzmüller, D., Varoquaux, G., & Le Morvan, M. (2026). TabICLv2: A better, faster, scalable, and open tabular foundation model. https://arxiv.org/abs/2602.11139
Zhang, X., Maddix, D. C., Yin, J., Erickson, N., Ansari, A. F., Han, B., Zhang, S., Akoglu, L., Faloutsos, C., Mahoney, M. W., Hu, C., Rangwala, H., Karypis, G., & Wang, B. (2025). Mitra: Mixed synthetic priors for enhancing tabular foundation models. Advances in Neural Information Processing Systems 38 (NeurIPS). https://arxiv.org/abs/2510.21204