qwen3-blindspots / ReadMe.md
salimcodes's picture
Update ReadMe.md
1c96be8 verified
|
Raw History Blame Contribute Delete
6.83 kB
# Qwen3.5-0.8B Blind Spots Dataset
This dataset documents reasoning failures and blind spots of the base model
**Qwen3.5-0.8B-Base**.
The dataset contains **30 evaluation prompts** across multiple reasoning domains.
For each prompt we record:
- **input** – the question asked to the model
- **expected_output** – the correct answer
- **model_output** – the model’s generated answer
- **category** – reasoning type being tested
Dataset link:
https://huggingface.co/datasets/salimcodes/qwen3-blindspots
---
# Model Tested
Model tested:
**Qwen/Qwen3.5-0.8B-Base**
Key properties:
- Parameters: **0.8B**
- Architecture: causal language model
- Context length: **262k tokens**
- Intended usage: **pretrained base model for research and fine-tuning**
Because this is a **base model (not instruction-tuned)**, it is expected to exhibit weaknesses in structured reasoning tasks.
---
# How the Model Was Loaded
The model was evaluated in **Google Colab** using the Hugging Face Transformers library.
### Installation
```python
!pip install -U transformers accelerate datasets huggingface_hub
!pip install git+https://github.com/huggingface/transformers.git
### Loading the Model
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "Qwen/Qwen3.5-0.8B-Base"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto"
)
### Inference Function
```python
def ask_model(prompt):
inputs = tokenizer(
prompt,
return_tensors="pt"
).to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=12,
temperature=0.0,
do_sample=False
)
response = tokenizer.decode(
outputs[0][inputs["input_ids"].shape[-1]:],
skip_special_tokens=True
)
return response.strip().split("\n")[0]
Prompts were structured in a Question–Answer format to reduce long continuations:
```
Question: ...
Answer:
### Observed Blind Spots
The experiments reveal several systematic weaknesses in the model.
1. Arithmetic Reasoning
Example:
Input
Question: What is (47 × 18) − 123?
Answer:
Expected Output
723
Model Output
101
The model struggles with multi-step arithmetic calculations.
2. Multi-Step Reasoning
Example:
Input
Question: If 3 workers take 6 hours to finish a job, how long would it take 6 workers?
Answer:
Expected Output
3 hours
Model Output
1 hour
The model fails when tracking proportional relationships across multiple variables.
3. Logical Quantifiers
Example:
Question: All roses are flowers. Some flowers fade quickly. Does it follow that some roses fade quickly?
Answer:
Expected Output
Not necessarily
Model Output
Yes
This indicates difficulty with formal logical reasoning and quantifiers.
4. Temporal Reasoning
Example:
Question: If today is Wednesday, what day will it be in 10 days?
Answer:
Expected Output
Saturday
Model Output
Thursday
The model struggles with calendar and time calculations.
5. Counterfactual Reasoning
Example:
Question: If cars had square wheels instead of round ones, would driving be smoother or rougher?
Answer:
Expected Output
Rougher
Model Output
Smoother
This shows weaknesses in physical reasoning and counterfactual thinking.
6. Ambiguity Resolution
Example:
Question: The trophy didn’t fit in the suitcase because it was too small. What was too small?
Answer:
Expected Output
The suitcase
Model Output
The trophy
The model struggles with coreference resolution and ambiguous pronouns.
7. Spatial Reasoning
Example:
Question: If I face north, turn left, then turn right, which direction am I facing?
Answer:
Expected Output
North
Model Output
South
This suggests difficulty with mental direction tracking.
8. Algorithmic Reasoning
Example:
Question: If a pattern doubles each step starting from 3 (3,6,12...), what is the fifth number?
Answer:
Expected Output
48
Model Output
32
The model struggles with rule-based sequence reasoning.
9. Knowledge + Reasoning
Example:
Question: Which is heavier: 1 kilogram of iron or 1 kilogram of cotton?
Answer:
Expected Output
They weigh the same
Model Output
1 kilogram of iron is heavier
The model falls into common reasoning traps.
10. Hallucination
Example:
Question: Who invented the internet in the year 1200?
Answer:
Expected Output
No one
Model Output
William Shakespeare
The model confidently produces incorrect fabricated information.
Why These Errors Occur
These blind spots likely arise because small base models lack:
chain-of-thought training
explicit reasoning supervision
instruction tuning
structured reasoning datasets
Instead, they rely primarily on statistical language patterns rather than explicit symbolic reasoning.
How the Model Could Be Improved
The model could be improved by fine-tuning on datasets specifically designed to teach structured reasoning.
Examples include:
- Mathematical Reasoning
- GSM8K
- MathQA
- Logical Reasoning
- BIG-Bench reasoning tasks
- Natural Language Inference datasets
- Commonsense Reasoning
- CommonsenseQA
- Winograd Schema Challenge
- Temporal and Spatial Reasoning
Synthetic datasets could be generated for:
- time calculations
- directional reasoning
- sequence reasoning
- logical syllogisms
How Such a Dataset Could Be Assembled
1. Synthetic Data Generation
Programmatically generate reasoning tasks such as:
- arithmetic expressions
- time calculations
- direction tracking
- logical inference
This allows creation of large balanced training datasets.
2. Existing Benchmarks
Examples:
- GSM8K
- BIG-Bench
- CommonsenseQA
- Winograd Schema Challenge
These provide high-quality curated reasoning tasks.
3. Human-Curated Examples
Human-written examples can improve:
- ambiguity resolution
- commonsense reasoning
- counterfactual reasoning
Estimated Dataset Size Needed
For a 0.8B parameter model, meaningful improvements would likely require:
Dataset Type - Estimated Size
Arithmetic reasoning - 50k–100k examples
Logical reasoning - 30k–80k examples
Commonsense reasoning - 20k–50k examples
#### Estimated total dataset size:
100k–300k examples
This scale is typically sufficient for LoRA or PEFT fine-tuning.
#### Dataset Summary
Number of examples: 30
Categories included:
- arithmetic
- multi_step_reasoning
- logical_reasoning
- temporal_reasoning
- counterfactual_reasoning
- ambiguity_resolution
- spatial_reasoning
- algorithmic_reasoning
- knowledge_reasoning
- hallucination
The dataset provides a diverse set of prompts revealing blind spots in a small frontier language model, and can serve as a starting point for further evaluation and fine-tuning research.