Complexity index

From HandWiki

In modern computer science and statistics, the complexity index of a function denotes the level of informational content, which in turn affects the difficulty of learning the function from examples. This is different from computational complexity, which is the difficulty to compute a function. Complexity indices characterize the entire class of functions to which the one we are interested in belongs. Focusing on Boolean functions, the detail of a class [math]\displaystyle{ \mathsf C }[/math] of Boolean functions c essentially denotes how deeply the class is articulated.

Technical definition

To identify this index we must first define a sentry function of [math]\displaystyle{ \mathsf C }[/math]. Let us focus for a moment on a single function c, call it a concept defined on a set [math]\displaystyle{ \mathcal X }[/math] of elements that we may figure as points in a Euclidean space. In this framework, the above function associates to c a set of points that, since are defined to be external to the concept, prevent it from expanding into another function of [math]\displaystyle{ \mathsf C }[/math]. We may dually define these points in terms of sentinelling a given concept c from being fully enclosed (invaded) by another concept within the class. Therefore, we call these points either sentinels or sentry points; they are assigned by the sentry function [math]\displaystyle{ \boldsymbol S }[/math] to each concept of [math]\displaystyle{ \mathsf C }[/math] in such a way that:

  1. the sentry points are external to the concept c to be sentineled and internal to at least one other including it,
  2. each concept [math]\displaystyle{ c' }[/math] including c has at least one of the sentry points of c either in the gap between c and [math]\displaystyle{ c' }[/math], or outside [math]\displaystyle{ c' }[/math] and distinct from the sentry points of [math]\displaystyle{ c' }[/math], and
  3. they constitute a minimal set with these properties.

