AWS Certified AI PractitionerAI/ML and Generative AI FundamentalsHard

A research team is developing a generative AI model to create novel protein structures based on a sequence of amino acids. The model needs to understand the long-range dependencies and the sequential relationships within the amino acid chain to generate biologically plausible structures. Which neural network architecture is best suited for this task?

  1. ATransformer Architecture
  2. BConvolutional Neural Network (CNN)
  3. CGenerative Adversarial Network (GAN)
  4. DRecurrent Neural Network (RNN)
Show answer & explanation

Correct answer: A. Transformer Architecture

The Transformer architecture, with its self-attention mechanism, is specifically designed to handle long-range dependencies in sequential data more effectively than RNNs. This is crucial for tasks like protein structure generation where distant parts of the sequence can influence each other, and capturing these complex relationships is vital for generating novel and plausible structures. While RNNs can handle sequences, they struggle with very long dependencies due to issues like vanishing gradients.

Why the other options are wrong

  • B. CNNs are primarily for spatial data (images) and are not ideal for capturing long-range sequential dependencies.
  • C. GANs are a type of generative model but refer to the training framework (generator-discriminator), not the underlying sequence processing architecture.
  • D. RNNs can process sequences but struggle with very long dependencies and parallelization, making them less efficient for complex protein sequences.

Transformer Architecture

A neural network architecture primarily used in sequence-to-sequence tasks, notable for its self-attention mechanism that allows it to weigh the importance of different parts of the input sequence.

  • Relies entirely on attention mechanisms, eschewing recurrence and convolutions.
  • Excellent at capturing long-range dependencies in sequential data.
  • Enables parallel processing of input sequences, unlike RNNs.
  • Forms the foundation for many state-of-the-art LLMs and generative AI models.

Memory trick: T-Rex Can't Run: Transformers Rule Long Sequences

More AI/ML and Generative AI Fundamentals questions