Initial Inference
Performed inference on the GSM8K train dataset using the run_GSM8K_zeroshot_CoT.py script and saved the outputs.
Latent Extraction from Incorrect Samples
Extracted the final hidden (latent) vector of each incorrectly answered question using the extract_failure_latent.ipynb notebook.
Generated revised prompts for those failure cases using GPT-o3.
Latent-Guided Prompt Injection
In the run_GSM8K_LFF.py script, each test question's latent vector was compared with the failure latent vectors using cosine similarity (threshold = 0.5).
test_revision_list.txt.17 commits
Jupyter Notebook
86.7%
Python
13.3%
Initial Inference
Performed inference on the GSM8K train dataset using the run_GSM8K_zeroshot_CoT.py script and saved the outputs.
Latent Extraction from Incorrect Samples
Extracted the final hidden (latent) vector of each incorrectly answered question using the extract_failure_latent.ipynb notebook.
Generated revised prompts for those failure cases using GPT-o3.
Latent-Guided Prompt Injection
In the run_GSM8K_LFF.py script, each test question's latent vector was compared with the failure latent vectors using cosine similarity (threshold = 0.5).
test_revision_list.txt.17 commits
Jupyter Notebook
86.7%
Python
13.3%