Skip to content
 
 

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

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages