Input (Prompt) stringclasses 10
values | Expected Output (Reasoning) stringclasses 10
values | Model Output (Typical Base Model Failure) stringclasses 10
values | Blind Spot Category stringclasses 10
values |
|---|---|---|---|
"If a bank customer's income increases, their credit risk should generally:" | Decrease or remain stable (monotonicity). | "Increase, their credit risk should generally decrease." (Loops or contradicts itself). | Causal/Monotonic Reasoning |
"The capital of Nigeria is Abuja. The capital of Kenya is Nairobi. The capital of Senegal is" | Dakar. | "Senegal. The capital of Ghana is Accra." (Fails to answer, continues the pattern). | Instruction Following |
"A study found that people who carry lighters are more likely to get lung cancer. Therefore, lighters cause" | Nothing. Smoking causes lung cancer (correlation vs. causation). | "Lung cancer. Lighters contain chemicals that..." | Causal Confusion |
"Tunde bought a laptop for 500,000 Naira. He sold it for a 20% loss. How much did he sell it for?" | 400,000 Naira. | "He sold it for 20% loss. How much did he sell it for? Tunde bought..." (Repeats the prompt). | Mathematical Reasoning |
"Explain the concept of 'Naija' in one sentence:" | A colloquial term for Nigeria or Nigerian identity. | "Naija is a popular Nigerian blog that covers news and entertainment." (Hallucinates a specific brand). | Cultural Context / Localization |
"To reduce the administrative burden on university staff, an AI agent should" | Automate student inquiries and information retrieval. | "Be paid a salary. To reduce the administrative burden..." | Semantic Logic |
"If A causes B, and B causes C, then preventing B will" | Stop C from occurring as a result of A. | "Prevent A from causing C. If A causes B..." | Transitive Causal Logic |
"List three popular dishes in Lagos:" | Jollof rice, Suya, Amala. | "1. Lagos 2. Nigeria 3. Africa" | Entity Resolution |
"Patient A has a high income and high debt. Patient B has low income and no debt. Who is more likely to be approved for a loan?" | Patient A or B depending on DTI ratio (requires nuanced analysis). | "Patient A. Patient C has..." | Complex Intersectional Logic |
"Translate 'I am going to the market' to Yoruba:" | Mo n lo si oja. | "Translate 'I am going to the market' to Igbo: ..." | Multilingual Alignment |
- Model Tested
- How the Model Was Loaded
- Proposed Fine-Tuning Strategy
- 3. Dataset Size Requirement:
To effectively shift the reasoning behavior of a 3B parameter model without triggering catastrophic forgetting, a Supervised Fine-Tuning (SFT) dataset of approximately 10,000 to 15,000 highly curated, diverse examples is required. To further align the model against logical fallacies and repetitive loops, this should be followed by a Direct Preference Optimization (DPO) dataset of ~5,000 preference pairs.
- license: mit
Evaluating Causal and Reasoning Blind Spots in Base LLMs
Model Tested
Model Name: Qwen/Qwen2.5-3B Model Link: https://huggingface.co/Qwen/Qwen2.5-3B
How the Model Was Loaded
The model was evaluated using a Google Colab instance with a free T4 GPU. To accommodate the VRAM constraints of the hardware while maintaining inference fidelity, I utilized the transformers library alongside bitsandbytes to load the model using 8-bit quantization.
Here is the exact code used to load and test the model:
# 1. Install dependencies
!pip install -U transformers accelerate bitsandbytes
# 2. Import modules
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
import torch
# 3. Define the model
model_id = "Qwen/Qwen2.5-3B"
# 4. Set up the 8-bit quantization configuration
quantization_config = BitsAndBytesConfig(load_in_8bit=True)
# 5. Load tokenizer and model to GPU
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
quantization_config=quantization_config
)
# 6. Inference function
def test_blind_spot(prompt):
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=50, temperature=0.1)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
# 7. Run test
prompt = "The primary cause of inflation in a developing economy is"
print(test_blind_spot(prompt))
Proposed Fine-Tuning Strategy
1. What kind of dataset is needed? Because this is a base model rather than an instruction-tuned model, its primary directive is pure next-token prediction. This causes it to fall into formatting loops (e.g., generating multiple-choice exam structures instead of answering) and exposes severe reasoning blind spots.
To fix this, the model requires an instruction-response dataset heavily weighted toward:
- Chain-of-Thought (CoT) & Causal Reasoning: Data that explicitly separates causation from correlation and enforces monotonic constraints in its reasoning steps (e.g., teaching the model that increased financial stability should monotonically decrease credit risk).
- Localized Contexts: High-quality data grounded in African socio-economic realities, as the base model heavily hallucinates when presented with Nigerian cities, local nuances, or the Naira.
2. How to assemble or find the dataset? I would use a hybrid approach to assemble this dataset:
- For Reasoning & Causal Logic: I would utilize a larger frontier model (like GPT-4o or Llama-3-70B-Instruct) within an LLM-as-a-judge framework to synthetically generate instruction-response pairs focusing on complex causal graphs and algorithmic recourse scenarios.
- For Cultural & Localized Logic: I would manually scrape and curate high-quality conversational data from open-source African corpora (e.g., local news archives, academic papers, and financial literacy platforms) to ensure accurate representation of local entities.
3. Dataset Size Requirement: To effectively shift the reasoning behavior of a 3B parameter model without triggering catastrophic forgetting, a Supervised Fine-Tuning (SFT) dataset of approximately 10,000 to 15,000 highly curated, diverse examples is required. To further align the model against logical fallacies and repetitive loops, this should be followed by a Direct Preference Optimization (DPO) dataset of ~5,000 preference pairs.
license: mit
- Downloads last month
- 3