Okay, you're right to question that task list! It is arbitrary without understanding what you're trying to evaluate. Let's break down how to choose a good set of tasks for evaluating a model trained on Infinity-Instruct and Magpie-Pro-300K-Filtered, and then I'll give you several suggested lists, ranging from broad to more focused. I'll also explain why I'm suggesting them.
Understanding Your Training Data & Goals
- Infinity-Instruct: This dataset is designed for instruction following. It's a mix of tasks, aiming for general-purpose instruction-tuned performance. It's broad, covering many areas.
- Magpie-Pro-300K-Filtered: This dataset focuses on high-quality, diverse, and challenging prompts. It's designed to improve reasoning, knowledge, and instruction following. The "filtered" part suggests an attempt to remove low-quality or redundant data.
- Combined Effect: Training on both suggests you're aiming for a model that's good at understanding and following instructions while also having a solid base of knowledge and reasoning ability. You want a model that can not only do what you ask, but also understand what you're asking and provide accurate, well-reasoned responses.
What to Evaluate For
Given the training data, here's what you should be looking for in your evaluation:
- Instruction Following: How well does the model adhere to the instructions in the prompt? This is critical given the training data.
- Truthfulness/Hallucination: Does the model generate factually correct information? Magpie-Pro's filtering should help, but it's still important to check.
- Reasoning: Can the model perform multi-step reasoning to arrive at the correct answer?
- Knowledge: Does the model have a broad base of general knowledge?
- Common Sense: Can the model apply common sense to solve problems?
- Summarization: Can the model condense information accurately and coherently?
- Question Answering: Can the model answer questions accurately, given a context or its own knowledge?
Task Categories & Recommendations
I'll categorize tasks and then give you several lists. I'll also indicate the approximate time to run each task (using a reasonably powerful GPU - this is very approximate and depends on model size and batch size). Times are based on typical lm-eval-harness runs.
- Core Reasoning & Knowledge (Essential): These are the must-haves.
- Truthfulness & Factuality (Important): Critical to assess.
- Reading Comprehension & QA (Important): Tests understanding.
- Summarization (Good to Have): Tests ability to condense information.
- Code Generation (Optional): If you want to see if the model picked up any coding ability.
- Commonsense Reasoning (Optional): Good for a more complete picture.
- Math (Optional): If you want to specifically test math skills.
Suggested Task Lists
Here are several lists, with explanations. I'll give estimated runtimes. I'm assuming you'll use the default lm-eval-harness settings for each task.
1. Broad Evaluation (Comprehensive - ~4-8 hours)
This is a good starting point to get a general sense of your model's capabilities.
tasks = "truthfulqa_gen,gsm8k,nq_open,triviaqa,cnn_dailymail,xsum,arc_challenge,hellaswag,mmlu,ai2_reasoning_challenge"
- truthfulqa_gen: Tests truthfulness and avoiding misinformation. (30 mins)
- gsm8k: Grade school math problems. Tests reasoning and math. (1 hour)
- nq_open: Open-domain question answering. Tests knowledge and QA. (1 hour)
- triviaqa: Trivia question answering. Tests knowledge. (30 mins)
- cnn_dailymail: Summarization. (1 hour)
- xsum: Abstractive summarization. (1 hour)
- arc_challenge: Science question answering, requires reasoning. (30 mins)
- hellaswag: Commonsense reasoning. (30 mins)
- mmlu: Massive Multitask Language Understanding - a broad range of subjects. (1-2 hours)
- ai2_reasoning_challenge: Tests reasoning ability. (30 mins)
2. Focused on Instruction Following & Reasoning (~3-6 hours)
This list prioritizes tasks that directly assess how well the model follows instructions and reasons.
tasks = "truthfulqa_gen,gsm8k,ai2_reasoning_challenge,arc_challenge,openbookqa,strategyqa"
- truthfulqa_gen: (30 mins)
- gsm8k: (1 hour)
- ai2_reasoning_challenge: (30 mins)
- arc_challenge: (30 mins)
- openbookqa: Requires reasoning with external knowledge. (30 mins)
- strategyqa: Multi-hop reasoning, requires understanding a context. (1-2 hours)
3. Truthfulness & Knowledge Focused (~2-4 hours)
If you're particularly concerned about hallucinations, this is a good choice.
tasks = "truthfulqa_gen,nq_open,triviaqa,webquestions,natural_questions"
- truthfulqa_gen: (30 mins)
- nq_open: (1 hour)
- triviaqa: (30 mins)
- webquestions: (30 mins)
- natural_questions: (1 hour)
4. Minimalist Evaluation (~1-2 hours)
If you're short on time, this gives you a quick overview.
tasks = "truthfulqa_gen,gsm8k,mmlu"
- truthfulqa_gen: (30 mins)
- gsm8k: (1 hour)
- mmlu: (30 mins - 1 hour)
Important Considerations & Tips
lm-eval-harness Configuration: Pay attention to the lm-eval-harness configuration. You'll need to specify the correct model path, and you might want to adjust the batch size and other parameters to optimize performance.
- Generation Parameters: The generation parameters (temperature, top_p, etc.) can significantly affect the results. Use consistent generation parameters across all tasks. A good starting point is
temperature=0.7, top_p=0.95.
- Metrics: Understand the metrics being used for each task. Accuracy is common, but some tasks use different metrics (e.g., ROUGE for summarization).
- Multiple Runs: Run the evaluation multiple times (e.g., 3-5 times) and average the results to get a more reliable estimate of performance.
- Error Analysis: Don't just look at the overall scores. Examine the specific examples where the model fails to understand why it's failing. This will give you valuable insights for further training.
- Prompt Engineering: The prompts used by
lm-eval-harness are generally good, but you might experiment with slightly different prompts to see if you can improve performance.
To help me refine the recommendations further, could you tell me:
- What is the size of your model? (e.g., 7B, 13B, 70B parameters)
- What hardware are you using for evaluation? (e.g., single GPU, multiple GPUs)
- Are you more concerned about truthfulness, reasoning, or instruction following? (Rank them if possible)
- Do you have any specific use cases in mind for this model? (e.g., chatbot, code generation, research assistant)
I hope this detailed response helps you choose the right tasks for evaluating your model! Let me know if you have any other questions.