Papers
Topics
Authors
Recent
Search
2000 character limit reached

Circular Task Embeddings in CCM-AAE

Updated 5 April 2026
  • Circular task embeddings are representations defined on the one-dimensional unit circle (S¹) that capture natural cyclic and phase-based relationships among tasks.
  • The CCM-AAE framework encodes task data into a normalized Euclidean space, employing an adversarial and geometric loss to enforce the manifold constraint on the unit circle.
  • This approach enables effective clustering, visualization, and generative exploration of tasks with inherent cyclical structures, enhancing interpretability and modeling accuracy.

Circular task embeddings are representations of tasks as points on a one-dimensional spherical manifold—specifically, the unit circle S1S^1—with the goal of capturing cyclic, phase-based, or angular relationships among tasks. Within the adversarial autoencoder framework over constant-curvature manifolds (CCM-AAE), circular task embeddings are constructed by encoding task-level information into the circle, leveraging the geometry of constant-positive curvature to enforce a "circular" code and facilitate geometric regularities and visualizations that are not easily captured in Euclidean space (Grattarola et al., 2018).

1. Constant-Curvature Manifolds and the Spherical Geometry

A constant-curvature Riemannian manifold MM parameterized by curvature κR\kappa \in \mathbb{R} can be realized extrinsically in Rd+1\mathbb{R}^{d+1} as

M={xRd+1x,x=κ1},M = \left\{ x \in \mathbb{R}^{d+1} \mid \langle x, x \rangle = \kappa^{-1} \right\},

where ,\langle \cdot, \cdot \rangle denotes the Euclidean dot product. In the case κ>0\kappa > 0, the manifold is a dd-dimensional sphere SκdS^d_\kappa of radius r=1/κr = 1/\sqrt{\kappa}.

Core geometric operations on the hypersphere include:

  • Metric tensor: MM0.
  • Geodesic distance: MM1.
  • Exponential and logarithmic maps support transition between embedded points and their tangent representations, enabling smooth optimization and interpolations.

The case MM2 yields the unit circle MM3, a manifold particularly apt for cyclic or periodic structures such as phase data, directions, or task sequences with a natural circular symmetry.

2. CCM-AAE Framework for Circular Embedding

The CCM-AAE (Constant-Curvature Manifold Adversarial AutoEncoder) framework enables the construction of latent representations that explicitly reside on a specified constant-curvature manifold. For circular task embeddings, the latent space is instantiated by MM4 (i.e., a circle in MM5).

The architecture involves:

  • Encoder MM6: Maps input task data MM7 to MM8, optionally projecting the resulting embedding onto MM9 by normalization.
  • Decoder κR\kappa \in \mathbb{R}0: Reconstructs the input data from the embedding, enforcing that latent codes contain information sufficient for task reconstruction or prediction.
  • Discriminator κR\kappa \in \mathbb{R}1: Distinguishes between real samples drawn uniformly from κR\kappa \in \mathbb{R}2 and encoder outputs, enforcing the aggregate posterior to match the manifold's prior.

Off-manifold encodings are penalized using a Gaussian membership function,

κR\kappa \in \mathbb{R}3

which quantifies how closely κR\kappa \in \mathbb{R}4 adheres to the sphere constraint.

3. Learning Objective and Training Procedure

The joint objective function incorporates reconstruction, membership, and adversarial losses: κR\kappa \in \mathbb{R}5 where κR\kappa \in \mathbb{R}6 is a standard adversarial objective comparing real and synthetic manifold samples.

The training alternates between discriminator optimization (κR\kappa \in \mathbb{R}7) and minimization over encoder and decoder parameters (κR\kappa \in \mathbb{R}8):

  • The discriminator is updated to maximize the adversarial term, distinguishing true manifold samples from encoder outputs.
  • The encoder and decoder are jointly updated to minimize reconstruction error, encourage manifold membership, and fool the discriminator.

For the circular case (κR\kappa \in \mathbb{R}9), the prior Rd+1\mathbb{R}^{d+1}0 is sampled by drawing Rd+1\mathbb{R}^{d+1}1 and normalizing, yielding uniform distribution on the unit circle.

