Skip to content
AI.info

Research

Generalizing Analogical Inference from Boolean to Continuous Domains

Overview Research area: Theoretical foundations of analogical reasoning in artificial intelligence, spanning machine learning theory, Boolean function theory, and functional analysis. Technical level:

Generalizing Analogical Inference from Boolean to Continuous Domains
arXiv
2511.10416
Published
2025-11-13
Authors
Francisco Cunha, Yves Lepage, Miguel Couceiro, Zied Bouraoui

AI summary

Overview

Research area: Theoretical foundations of analogical reasoning in artificial intelligence, spanning machine learning theory, Boolean function theory, and functional analysis.

Technical level: Advanced. The paper relies on measure theory, Borel σ-algebras, semimetrics, Cauchy's Functional Equation, and generalized (Hölder) means.

Scope: The paper refutes a widely cited generalization bound for Boolean analogical inference, then builds a unified theory of analogical inference over nonnegative real-valued domains that covers both classification and regression.

What This Paper Is About

Analogical inference predicts a label or value for a new item by assuming that if four items stand in analogical proportion on their attributes, they also stand in analogical proportion on their outputs. Prior theory guaranteed that this inference is error-free for affine Boolean functions and approximately correct for functions close to affine — but only for Boolean classification, not regression or continuous data. This paper shows that even the Boolean guarantee is wrong via an explicit counterexample, and then replaces it with a general framework based on parameterized analogies over the nonnegative reals.

Key Contributions

  1. A counterexample falsifying the prior generalization bound. The authors construct a Boolean function on $\mathbb{B}^4$ that is $\frac{1}{16}$-close to the affine class yet produces an analogical error probability of at least 0.42, contradicting the previously claimed bound of 0.25.

  2. A unified, parameterized model of analogical proportions. Analogies are defined via generalized means $m_p$ with a parameter $p$, and $a:b::^p c:d$ holds when $m_p(a,d) = m_p(b,c)$. This subsumes the arithmetic ($p=1$), geometric ($p=0$), and harmonic ($p=-1$) cases, and covers both Boolean classification and continuous regression.

  3. A full characterization of analogy-preserving functions. Theorem 12 shows that a continuous $f: \mathbb{R}+^n \to \mathbb{R}+$ preserves analogies in powers $\mathbf{p}$ and maps them to analogies in power $q$ if and only if $f(x_1,\dots,x_n) = \left(\sum_{j=1}^{n} a_j x_j^{p_j} + b\right)^{1/q}$ for coefficients $a_j \in \mathbb{R}+$ and scalar $b \in \mathbb{R}+$.

  4. New worst-case and average-case error guarantees. Using a $q$-semidistance and both uniform ($d_{q,\infty}$) and probabilistic ($dist_q$) functional distances, the paper derives bounds on analogical regression error under smoothness and regularity assumptions.

Main Findings

  • The prior bound fails. Theorem 3 of (Couceiro et al. 2018) states $P(\text{err}{S,f} > \delta) \leq 4\varepsilon(1-\delta)$ when $d(f,\mathcal{L}) < \varepsilon$. The counterexample uses the function $f(\mathbf{x}) = 1$ only at $\mathbf{1}=(1,1,1,1)$ and $0$ otherwise, which has $d(f,\mathcal{L}) = \frac{1}{16}$. For $\delta=0$ the theorem predicts $P(\text{err}{S,f}>0) \leq 0.25$, but a brute-force enumeration (Algorithm 1, running in about 30 seconds for $n=4$) yields $P(\text{err}_{S,f}>0) \geq 0.42$.

  • Why the counterexample works: the constant-0 function is affine, so $f$ is close to affine, yet on any sample $S \subseteq \mathbb{B}^4 \setminus {\mathbf{1}}$ on which $f$ is identically 0, the analogical prediction for $\mathbf{1}$ is 0 — the wrong label.

  • Analogical power is a genuine parameter. For any four increasing positive reals $a, b, c, d$ there exists a unique analogical power $p$ such that $a:b::^p c:d$ holds, and the relation $::^p$ is transitive and an equivalence relation for $p \in \mathbb{R}$. Any analogical equation has a solution for increasing numbers.

  • Analogy-preserving functions have a precise closed form. The class $AP_{(\mathbf{p};q)}$ consists exactly of continuous generalized-power functions of the form above, proved by reducing to the arithmetic case ($\mathbf{p}=(1,\dots,1)$, $q=1$) and invoking Cauchy's Functional Equation (continuous additive functions are linear).

  • Worst-case error bound. Proposition 16: if $d_{q,\infty}(f, AP_{(\mathbf{p};q)}) \leq \delta$ and $\mathbf{a}:\mathbf{b}::^{\mathbf{p}} \mathbf{c}:\mathbf{d}$, then $d_q(f(\mathbf{x}), \text{sol}_{\mathbf{p}}(f(\mathbf{a}), f(\mathbf{b}), f(\mathbf{c}))) \leq \sqrt[q]{4},\delta$.

  • Corollary 17. The same bound $\sqrt[q]{4},\delta$ applies to the analogical value $\overline{\mathbf{x}}_{S,f}$, by monotonicity of the $q$-generalized mean.

  • Probabilistic guarantee requires regularity. A sample set $S$ is defined as regular with respect to $f$ if $E_S(f) = D$ and $|R_S(f,\mathbf{x})| = m$ for a fixed $m \in \mathbb{N}$ and every $\mathbf{x} \in D$. This plays a role analogous to smoothness and density hypotheses in non-parametric regression.

  • Two semimetrics. The $q$-distance $d_q(x,y) = (|x^q - y^q|)^{1/q}$ is not a true distance for $q<1$ (it violates the triangle inequality) but is the natural notion for analogies in power $q$. It extends to the uniform $d_{q,\infty}$ and the probabilistic $dist_q$, with $dist_q$ simplifying to $\left(\mathbb{E}(|f^q - g^q|)\right)^{1/q}$ and, for a finite domain with normalized counting measure, to $\left(\sum_{i=1}^{N}|f(\mathbf{d}_i)^q - g(\mathbf{d}_i)^q|\right)^{1/q}$.

  • Domain restricted to nonnegative reals. The framework operates on $\mathbb{R}_+^n$; the authors argue this is not overly restrictive, citing gray-channel and RGB image values (e.g., MNIST, LeCun et al. 1989) and word embeddings, which can be rotated into a single orthant (Mimno and Thompson 2017).

  • Boolean case recovered. Section 6 recovers the Boolean setting as a special case of the general framework (details truncated in the provided content).

