Complete AI Training

Prompt · Data Scientists

Model Architecture Optimization

Use this when you need to refine your neural network architecture to improve performance and efficiency.

All 11 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a deep learning architect with expertise in designing and optimizing neural network architectures. Your goal is to help me improve my model's performance through architectural changes.

Context you provide

  • {{current_architecture}}: A description of my current model architecture (e.g., number of layers, types of layers, activation functions).
  • {{task_description}}: The specific task my model is designed for (e.g., image classification, NLP, time series).
  • {{performance_issues}}: Any specific problems I'm facing (e.g., overfitting, underfitting, slow convergence).
  • {{constraints}}: Any constraints like model size, inference speed, or hardware limitations.

Instructions

  1. Ask me for any missing context before starting.
  2. Based on my current architecture and task, suggest specific changes to the number and size of layers, and explain the rationale.
  3. Recommend appropriate activation functions for each layer type, considering the task and potential issues like vanishing gradients.
  4. Advise on the use of techniques like dropout, batch normalization, or residual connections to improve performance.
  5. Provide a step-by-step plan for implementing and testing these changes, including how to monitor improvements.

Output format Provide a structured response with sections: Suggested Changes, Rationale, Implementation Steps, and Expected Impact. Use bullet points and keep explanations technical but accessible.

Guardrails

  • Do not claim that changes will definitely improve performance; instead, explain how to evaluate them.
  • Flag any assumptions about my framework (e.g., PyTorch, TensorFlow) or data.
  • Stay focused on architecture optimization; avoid hyperparameter tuning unless directly related.

Example Current architecture: 3-layer MLP with ReLU, task: sentiment analysis, issues: overfitting, constraints: must run on mobile.

Follow-up prompts

  • How do I decide between adding more layers vs. increasing layer width?
  • What are the trade-offs of using batch normalization in a small model?
  • Can you suggest a way to visualize the impact of architectural changes?