Skip to content

JHU-CLSP/translation-barrier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This repo contains the code our paper: The Translation Trap Hypothesis: Multilingual Generation with Large Language Models Suffers from Implicit Translation Failure (arXiv coming soon!)

Getting started

See:

  • scripts/get_intermediate_generations.py : Generating full sequences from intermediate layers with logit lens and greedy decoding.
  • scripts/characterizing_intermediate_generations.py : Extracting relevant information such as accuracy and language of generations at various layers.
  • scripts/analysis/overview_analysis.py : Calculating TLP and other quantities of interest.
  • experiments : Example shell scripts for generation and analysis with two models.

If you use our code, please cite:

TODO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.7%
  • Shell 11.3%