Methodology in Plain English

The authors first test the existing theory by constructing a small, adversarial Boolean function and exhaustively checking, over every subset of the Boolean cube minus one point, whether an analogical inference goes wrong. Because the dimension is only 4, exhaustive enumeration is feasible. This turns a claimed upper bound on error probability into a directly computable lower bound, exposing the contradiction.

For the generalization, they replace the fixed Boolean notion of analogy with a parameterized one built on generalized means: instead of requiring a fixed arithmetic relationship between the four items in an analogy, they allow a tunable power $p$ that determines which mean the relationship holds under. They then ask, mathematically, which continuous functions map analogies in one set of powers to analogies in another power — and prove that only generalized-power functions do, by transforming the problem back to the simpler arithmetic case and using a classical functional equation result. Finally, they define distances adapted to this power structure and prove that a function close to an analogy-preserving function cannot commit large analogical inference errors — first in a worst-case (uniform) sense, then in an average-case (probabilistic) sense under a regularity condition on the sample set.

Why This Matters

Impact on research. A foundational bound used to justify analogy-based classifiers does not hold, which forces a re-examination of theoretical claims built on it (including the Galois theory of analogical classifiers in Couceiro and Lehtonen 2024). At the same time, the new framework extends analogical inference beyond Boolean classification into regression and continuous-valued data for the first time, which the authors state has not been addressed in prior work. The characterization of analogy-preserving functions as generalized-power functions also gives a concrete, testable algebraic target for designing analogy-compatible models.

Real-world applications (as cited or implied by the paper):

  • Image processing — gray-channel and RGB values are nonnegative, so analogical reasoning applies to image completion and image reconstruction.
  • Natural language processing — word embeddings can be rotated into a nonnegative orthant, supporting analogy-based semantic tasks of the "king is to queen as man is to woman" type.
  • Few-shot and transfer learning — analogical inference serves as an inductive principle when direct supervision is scarce.
  • Interpretable AI and case-based reasoning — analogy-based methods offer transparency that purely statistical models lack.

Industry relevance. Any deployment of analogy-based classifiers or regressors on continuous features — embedding-based retrieval, recommendation, tabular regression — is affected by whether the underlying theoretical guarantees hold. This paper both invalidates existing guarantees and provides corrected ones, with explicit parameter choices ($p$, $q$) that practitioners can select to match arithmetic, geometric, or harmonic structure in their data.

Future Directions

  1. Extend beyond nonnegative reals. The current theory requires $\mathbb{R}_+^n$; relaxing this to all of $\mathbb{R}^n$ would broaden applicability to signed features and embeddings that cannot be rotated into one orthant.

  2. Relax or characterize the regularity assumption. The probabilistic bound (Proposition 20) depends on regular sample sets with a constant analogical root size $m$; understanding how deviations from regularity degrade guarantees is an open question.

  3. Test the corrected bounds empirically. The paper is theoretical; evaluating analogy-based regression using the $(\mathbf{p};q)$ framework on real datasets with continuous targets remains to be done.

  4. Reconcile with the Galois-theoretic view. Since the broken bound supported later work on analogical classifiers, rebuilding those results on the corrected foundation is a natural next step.

  5. Investigate multi-class extensions. The introduction notes that the framework enables extensions to multi-class settings via regression, but concrete multi-class guarantees are not developed in the provided content.

Target Audience

This paper is aimed at theoretically inclined researchers in machine learning theory, analogical reasoning, and Boolean function analysis — particularly those who have cited or built upon the (Couceiro et al. 2017; Couceiro et al. 2018; Couceiro and Lehtonen 2024) line of work. It will also interest statisticians working on non-parametric regression who want to see how classical smoothness-style arguments transfer to an analogical inference rule, and practitioners building analogy-based regression systems who need to know the parameterized model and its guaranteed error behavior. Readers should be comfortable with real analysis, measure theory, and functional equations.

Authors’ abstract

Analogical reasoning is a powerful inductive mechanism, widely used in human cognition and increasingly applied in artificial intelligence. Formal frameworks for analogical inference have been developed for Boolean domains, where inference is provably sound for affine functions and approximately correct for functions close to affine. These results have informed the design of analogy-based classifiers. However, they do not extend to regression tasks or continuous domains. In this paper, we revisit analogical inference from a foundational perspective. We first present a counterexample showing that existing generalization bounds fail even in the Boolean setting. We then introduce a unified framework for analogical reasoning in real-valued domains based on parameterized analogies defined via generalized means. This model subsumes both Boolean classification and regression, and supports analogical inference over continuous functions. We characterize the class of analogy-preserving functions in this setting and derive both worst-case and average-case error bounds under smoothness assumptions. Our results offer a general theory of analogical inference across discrete and continuous domains.

Read the original paper