A secure softmax function calculation system for calculating a share ([[softmax (u1)]], . . . , [[softmax (uJ)]]) of a value (softmax (u1), . . . , softmax (uJ)) of a softmax function for an input vector (u1, . . . , uJ) from a share ([[u1]], . . . , [[uJ]]) of the input vector (u1, . . . , uJ) (where J is an integer greater than or equal to 1), the secure softmax function calculation system being constituted with three or more secure softmax function calculation apparatuses,
- map1 being secure batch mapping defined by a parameter (a1, . . . , aK) representing a domain of definition and a parameter (α1, . . . , αK) representing a range of values (where K is an integer greater than or equal to 2, a1, . . . , aK are real numbers that meet a1< . . . <aK) of a function exp (x), and map2 being secure batch mapping defined by a parameter (b1, . . . , bL) representing a domain of definition and a parameter (β1, . . . , βL) representing a range of values (where L is an integer greater than or equal to 2, b1, . . . , bL are real numbers that meet b1< . . . <bL) of a function 1/x,
- the secure softmax function calculation system comprising:
- a subtraction means for calculating a share ([[u1−u1]], [[u2−u1]], . . . , [[uJ−u1]], [[u1−u2]], . . . , [[uJ−u2]], . . . , [[u1−uJ]], . . . , [[uJ−uJ]]) from the share ([[u1]], . . . , [[uJ]]);
- a first secure batch mapping calculation means for calculating map1 (([[u1−u1]], [[u2−u1]], . . . , [[uJ−u1]], [[u1−u2]], . . . , [[uJ−u2]], . . . , [[u1−uJ]], . . . , [[uJ−uJ]]))=([[αf(1, 1)]], [[αf(2, 1)]], . . . , [[αf(J, 1)]], [[αf(1, 2)]], . . . , [[αf(J, 2)]], . . . , [[αf(1, J)]], . . . , [[αf(J, J)]]) from the share ([[u1−u1]], [[u2−u1]], . . . , [[uJ−u1]], [[u1−u2]], . . . , [[uJ−u2]], . . . , [[u1−uJ]], . . . , [[uJ−uJ]]) (where f(i, j) (1≤i, j≤K) is p where ap≤ui−uj<ap+1) to make ([[exp (u1−u1)]], [[exp (u2−u1)]], . . . , [[exp (uJ−u1)]], [[exp (u1−u2)]], . . . , [[exp (uJ−u2)]], . . . , [[exp (u1−uJ)]], . . . , [[exp (uJ−uJ)]])=([[αf(1, 1)]], [[αf(2, 1)]], . . . , [[αf(J, 1)]], [[αf(1, 2)]], . . . , [[αf(J, 2)]], . . . , [[αf(1, J)]], . . . , [[αf(J, J)]]);
- an addition means for calculating a share ([[Σj=1J exp (uj−u1)]], [[Σj=1J exp (uj−u2)]], . . . , [[Σj=1J exp (uj−uJ)]]) from the share ([[exp (u1−u1)]], [[exp (u2−u1)]], . . . , [[exp (uJ−u1)]], [[exp (u1−u2)]], . . . , [[exp (uJ−u2)]], . . . , [[exp (u1−uJ)]], . . . , [[exp (uJ−uJ)]]);
- and
- a second secure batch mapping calculation means for calculating map2 (([[Σj=1J exp (uj−u1)]], [[Σj=1J exp (uj−u2)]], . . . , [[Σj=1J exp (uj−uJ)]]))=([[βg(1)]], [[βg(2)]], . . . , [[βg(J)]]) from the share ([[Σj=1J exp (uj−u1)]], [[Σj=1J exp (uj−u2)]], . . . , [[Σj=1J exp (uj−uJ)]]) (where g(i) (1≤i≤L) is p where bp≤Σj=1J exp (uj−ui)<bp+1) to make ([[softmax (u1)]], [[softmax (u2)]], . . . , [[softmax (uJ)]]=([[βg(1)]], [[βg(2)]], . . . , [[βg(J)]]).