A repository storing the codebase for SYNTH-L.
I acknowledge the use of OpenAI’s ChatGPT (Basic version) for occasional assistance in refining the syntactical structure and phrasing of the code. All core algorithmic design, implementation, and conceptual development were performed independently by me; ChatGPT’s role was limited to code polishing.
All experiments were carried out on the Princeton Della high-performance computing cluster. Due to the extensive size of the model repository (over 900 GB encompassing 130 distinct fine-tuned models) individual weight files and detailed configuration information are available upon request. Please contact hang.pham@princeton.edu to obtain access.
generate_var_1.py: Variant 1 (back-translation baseline)generate_var_2_3.py: Variants 2 & 3 (zero-shot LLM generation + label verification)generate_var_4.py: Variant 4 (in-language LLM generation)generate_var_5_6.py: Variants 5 & 6 (LLM + lexicon or MT, no QA or CoT)generate_var_7_8.py: Variants 7 & 8 (add QA filter)generate_var_9_10.py: Variants 9 & 10 (add CoT prompting)generate_var_11_12.py: Variants 11 & 12 (full Lex/MT + QA + CoT)filter_achenese.py: quality assurance via psuedo-perplexity for examples in Achenesetranslate_eng_lex.py: lexicon-based English→Acehnese substitutiontranslate_eng_mt.py: machine translation English→Acehnese via Google Translatetranslate_var_4.py: back-translate variant 4 outputs to English for verificationmerge_files.py: merge generated data files into a single fileextract_tir_passage.py: translate SQuAD passages to Tigrinya for QA seedingfilter_tigrinya.py: quality assurance for QA examples in Tigrinyagenerate_var_1.py … generate_var_11_12.py: same variant numbering as above, adapted for QAtranslate_eng_lex.py: lexicon-based English→Tigrinyatranslate_eng_mt.py: machine translation English→Tigrinyatranslate_var_4.py: back-translate variant 4 QA examplespassage_tir.jsonl / passage_tir.fixed.jsonl: raw and cleaned passages for promptingintrinsics_sentiment.py: compute and aggregate statistics per variantfinal_stats.csv: consolidated intrinsic metricsfinal_stats_variant_1.csv … final_stats_variant_12.csv: intrinsic metrics per variantintrinsics_question_answering.py: compute and aggregate statistics per variantfinal_stats.csv: consolidated intrinsic metricsfinal_stats_variant_1.csv … final_stats_variant_12.csv: intrinsic metrics per variantgeneral_stats.py: compute overall model performance stats and plotsoverall_metrics.csv: aggregated metrics per variant and experimentperclass_metrics.csv: per-class performance metricspaper_data.py: code to generate graphs for the paperplots/: exploratory visualsplots_by_variant/: metrics plots organized by variantplots_by_class/: per-class heatmapsplots_by_cm/: confusion matrix visualizationsreports/: summary tables and logsgeneral_stats.py: compute overall model performance stats and plotsoverall_metrics.csv: aggregated metrics per variant and experimentperclass_metrics.csv: per-class performance metricspaper_data.py: code to generate graphs for the paperplots/: exploratory visualsplots_by_variant/: metrics plots organized by variantplots_by_class/: per-class heatmapsplots_by_cm/: confusion matrix visualizationsreports/: summary tables and logsachinese_sentiment_analysis.py: sentiment analysis fine-tuning / downstream tasktirginya_question_answering.py: QA fine-tuning / downstream taskresults/: files containing results per variant & regime combinationplots/: files containing exploratory plots per variant & regime combinationPlease refer to the paper for full methodological details, hyperparameters, and evaluation results.
23 commits
Python
98.2%
Shell
1.8%
A repository storing the codebase for SYNTH-L.
I acknowledge the use of OpenAI’s ChatGPT (Basic version) for occasional assistance in refining the syntactical structure and phrasing of the code. All core algorithmic design, implementation, and conceptual development were performed independently by me; ChatGPT’s role was limited to code polishing.
All experiments were carried out on the Princeton Della high-performance computing cluster. Due to the extensive size of the model repository (over 900 GB encompassing 130 distinct fine-tuned models) individual weight files and detailed configuration information are available upon request. Please contact hang.pham@princeton.edu to obtain access.
generate_var_1.py: Variant 1 (back-translation baseline)generate_var_2_3.py: Variants 2 & 3 (zero-shot LLM generation + label verification)generate_var_4.py: Variant 4 (in-language LLM generation)generate_var_5_6.py: Variants 5 & 6 (LLM + lexicon or MT, no QA or CoT)generate_var_7_8.py: Variants 7 & 8 (add QA filter)generate_var_9_10.py: Variants 9 & 10 (add CoT prompting)generate_var_11_12.py: Variants 11 & 12 (full Lex/MT + QA + CoT)filter_achenese.py: quality assurance via psuedo-perplexity for examples in Achenesetranslate_eng_lex.py: lexicon-based English→Acehnese substitutiontranslate_eng_mt.py: machine translation English→Acehnese via Google Translatetranslate_var_4.py: back-translate variant 4 outputs to English for verificationmerge_files.py: merge generated data files into a single fileextract_tir_passage.py: translate SQuAD passages to Tigrinya for QA seedingfilter_tigrinya.py: quality assurance for QA examples in Tigrinyagenerate_var_1.py … generate_var_11_12.py: same variant numbering as above, adapted for QAtranslate_eng_lex.py: lexicon-based English→Tigrinyatranslate_eng_mt.py: machine translation English→Tigrinyatranslate_var_4.py: back-translate variant 4 QA examplespassage_tir.jsonl / passage_tir.fixed.jsonl: raw and cleaned passages for promptingintrinsics_sentiment.py: compute and aggregate statistics per variantfinal_stats.csv: consolidated intrinsic metricsfinal_stats_variant_1.csv … final_stats_variant_12.csv: intrinsic metrics per variantintrinsics_question_answering.py: compute and aggregate statistics per variantfinal_stats.csv: consolidated intrinsic metricsfinal_stats_variant_1.csv … final_stats_variant_12.csv: intrinsic metrics per variantgeneral_stats.py: compute overall model performance stats and plotsoverall_metrics.csv: aggregated metrics per variant and experimentperclass_metrics.csv: per-class performance metricspaper_data.py: code to generate graphs for the paperplots/: exploratory visualsplots_by_variant/: metrics plots organized by variantplots_by_class/: per-class heatmapsplots_by_cm/: confusion matrix visualizationsreports/: summary tables and logsgeneral_stats.py: compute overall model performance stats and plotsoverall_metrics.csv: aggregated metrics per variant and experimentperclass_metrics.csv: per-class performance metricspaper_data.py: code to generate graphs for the paperplots/: exploratory visualsplots_by_variant/: metrics plots organized by variantplots_by_class/: per-class heatmapsplots_by_cm/: confusion matrix visualizationsreports/: summary tables and logsachinese_sentiment_analysis.py: sentiment analysis fine-tuning / downstream tasktirginya_question_answering.py: QA fine-tuning / downstream taskresults/: files containing results per variant & regime combinationplots/: files containing exploratory plots per variant & regime combinationPlease refer to the paper for full methodological details, hyperparameters, and evaluation results.
23 commits
Python
98.2%
Shell
1.8%