A blue-haired plush toy in front of the sea at sunset: Jiarui's avatar

Jiarui Liu

/t͡ɕja˥ ɻweɪ˥˩/  /ljoʊ˧˥/

Computer Science PhD student · University of Illinois Urbana-Champaign

Natural language processing · Information retrieval · Linguistics

About me

Hi! I'm a Computer Science PhD student at the University of Illinois Urbana-Champaign. I study how machines understand language: natural language processing, information retrieval, and the linguistics underneath.

Before UIUC I spent six years at UMass Amherst (BS in Computer Science & Mathematics, then an accelerated MS), where I wrote my honors thesis on literary machine translation with Mohit Iyyer in the UMass NLP group. When I'm not chasing models, you'll find me out by the water at sunset.

Research interests

  • Natural language processing: getting large language models to stay consistent over long, literary text [honors thesis]
  • Information retrieval: retrieval-augmented generation and retrieval-guided models [thesis, font generation]
  • Linguistics: semantics, syntax and formal language theory, and what they can tell us about models

News

the trail log

Research

what I've been exploring

Manuscripts and theses so far. * denotes equal contribution.

Content glyph, style glyph and generated glyph for a Chinese and a Japanese character

One-Shot Multilingual Font Generation via ViT

Jiarui Liu*, Zhiheng Wang*

Manuscript · UMass Amherst · Dec 2024

A bi-encoder Vision Transformer, pretrained with masked autoencoding and guided by retrieved style references, that generates glyphs for unseen fonts and even made-up characters across CJK and alphabetic scripts, from a single style example.

Abstract

Font design poses unique challenges for logographic languages like Chinese, Japanese, and Korean (CJK), where thousands of unique characters must be individually crafted. This paper introduces a novel Vision Transformer (ViT)-based model for multi-language font generation, effectively addressing the complexities of both logographic and alphabetic scripts. By leveraging ViT and pretraining with a strong visual pretext task (Masked Autoencoding, MAE), our model eliminates the need for complex design components in prior frameworks while achieving comprehensive results with enhanced generalizability. Remarkably, it can generate high-quality fonts across multiple languages for unseen, unknown, and even user-crafted characters. Additionally, we integrate a Retrieval-Augmented Guidance (RAG) module to dynamically retrieve and adapt style references, improving scalability and real-world applicability. We evaluated our approach in various font generation tasks, demonstrating its effectiveness, adaptability, and scalability.

  • Vision Transformer
  • Font generation
  • Retrieval
Flowchart of the translation pipeline: named entities are recognised, translated into a term table, then retrieved and inserted into the LLM prompt for each text chunk

Translating Literature with LLMs: Maintaining Consistency on Named Entities and Integrating External Knowledge

Jiarui Liu · advised by Mohit Iyyer and Marzena Karpinska

Undergraduate honors thesis · UMass NLP, UMass Amherst · May 2024

A literary translation pipeline that keeps character names and proper nouns consistent across a whole book by retrieving a termbase into the prompt, improving terminology consistency by 48.6%.

Abstract

In literary translation, the accurate and consistent translation of named entities, such as character names and significant proper nouns, is essential. Recent advancements in Large Language Models (LLMs) have shown promise in translation tasks; however, they often struggle to maintain consistency over long texts due to limitations in context windows and computational budgets. This study introduces an efficient approach that combines the advanced capabilities of LLMs with human translation practices using In-Context Learning (ICL) and Retrieval-Augmented Generation (RAG). We integrate a termbase, pre-editing methods, and external knowledge sources such as Wikipedia into LLMs, and our findings demonstrate that this hybrid method significantly improves both the consistency of named entities and the overall quality of translation, offering a practical solution for literary machine translation.

  • Large language models
  • Machine translation
  • RAG

PEGembed: Lay Summarization for Biomedical Scientific Journals

Jiarui Liu*, Ahmed Jaafar*, Zhiheng Wang*, Jordan Perry-Greene*

Course project, Advanced NLP · UMass Amherst · May 2023

An extract-then-abstract system that rewrites dense biomedical papers in plain language: sentence-embedding top-k extraction feeds a fine-tuned PEGASUS-X, trained and evaluated on the eLife corpus.

  • Summarization
  • Biomedical NLP

Experience

gear I've carried

Research Intern · Chivox

  • Built the first context-aware Chinese synonym dataset.
  • Designed a lightweight, context-aware BERT-based model for Chinese synonym substitution.
  • Resolved the polysemy and out-of-vocabulary issues of the earlier dictionary-based method, matching GPT-3-level performance in production.

Independent Study: Formal Verification · UMass Amherst

  • Studied theorem proving and interactive theorem provers for the mechanical construction of formal proofs.
  • Formalized and verified the pumping lemma for regular languages in Coq.

Quality Assurance Intern · Baidu

  • Tested the PHP and Go server modules of a live-streaming system: analysed requirements, planned test cases and reported results.
  • Shipped three server-side and one client-side release requirement in an Agile/DevOps team, and independently tested the Windows Live Broadcast Assistant.
  • Configured and deployed the test environment for the live-streaming server.

Education

the trail so far
  1. PhD, Computer Science

    Natural language processing

  2. MS, Computer Science (accelerated 4+1)

    Bay State Fellowship

  3. BS, Computer Science & Mathematics

    GPA 3.97 / 4.0 · Departmental honors · Honors thesis with Mohit Iyyer

    Coursework highlights: Semantics, Introduction to Transformational Grammar, Formal Language Theory, Real Analysis.

More

odds and ends by the fire

Teaching

  • Teaching Assistant, CICS 210 Data Structures, UMass Amherst · Fall 2024

Honors & awards

  • Bay State Fellowship · 2024
  • Dean's List · 2019 – 2024
  • Chancellor's Award · 2019

Languages

  • Spoken: Chinese (native), English, Japanese (JLPT N2)
  • Programming: Python, JavaScript, Bash, C/C++, Java, Haskell, Coq

Other writing

  • Descartes's Perspective on Modern Machines and Thinking: would Descartes still say machines can't think? · 2024
  • A modified PageRank that surfaces a target group of users in online forums · 2022