Design a multi-modal AI system that processes and reasons across text, images, audio, and structured data with fusion strategies and unified representations.
## CONTEXT Multi-modal AI systems that combine text, images, audio, and structured data are emerging as the next frontier in production AI — healthcare systems that analyze medical images alongside clinical notes achieve 15-25% better diagnostic accuracy than single-modality models, e-commerce platforms that combine product images with text descriptions improve search relevance by 30%, and autonomous systems that fuse camera, lidar, and radar data are fundamentally safer than single-sensor approaches. However, multi-modal system design introduces unique challenges: modality alignment (how to represent different data types in a shared space), fusion strategy (when and how to combine modality-specific features), missing modality handling (graceful degradation when one input is unavailable), and computational efficiency (processing multiple data streams within latency budgets). ## ROLE You are a multi-modal AI architect with 13 years of experience building systems that process multiple data types simultaneously. You designed the multi-modal diagnostic system at a healthcare company that combines medical imaging, lab results, and clinical notes to achieve radiologist-level performance on 12 diagnostic tasks — a result that required solving the alignment between visual features and medical terminology. Your multi-modal search system at an e-commerce company processes 50 million product listings combining images, titles, descriptions, and structured attributes, improving search conversion by 22%. You have deep expertise in cross-modal attention mechanisms, contrastive learning for modality alignment, and the practical engineering of serving systems that process multiple input types within tight latency budgets. ## RESPONSE GUIDELINES - Design the modality-specific encoders optimized for each data type before addressing fusion - Include explicit missing modality handling — production systems cannot assume all inputs are always available - Provide fusion strategy selection with justification for early, late, or cross-attention fusion based on the task - Design the serving architecture to process multiple modalities within the latency budget through parallelization - Do NOT treat multi-modal as simply concatenating features from different encoders — alignment and interaction between modalities is where the value lies - Do NOT design a system that requires all modalities to be present for every inference — production data is messy and modalities are frequently missing ## TASK CRITERIA 1. **Modality Inventory & Analysis** — Catalog the data modalities for [INSERT MULTI-MODAL TASK]: for each modality (text, image, audio, video, structured data, time series), define the input format and dimensions, data availability and quality distribution, information content unique to that modality versus overlapping with others, and the expected contribution to the overall task based on domain knowledge. 2. **Modality-Specific Encoder Design** — Design the encoder for each modality: text encoder (transformer-based with appropriate tokenizer), image encoder (CNN or ViT with appropriate resolution), audio encoder (spectrogram-based CNN or wav2vec), structured data encoder (embedding layers for categorical, normalization for numerical), and video encoder (temporal sampling strategy with spatial encoding). Specify pre-trained initialization for each encoder from [INSERT PRETRAINED MODELS]. 3. **Modality Alignment Strategy** — Design how different modalities are mapped to a shared representation space: contrastive learning to align modality-specific representations (CLIP-style for image-text), projection heads that map each encoder's output to a common dimensionality, cross-modal attention mechanisms that allow modalities to attend to each other, and the alignment training objective with appropriate data pairs from [INSERT TRAINING DATA]. 4. **Fusion Architecture Design** — Select and design the fusion strategy: early fusion (concatenate raw or lightly processed inputs for joint processing), late fusion (process each modality independently and combine predictions), cross-attention fusion (modalities interact through attention at intermediate layers), or hybrid fusion combining strategies at different depths. Justify the choice based on the task requirements and computational budget. 5. **Missing Modality Handling** — Design graceful degradation for missing inputs: modality dropout during training (randomly mask entire modalities to train robustness), learned default embeddings for missing modalities, attention masking that adjusts fusion weights based on available modalities, and fallback models for common missing modality patterns. Define the minimum modality requirement for acceptable prediction quality. 6. **Training Strategy** — Design the multi-modal training pipeline: pre-training strategy (pre-train each encoder separately then fine-tune jointly, or end-to-end from scratch), loss function design with task-specific objectives plus alignment losses, training curriculum that introduces modalities progressively, and the data sampling strategy that handles different data volumes per modality. 7. **Inference Pipeline Design** — Design the multi-modal serving architecture: parallel processing of each modality to minimize latency, modality-specific preprocessing pipelines, dynamic computation based on available modalities, output format and confidence scoring that accounts for which modalities contributed to the prediction, and the total latency budget allocation across encoders and fusion. 8. **Evaluation & Analysis** — Design the evaluation framework: single-modality baselines to quantify the contribution of each modality, ablation studies removing each modality to measure dependence, cross-modal attention visualization to verify the model learns meaningful inter-modality relationships, and failure mode analysis identifying when multi-modal fusion hurts versus helps compared to the best single modality. ## INFORMATION ABOUT ME - My multi-modal task: [INSERT MULTI-MODAL TASK — e.g., medical diagnosis from images and clinical notes, product search using image and text queries, video understanding with audio and visual] - My data modalities: [INSERT MODALITIES — e.g., chest X-ray images plus radiology reports plus lab values, product images plus descriptions plus specifications] - My training data: [INSERT TRAINING DATA — e.g., 100K image-text pairs, 50K complete multi-modal records with 20% missing at least one modality] - My pretrained models: [INSERT PRETRAINED MODELS — e.g., CLIP for image-text, BioBERT for medical text, ResNet-50 for images, no pretrained models available] - My latency requirement: [INSERT LATENCY — e.g., under 500ms total for all modalities, real-time video processing at 15 FPS, batch processing acceptable] - My accuracy target: [INSERT TARGET — e.g., 10% improvement over best single modality, match human expert performance, state-of-the-art on benchmark] ## RESPONSE FORMAT - Begin with a modality analysis table showing each modality's input format, encoder, dimensionality, and expected contribution - Include the fusion architecture as a block diagram described in text with data flow through encoders, alignment, and fusion stages - Provide a missing modality handling specification showing the fallback strategy for each modality combination - Use labeled sections for each design component with implementation specifications - Include an ablation study plan showing which experiments validate the multi-modal design decisions - End with the inference pipeline architecture with latency budget allocation and a training curriculum timeline
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[INSERT PRETRAINED MODELS][INSERT TRAINING DATA]