Reverse Modeling in Large Language Models

Sicheng Yu, Yuanchen Xu, Cunxiao Du, Yanying Zhou, Minghui Qiu +3 more
10/13/2024
cs.CL

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Humans are accustomed to reading and writing in a forward manner, and this natural bias extends to text understanding in auto-regressive large language models (LLMs). This paper investigates whether LLMs, like humans, struggle with reverse modeling, specifically with reversed text inputs. We found that publicly available pre-trained LLMs cannot understand such inputs. However, LLMs trained from scratch with both forward and reverse texts can understand them equally well during inference across multiple languages. Our case study shows that different-content texts result in different losses if input (to LLMs) in different directions -- some get lower losses for forward while some for reverse. This leads us to a simple and nice solution for data selection based on the loss differences between forward and reverse directions. Using our selected data in continued pretraining can boost LLMs' performance by a large margin across different language understanding benchmarks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{yu2024reverse,
  title  = {Reverse Modeling in Large Language Models},
  author = {Sicheng Yu and Yuanchen Xu and Cunxiao Du and Yanying Zhou and Minghui Qiu and Qianru Sun and Hao Zhang and Jiawei Wu},
  year   = {2024},
  eprint = {2410.09817},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.09817v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.09817.svg)](https://codeofpaper.com/paper/2410.09817)

Discussion