The technical definition coming from (Apolloni 2006) is rooted in the inclusion of an augmented concept [math]\displaystyle{ c^+ }[/math] made up of c plus its sentry points by another [math]\displaystyle{ \left(c'\right)^+ }[/math] in the same class.

Definition of sentry function

For a concept class [math]\displaystyle{ \mathsf C }[/math] on a space [math]\displaystyle{ \mathfrak X }[/math], a sentry function is a total function [math]\displaystyle{ \boldsymbol S: \mathsf C\cup\{\emptyset,\mathfrak X\}\mapsto 2^{\mathfrak X} }[/math] satisfying the following conditions:

  1. Sentinels are outside the sentineled concept ([math]\displaystyle{ c\cap{\boldsymbol S}(c)=\emptyset }[/math] for all [math]\displaystyle{ c\in \mathsf C }[/math]).
  2. Sentinels are inside the invading concept (Having introduced the sets [math]\displaystyle{ c^+=c\cup\boldsymbol S(c) }[/math], an invading concept [math]\displaystyle{ c'\in \mathsf C }[/math] is such that [math]\displaystyle{ c'\not\subseteq c }[/math] and [math]\displaystyle{ c^+\subseteq \left(c'\right)^+ }[/math]. Denoting [math]\displaystyle{ \mathrm{up}(c) }[/math] the set of concepts invading c, we must have that if [math]\displaystyle{ c_2\in\mathrm{up}(c_1) }[/math], then [math]\displaystyle{ c_2\cap{\boldsymbol S}(c_1)\neq\emptyset }[/math]).
  3. [math]\displaystyle{ {\boldsymbol S}(c) }[/math] is a minimal set with the above properties (No [math]\displaystyle{ {\boldsymbol S}'\neq{\boldsymbol S} }[/math] exists satisfying (1) and (2) and having the property that [math]\displaystyle{ \boldsymbol S'(c)\subseteq \boldsymbol S(c) }[/math] for every [math]\displaystyle{ c\in \mathsf C }[/math]).
  4. Sentinels are honest guardians. It may be that [math]\displaystyle{ c\subseteq \left(c'\right)^+ }[/math] but [math]\displaystyle{ {\boldsymbol S} (c)\cap c'=\emptyset }[/math] so that [math]\displaystyle{ c'\not\in\mathrm{up}(c) }[/math]. This however must be a consequence of the fact that all points of [math]\displaystyle{ {\boldsymbol S}(c) }[/math] are involved in really sentineling c against other concepts in [math]\displaystyle{ \mathrm{up}(c) }[/math] and not just in avoiding inclusion of [math]\displaystyle{ c^+ }[/math] by [math]\displaystyle{ (c')^+ }[/math]. Thus if we remove [math]\displaystyle{ c', {\boldsymbol S}(c) }[/math] remains unchanged (Whenever [math]\displaystyle{ c_1 }[/math] and [math]\displaystyle{ c_2 }[/math] are such that [math]\displaystyle{ c_1\subset c_2\cup{\boldsymbol S}(c_2) }[/math] and [math]\displaystyle{ c_2\cap{\boldsymbol S}(c_1)=\emptyset }[/math], then the restriction of [math]\displaystyle{ {\boldsymbol S} }[/math] to [math]\displaystyle{ \{c_1\}\cup\mathrm{up}(c_1)-\{c_2\} }[/math] is a sentry function on this set).

[math]\displaystyle{ {\boldsymbol S}(c) }[/math] is the frontier of c upon [math]\displaystyle{ \boldsymbol S }[/math].

A schematic outlook of outer sentineling functionality

With reference to the picture on the right, [math]\displaystyle{ \{x_1,x_2,x_3\} }[/math] is a candidate frontier of [math]\displaystyle{ c_0 }[/math] against [math]\displaystyle{ c_1,c_2,c_3,c_4 }[/math]. All points are in the gap between a [math]\displaystyle{ c_i }[/math] and [math]\displaystyle{ c_0 }[/math]. They avoid inclusion of [math]\displaystyle{ c_0\cup\{x_1,x_2,x_3\} }[/math] in [math]\displaystyle{ c_3 }[/math], provided that these points are not used by the latter for sentineling itself against other concepts. Vice versa we expect that [math]\displaystyle{ c_1 }[/math] uses [math]\displaystyle{ x_1 }[/math] and [math]\displaystyle{ x_3 }[/math] as its own sentinels, [math]\displaystyle{ c_2 }[/math] uses [math]\displaystyle{ x_2 }[/math] and [math]\displaystyle{ x_3 }[/math] and [math]\displaystyle{ c_4 }[/math] uses [math]\displaystyle{ x_1 }[/math] and [math]\displaystyle{ x_2 }[/math] analogously. Point [math]\displaystyle{ x_4 }[/math] is not allowed as a [math]\displaystyle{ c_0 }[/math] sentry point since, like any diplomatic seat, it should be located outside all other concepts just to ensure that it is not occupied in case of invasion by [math]\displaystyle{ c_0 }[/math].

Definition of detail

The frontier size of the most expensive concept to be sentineled with the least efficient sentineling function, i.e. the quantity

[math]\displaystyle{ \mathrm D_{\mathsf C}=\sup_{{\boldsymbol S},c}\#{\boldsymbol S}(c) }[/math],

is called detail of [math]\displaystyle{ \mathsf C }[/math]. [math]\displaystyle{ \boldsymbol S }[/math] spans also over sentry functions on subsets of [math]\displaystyle{ \mathfrak X }[/math] sentineling in this case the intersections of the concepts with these subsets. Actually, proper subsets of [math]\displaystyle{ \mathfrak X }[/math] may host sentineling tasks that prove harder than those emerging with [math]\displaystyle{ \mathfrak X }[/math] itself.

The detail [math]\displaystyle{ \mathrm D_{\mathsf C} }[/math] is a complexity measure of concept classes dual to the VC dimension [math]\displaystyle{ \mathrm D_{\mathsf VC} }[/math]. The former uses points to separate sets of concepts, the latter concepts for partitioning sets of points. In particular the following inequality holds (Apolloni 1997)

[math]\displaystyle{ \mathrm D_{\mathsf C}\leq \mathrm D_{\mathsf VC}+1 }[/math]

See also Rademacher complexity for a recently introduced class complexity index.

Example: continuous spaces

Class C of circles in [math]\displaystyle{ \mathbb R^2 }[/math] has detail [math]\displaystyle{ \mathrm D_{\mathsf C}=2 }[/math], as shown in the picture on left below. Similarly, for the class of segments on [math]\displaystyle{ \mathbb R }[/math], as shown in the picture on right.

Two points [math]\displaystyle{ x_1, x_2 }[/math] outside c (thick circle) are sufficient to prevent a larger circle not containing them from including it
The class of segments in [math]\displaystyle{ \mathbb R }[/math] and two points needed to sentinel its concepts

Example: discrete spaces

The class [math]\displaystyle{ \mathsf C=\{c_1,c_2,c_3,c_4\} }[/math] on [math]\displaystyle{ \mathfrak X=\{x_1,x_2,x_3\} }[/math] whose concepts are illustrated in the following scheme, where "+" denotes an element [math]\displaystyle{ x_j }[/math] belonging to [math]\displaystyle{ c_i }[/math], "-" an element outside [math]\displaystyle{ c_i }[/math], and ⃝ a sentry point:

[math]\displaystyle{ x_1 }[/math] [math]\displaystyle{ x_2 }[/math] [math]\displaystyle{ x_3 }[/math]
[math]\displaystyle{ c_1= }[/math] -⃝ -⃝ -
[math]\displaystyle{ c_2= }[/math] -⃝ + +
[math]\displaystyle{ c_3= }[/math] + -⃝ +
[math]\displaystyle{ c_4= }[/math] + + +

This class has [math]\displaystyle{ \mathrm D_{\mathsf C}=2 }[/math]. As usual we may have different sentineling functions. A worst case S, as illustrated, is: [math]\displaystyle{ \mathbf S(c_1)=\{x_1,x_2\}, \mathbf S(c_2)=\{x_1\}, \mathbf S(c_3)=\{x_2\}, \mathbf S(c_4)=\emptyset }[/math]. However a cheaper one is [math]\displaystyle{ \mathbf S(c_1)=\{x_3\}, \mathbf S(c_2)=\{x_1\}, \mathbf S(c_3)=\{x_2\}, \mathbf S(c_4)=\emptyset }[/math]:

[math]\displaystyle{ x_1 }[/math] [math]\displaystyle{ x_2 }[/math] [math]\displaystyle{ x_3 }[/math]
[math]\displaystyle{ c_1= }[/math] - - -⃝
[math]\displaystyle{ c_2= }[/math] -⃝ + +
[math]\displaystyle{ c_3= }[/math] + -⃝ +
[math]\displaystyle{ c_4= }[/math] + + +

References

  • Apolloni, B.; Malchiodi, D.; Gaito, S. (2006). Algorithmic Inference in Machine Learning. International Series on Advanced Intelligence. 5 (2nd ed.). Adelaide: Magill. "Advanced Knowledge International" 
  • Apolloni, B.; Chiaravalli, S. (1997). "PAC learning of concept classes through the boundaries of their items". Theoretical Computer Science 172 (1–2): 91–120. doi:10.1016/S0304-3975(95)00240-5.