Skip to main content
QUICK REVIEW

[Paper Review] Modality Conversion of Handwritten Patterns by Cross Variational Autoencoders

Taichi Sumi, Brian Kenji Iwana|arXiv (Cornell University)|Jun 14, 2019
Handwritten Text Recognition TechniquesComputer Science25 references5 citations
TL;DR

This paper proposes Cross-VAE, a cross-variational autoencoder that enables mutual conversion between online (temporal trajectory) and offline (image) handwritten characters by sharing a latent space. By jointly training two VAEs with a novel space sharing loss, the model achieves high-fidelity inking and stroke recovery, outperforming class averages in PSNR (15.99 dB), SSIM (0.707), and DTW (0.0361).

ABSTRACT

This research attempts to construct a network that can convert online and offline handwritten characters to each other. The proposed network consists of two Variational Auto-Encoders (VAEs) with a shared latent space. The VAEs are trained to generate online and offline handwritten Latin characters simultaneously. In this way, we create a cross-modal VAE (Cross-VAE). During training, the proposed Cross-VAE is trained to minimize the reconstruction loss of the two modalities, the distribution loss of the two VAEs, and a novel third loss called the space sharing loss. This third, space sharing loss is used to encourage the modalities to share the same latent space by calculating the distance between the latent variables. Through the proposed method mutual conversion of online and offline handwritten characters is possible. In this paper, we demonstrate the performance of the Cross-VAE through qualitative and quantitative analysis.

Motivation & Objective

  • To enable bidirectional modality conversion between online (trajectory) and offline (image) handwritten characters.
  • To address the challenge of reconstructing lost temporal stroke order from static images (stroke recovery) and generating images from trajectories (inking).
  • To learn a shared latent space that captures the fundamental representation of handwritten characters across modalities.
  • To improve performance over baseline methods by introducing a novel space sharing loss to align latent variables across modalities.
  • To evaluate the effectiveness of different architectures (LSTM vs. convolutional layers) in modeling time-series and image modalities.

Proposed method

  • The model uses two separate VAEs: one for image modality (X_b → z_b → Y_b) and one for trajectory modality (X_t → z_t → Y_t), each with an encoder and decoder.
  • A novel space sharing loss is introduced to minimize the L2 distance between latent variables z_b and z_t for the same handwritten character across modalities.
  • The overall loss function combines reconstruction loss (MSE for images, MSE for trajectories), distribution loss (KL divergence), and the space sharing loss.
  • The network is trained end-to-end to jointly optimize for reconstruction fidelity and latent space alignment.
  • Convolutional layers are used in the time-series encoder and decoder, outperforming LSTMs in capturing spatial dependencies in stroke coordinates.
  • The shared latent space enables cross-modal generation: from image to trajectory (stroke recovery) and from trajectory to image (inking).

Experimental results

Research questions

  • RQ1Can a shared latent space enable accurate mutual conversion between online and offline handwritten characters?
  • RQ2How effective is the proposed space sharing loss in aligning the latent representations of different modalities?
  • RQ3Does the choice of architecture (LSTM vs. convolutional layers) significantly affect performance in modality conversion?
  • RQ4Can the model reconstruct stroke trajectories from static images with high fidelity?
  • RQ5How does the model compare to class-average baselines in terms of image and trajectory reconstruction quality?

Key findings

  • The Cross-VAE achieved a PSNR of 15.99 dB and SSIM of 0.707 for offline-to-online conversion (image to trajectory), significantly outperforming the class average of 9.197 dB and 0.159.
  • For online-to-offline conversion (trajectory to image), the model achieved a PSNR of 15.99 dB and SSIM of 0.707, again surpassing the class average.
  • The DTW distance for stroke recovery was 0.0361, indicating high similarity between reconstructed and original trajectories, with lower values indicating better performance.
  • Convolutional layers in the time-series encoder and decoder outperformed LSTMs, achieving better PSNR, SSIM, and DTW scores, likely due to better modeling of spatial dependencies in stroke coordinates.
  • The space sharing loss effectively aligned the latent spaces of the two modalities, enabling accurate cross-modal generation.
  • The model successfully demonstrated both inking and stroke recovery, proving the feasibility of joint modality conversion using a shared latent space.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.