BioGPT, built on a GPT-2 decoder-only architecture, excels in generative tasks like text generation and relation extraction, achieving record F1 scores on datasets like BC5CDR (44.98%) and DDI (40.76%). This contrasts with encoder-only models like BioBERT and PubMedBERT, which are primarily optimized for discriminative tasks such as text understanding and classification.