Bidirectional Inference Counts on Forests and Cycles
Manuscript 29 September 2026 · Online 29 September 2026
Abstract
For a binary restricted Boltzmann machine on a fixed labeled bipartite graph, consider the pair of conditional maximum-a-posteriori maps in both directions, with the same weights used in the two maps and no ties. We count such pairs exactly on forests and on even cycles. On a forest, local threshold functions can share symmetric weights if and only if their monotonicity directions agree on every input edge essential at both endpoints. Positive rescaling gives a constructive proof and an incidence partition function evaluable by a tree recurrence. For paths, the counts satisfy p_1=2, p_2=14, and p_n=10p_(n-1)+6p_(n-2). For even cycles of length n>=4, the count is (5+sqrt(31))^n+(5-sqrt(31))^n-2^(n+1); the subtraction removes exactly two cyclic families of impossible magnitude comparisons. Two trees with identical degree lists in each bipartition class have different bidirectional counts. This invariant is distinct from the classical one-way inference count, which factors over output degrees.
Record
- Affiliation
- Mercury Software GmbH
- Contact
- [email protected] · GitHub
- Result
- Exact forest and cycle inference counts
- Categories
- math.CO · cs.LG
- Manuscript
- 29 September 2026
- Online release
- 29 September 2026
- Version
- 1.0
- License
- Creative Commons Attribution 4.0 International
Files and verification
The PDF is the canonical reading copy. The source archive contains the LaTeX manuscript, bibliography, reproducibility material, and audit documents without build artefacts.
Citation
Alper Ferudun, “Bidirectional Inference Counts on Forests and Cycles,” EulerSolve Research Papers, AIM-PROBABILITY-0009, 2026. https://doi.org/10.5281/zenodo.23045888.
BibTeX
@misc{Ferudun2026AIMPROBABILITY0009,
author = {Ferudun, Alper},
title = {Bidirectional Inference Counts on Forests and Cycles},
year = {2026},
howpublished = {EulerSolve Research Papers},
url = {https://eulersolve.org/papers/aim-probability-0009/},
doi = {10.5281/zenodo.23045888},
note = {AIM-PROBABILITY-0009; unrefereed preprint}
}