Papers & web blogsTranslated just right,organized just right.

No credit card required — free forever on the Free plan

Direct Preference Optimization: Your Language Model is Secretly a Reward Model

4 直接選好最適化(DPO)

これで人間の選好データの確率を、報酬モデルではなく最適方策で表せた。したがって、パラメータ化された方策 πθ\pi_\theta に対する最尤推定の目的関数を定式化できる。報酬モデリング(式 (2))と同様に、方策の目的関数は次のようになる。

LDPO(πθ;πref)=−E(x,yw,yl)∼D[log⁡σ(βlog⁡πθ(yw∣x)πref(yw∣x)−βlog⁡πθ(yl∣x)πref(yl∣x))]\mathcal{L}_{\text{DPO}}(\pi_\theta; \pi_{\text{ref}}) = -\mathbb{E}_{(x, y_w, y_l) \sim \mathcal{D}} \left[ \log \sigma \left( \beta \log \frac{\pi_\theta(y_w \mid x)}{\pi_{\text{ref}}(y_w \mid x)} - \beta \log \frac{\pi_\theta(y_l \mid x)}{\pi_{\text{ref}}(y_l \mid x)} \right) \right]

LDPO(πθ;πref)=−E(x,yw,yl)∼D[log⁡σ(βlog⁡πθ(yw∣x)πref(yw∣x)−βlog⁡πθ(yl∣x)πref(yl∣x))]\begin{aligned} &\mathcal{L}_{\text{DPO}}(\pi_\theta; \pi_{\text{ref}}) = -\mathbb{E}_{(x, y_w, y_l) \sim \mathcal{D}} \Bigl[ \log \sigma \Bigl( \\ &\quad \beta \log \frac{\pi_\theta(y_w \mid x)}{\pi_{\text{ref}}(y_w \mid x)} - \beta \log \frac{\pi_\theta(y_l \mid x)}{\pi_{\text{ref}}(y_l \mid x)} \Bigr) \Bigr] \end{aligned}

このように、別のパラメータ化によって暗黙的な報酬を当てはめる。その最適方策は単に πθ\pi_\theta である。さらにこの手順は再パラメータ化した Bradley-Terry モデルの当てはめと等価なので、選好データの分布に関する適切な仮定のもとでの一致性など、一定の理論的性質をもつ [4]。

Switch between original, translation and PDF without losing your place.

Example: Rafailov et al., NeurIPS 2023 (arXiv:2305.18290), CC BY 4.0. The translation shown is an illustrative sample.

Quality

Equations, figures, citations.
Translated without breaking.

Translate only the text pulled out of a PDF and equations fall apart, log gets translated as a word, and sentences break mid-line. Re:Babel's AI reads the whole page, keeps equations as equations, and translates with the context of the chapter.

Text-extraction translation (example)

L DPO(π θ;π ref)= − E(x、y w、y l)∼ D ログ σ β ログ π θ(y w | x)π ref(y w | x)− β ログ π θ(y l | x)π ref(y l | x)(7)

Fractions and subscripts scattered“log” translated as a word
Re:Babel

LDPO(πθ;πref)=−E(x,yw,yl)∼D[log⁡σ(βlog⁡πθ(yw∣x)πref(yw∣x)−βlog⁡πθ(yl∣x)πref(yl∣x))]\mathcal{L}_{\text{DPO}}(\pi_\theta; \pi_{\text{ref}}) = -\mathbb{E}_{(x, y_w, y_l) \sim \mathcal{D}} \left[ \log \sigma \left( \beta \log \frac{\pi_\theta(y_w \mid x)}{\pi_{\text{ref}}(y_w \mid x)} - \beta \log \frac{\pi_\theta(y_l \mid x)}{\pi_{\text{ref}}(y_l \mid x)} \right) \right]

LDPO(πθ;πref)=−E(x,yw,yl)∼D[log⁡σ(βlog⁡πθ(yw∣x)πref(yw∣x)−βlog⁡πθ(yl∣x)πref(yl∣x))]\begin{aligned} &\mathcal{L}_{\text{DPO}}(\pi_\theta; \pi_{\text{ref}}) = -\mathbb{E}_{(x, y_w, y_l) \sim \mathcal{D}} \Bigl[ \log \sigma \Bigl( \\ &\quad \beta \log \frac{\pi_\theta(y_w \mid x)}{\pi_{\text{ref}}(y_w \mid x)} - \beta \log \frac{\pi_\theta(y_l \mid x)}{\pi_{\text{ref}}(y_l \mid x)} \Bigr) \Bigr] \end{aligned}

Equations stay equationsField-specific terminology

Library

Collect to read,
translate to read.

Drop any paper that catches your eye into your library, and translate it when you decide to read it. Titles, authors and venues are filled in automatically.

01

Collect

Drop a PDF, paste a web page URL, or import Markdown. Metadata is filled in automatically from the DOI or arXiv ID.

02

Organize

Filter by tag, collection and venue. Your reading status is tracked, so you can pick up a paper where you left off.

03

Cite

Copy BibTeX or RIS in one click, or export a whole collection as a .bib file.

Reading

Spend your reading time reading.

Check citations in place

From the [4] in the text to authors, venue, PDF, DOI and BibTeX — without leaving the page.

Highlights and notes

Highlight in four colors and add notes, on the original or the translation. They carry over into exported Markdown.

Consistent terms with a glossary

Register the terms of your field and every later translation uses them consistently. Bulk import from CSV, too.

Raise the quality, translate again

A re-translation is added as a new version, and earlier versions stay readable.

Plans

Start for free. Upgrade anytime you need more.

Free
¥0 / month
  • 20 papers / month
  • 180 PDF page credits / month (about 45 pages of OCR + Standard Grade translation)
  • 300 web page credits / month
  • 300 Markdown page credits / month
  • Basic and Standard Grade quality
  • Translations viewable for 30 days after creation
Start for Free
PlusRecommended
¥500 / month
  • 200 papers / month
  • 1,500 PDF page credits / month (about 375 pages of OCR + Standard Grade translation)
  • 1,500 web page credits / month
  • 1,500 Markdown page credits / month
  • Downloads and exports (translated, source and bilingual Markdown, original file, BibTeX/RIS, print)
  • Translations viewable with no time limit
Start Plus
Pro
¥3,000 / month
  • 2,000 papers / month
  • 9,000 PDF page credits / month (about 2,250 pages of OCR + Standard Grade translation)
  • 9,000 web page credits / month
  • 9,000 Markdown page credits / month
  • High-Accuracy Grade quality
  • Downloads and exports (translated, source and bilingual Markdown, original file, BibTeX/RIS, print)
  • Translations viewable with no time limit
Start Pro

Prices include tax. Credits are used by OCR and translation, according to the number of pages.

Frequently Asked Questions

Can I use it for free?

Yes. The Free plan requires no credit card and is free forever. You can try OCR and translation within your monthly page credits.

What kinds of documents are supported?

You can upload PDFs, add web pages by URL, and import Markdown files or text. It's well suited for papers, technical documents, blog posts, and more.

How good is the translation quality?

Translations use the latest LLMs, applying chapter-level context, your glossary, and translation memory. Choose the quality that fits your needs: Basic Grade / Standard Grade (and High-Accuracy Grade on Pro).

Can I change or cancel my plan?

Anytime. Payments are securely processed by Stripe, and you can change or cancel your plan from the in-app plan screen.

The papers piling up —
start reading them today.

Sign up with Google, GitHub or email in seconds.

Start for Free