Sparsemax
Mathematical Methods AIMech:Sparsemax DRAFT
Aliases: Sparsemax transformation
A transformation of real-valued scores into a probability vector by Euclidean projection onto the probability simplex, capable of assigning exact zero probabilities.
Identity Notes & Concept Scope
This concept is the Sparsemax transformation, not the separate sparsemax loss, a trained model or an implementing neural-network layer. In the 2026-11-20 identity search, hidden and ignored repository files, pinned AIO class metadata, maintained identities, proposals, and local and remote branch tips were searched for Sparsemax, sparse max, sparse-max and publication identifiers; the only phrase hit then was an unrelated sparse maximal eigenvalue bound in a Lasso record. AIMech:Sparsegen, a maintained record created later (2026-11-28), names the more general probability-mapping family of Laha et al. (2018); it reduces to Sparsemax when g(z)=z and lambda=0, and is a distinct concept, not an alias. AIO MathematicalFunction, SoftmaxFunction, ActivationLayer and SoftmaxLayer were examined; layer classes do not denote this function. Softmax is an alternative normalization, not an equivalent concept. Other AIMech algorithm records and discovery helpers use simplex projection as a component; this record names the standalone Sparsemax score-to-probability formulation, without claiming that the projection primitive is new.
Claims & Grounded Evidence
2 Claims
Mechanism
#adaptive-threshold
For each input coordinate z_i, the output is max(z_i - tau, 0), where the input-dependent threshold tau makes the outputs sum to one. The sorting-based algorithm finds the support and threshold.
Limitation
#piecewise-differentiability
The transformation is piecewise linear and differentiable except at points where its support changes. Away from those points, its Jacobian is diag(s) - s s^T / |S|, with s the indicator of the support S. At support-change points the transformation is not differentiable; there the paper uses an element of Clarke's generalized Jacobian (footnote 2).
⚠️ Curated Limitations & Negative Results
- Sparse outputs are possible, not guaranteed for every input.
- The separate sparsemax loss has properties that must not be attributed to the transformation.
- No benchmark superiority, independent theorem verification or saved scientific review is asserted.
Artificial Intelligence Ontology (AIO) Grounding
Mapped AIO Classes
| AIO Target Class | Mapping Relation | Mapping Rationale |
|---|---|---|
AIO:MathematicalFunction
Mathematical Function
|
broad_match | The AIO target covers input-to-output mathematical rules; Sparsemax is a specific vector-valued rule. The target is broader than the local subject; this mapping does not assert an accepted upstream class. |
Evidence Sources & Primary Literature
1 Source| Source ID | Publication / Document | Type / Access | Reference & Checksum |
|---|---|---|---|
sparsemax-2016
|
André F. T. Martins, Ramón F. Astudillo
|
primary paper
full_text
|
ID: https://proceedings.mlr.press/v48/martins16.html
sha256:6c68b6e6d09f…
|
Ontology & Grounding Topology
Open in interactive network graph →Curation Provenance
Curator: Codex
Method: ai_assisted
Model: GPT-6
Created: 2026-11-20T04:35:04Z
Updated: 2026-12-01T05:22:38Z
Source File:
data/curated/Sparsemax.yaml
· Schema:
curated_concept.yaml
Explore across X-Mech
Related computational & biological Mechs:
Embedding Map
Network Graph
ProteinTraitsMech (ESM-2 pLM)
DUFMech (Domain pLM)
TraitMech
CultureMech
All 14 X-Mech Repositories