ParaGuide
Code for "ParaGuide: Guided Diffusion Paraphrasers for Plug-and-Play Textual Style Transfer"
Install / Use
/learn @zacharyhorvitz/ParaGuideREADME
Our paper is available here.
Structure
-
demo/ contains demo code, demonstrating how to run the full ParaGuide approach to transform texts from formal → informal, or to match exemplars.
-
training/ contains the logic for training a paraphrase-conditioned text diffusion model.
-
inference/ contains our code for generating inferences with ParaGuide (once you have preprocessed/paraphrased your data)
-
data/ contains the logic for generating reddit and enron (paraphrase, original text) data.
-
baselines/ contains our implementations of each baseline.
-
evaluations contains our automatic evaluation automatic and human eval data and code.
Getting Started
Installation
In your python environment (>=3.8), you can install dependencies via the requirements file:
pip install -r requirements.txt
Models and Data Artifacts
Our models and data are available for download here.
We also provided corresponding scripts:
- Models: models/download.sh
- Data: data/enron/download_training_dataset.sh
Demo
We recommend first checking out demo/generate_examples.py, which demonstrates ParaGuide inference logic!
This research is supported in part by the Office of the Director of National Intelligence (ODNI), Intelligence Advanced Research Projects Activity (IARPA), via the HIATUS Program contract #2022-22072200005. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies, either expressed or implied, of ODNI, IARPA, or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for governmental purposes notwithstanding any copyright annotation therein.
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
