Interaction Transformer for Human Reaction Generation

Baptiste Chopin, Hao Tang, Naima Otberdout, Mohamed Daoudi, Nicu Sebe

Abstract

We address the challenging task of human reaction generation, which aims to generate a corresponding reaction based on an input action. Most existing works do not focus on predicting reactions and cannot generate motion when only the action is provided. To address this, we propose InterFormer, a novel interaction Transformer consisting of a network with both temporal and spatial attention. Extensive experiments on the SBU interaction, K3HI, and DuetDance datasets demonstrate its effectiveness. Our method is general and can be used to generate complex, long-term interactions.

Introduction

Human motion generation research has largely focused on single-person movements in isolation. However, human life is inherently interactive. Generating a realistic reaction—such as flinching from a punch or following a lead in a ballroom dance—is significantly more complex than generating solo actions due to temporal non-linearity and deep contextual dependencies. Existing models often struggle to maintain physical logic, resulting in artifacts like "gliding" motions or skeletons that fail to respond to their partner's proximity.

Methodology

InterFormer treats reaction generation as a sequence-to-sequence translation task, effectively translating an "action language" into a corresponding "reaction language."

The InterFormer architecture, highlighting the Spatio-Temporal Attention and Interaction modules.

The architecture leverages several key innovations to ensure physical and temporal coherence:

  • Spatio-Temporal Attention: Temporal attention captures how motions evolve over time, while spatial attention learns the dependencies between different body parts of each character.
  • Skeleton Adjacency Module: This module uses a graph representation of the human body to mask spatial attention, forcing the model to respect human anatomy and bone connectivity.
  • Interaction Distance Module: By calculating the Euclidean distance between the joints of the two characters, this module provides a prior that focuses the model's attention on joints in close physical proximity, where interaction is most likely to occur.
  • Multi-modality: By incorporating noise into the encoder, the system can generate multiple diverse and valid reactions to a single input action, mimicking the unpredictability of real human behavior.

Experimental Results

The model was evaluated on the SBU Interaction, K3HI, and DuetDance datasets. The DuetDance dataset is particularly challenging, featuring complex ballroom dance sequences (e.g., Cha-cha, Salsa) that require long-term coordination.

Quantitative and qualitative performance comparison across multiple datasets, demonstrating InterFormer's state-of-the-art results.

InterFormer established new state-of-the-art benchmarks across all tested datasets. On the SBU dataset, it achieved 80% classification accuracy for its generated reactions, nearly doubling the performance of previous models like VRNN (46.7%). Qualitative analysis shows that InterFormer successfully avoids common artifacts like "stuck" poses or "gliding" feet, even in sequences lasting up to 40 seconds. In user studies, participants consistently preferred InterFormer’s generated sequences over competing methods, citing superior realism and physical grounding.

Conclusion

InterFormer demonstrates that framing reaction generation as a translation task, augmented with anatomical and proximity-based priors, significantly improves the realism of AI-generated human interactions. While challenges remain regarding error accumulation over very long sequences and the capture of subtle micro-expressions, InterFormer provides a robust foundation for future research in interactive AI and human-robot interaction.

Summary updated

BibTeX
@article{chopin2023interaction,
  author = {Baptiste Chopin and Hao Tang and Naima Otberdout and Mohamed Daoudi and Nicu Sebe},
  title = {{Interaction Transformer for Human Reaction Generation}},
  journal = {IEEE Trans. Multimedia},
  year = {2023},
  doi = {10.1109/tmm.2023.3242152},
}
Figure