4. Construction of Circular Task Embeddings

Circular task embeddings are built as follows:

  1. Each task Rd+1\mathbb{R}^{d+1}2 is encoded via Rd+1\mathbb{R}^{d+1}3 to Rd+1\mathbb{R}^{d+1}4, then normalized to Rd+1\mathbb{R}^{d+1}5: Rd+1\mathbb{R}^{d+1}6.
  2. The decoder reconstructs Rd+1\mathbb{R}^{d+1}7 from Rd+1\mathbb{R}^{d+1}8, imposing that the embedding is informative with respect to task features or metadata.
  3. The discriminator trains against both Rd+1\mathbb{R}^{d+1}9 and independently sampled M={xRd+1x,x=κ1},M = \left\{ x \in \mathbb{R}^{d+1} \mid \langle x, x \rangle = \kappa^{-1} \right\},0 Uniform(M={xRd+1x,x=κ1},M = \left\{ x \in \mathbb{R}^{d+1} \mid \langle x, x \rangle = \kappa^{-1} \right\},1).
  4. Objective terms and hyperparameters (M={xRd+1x,x=κ1},M = \left\{ x \in \mathbb{R}^{d+1} \mid \langle x, x \rangle = \kappa^{-1} \right\},2, M={xRd+1x,x=κ1},M = \left\{ x \in \mathbb{R}^{d+1} \mid \langle x, x \rangle = \kappa^{-1} \right\},3) control the balance of reconstruction, manifold regularity, and adversarial alignment.

A typical optimization step involves:

  • Computing the batch of task embeddings.
  • Evaluating reconstruction loss: M={xRd+1x,x=κ1},M = \left\{ x \in \mathbb{R}^{d+1} \mid \langle x, x \rangle = \kappa^{-1} \right\},4.
  • Computing the membership penalty: M={xRd+1x,x=κ1},M = \left\{ x \in \mathbb{R}^{d+1} \mid \langle x, x \rangle = \kappa^{-1} \right\},5.
  • Updating the discriminator with real and fake samples.
  • Updating encoder/decoder to minimize the joint loss, including adversarial, reconstruction, and geometric terms.

5. Hyperparameterization and Practical Considerations

Relevant settings for circular task embedding include:

  • Embedding dimensionality M={xRd+1x,x=κ1},M = \left\{ x \in \mathbb{R}^{d+1} \mid \langle x, x \rangle = \kappa^{-1} \right\},6, thus ambient dimension is 2.
  • Curvature M={xRd+1x,x=κ1},M = \left\{ x \in \mathbb{R}^{d+1} \mid \langle x, x \rangle = \kappa^{-1} \right\},7, setting manifold to the unit circle.
  • Regularization strength M={xRd+1x,x=κ1},M = \left\{ x \in \mathbb{R}^{d+1} \mid \langle x, x \rangle = \kappa^{-1} \right\},8.
  • Membership width M={xRd+1x,x=κ1},M = \left\{ x \in \mathbb{R}^{d+1} \mid \langle x, x \rangle = \kappa^{-1} \right\},9.
  • Learning rate (e.g., ,\langle \cdot, \cdot \rangle0), batch size (64-256).

Training proceeds as:

  • For each epoch and batch, encode, normalize, and compute losses as outlined.
  • The embedding ,\langle \cdot, \cdot \rangle1 after convergence offers a phase (angle) representation per task, lending itself to clustering, visualization, or generative exploration of novel task codes along the circle.

6. Applications and Interpretational Advantages

Circular task embeddings provide a natural framework for representing periodic or cyclical task relationships, such as phases, rotations, or tasks with inherent circular orderings. After training, the mapping ,\langle \cdot, \cdot \rangle2 can be employed for clustering tasks, visualizing angular task progressions, and sampling new hypothetical tasks via interpolations along the circle.

The explicit manifold constraint ensures that embeddings retain circular topology, reducing distortion relative to Euclidean latent codes when the underlying task structure is naturally cyclic. This framework enables robust probabilistic modeling, regularization, and generative modeling within a geometric regime that aligns with the data's symmetries (Grattarola et al., 2018).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Circular Task Embeddings.