Downloads · 30 days
25
5% of all-time downloads
xwjzds/paraphrase_text_generation
paraphrase_text_generation is a text generation model from xwjzds. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
DeTiME is a novel framework for topic modeling that leverages Encoder-Decoder-based Large Language Models (LLMs) to produce highly clusterable embeddings, enabling the generation of topics with superior clusterability…
Downloads · 30 days
25
5% of all-time downloads
All-time downloads
533
Public
Parameters
784M
6.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.bin3.1 GB · 50%
From the Hugging Face model README
DeTiME is a novel framework for topic modeling that leverages Encoder-Decoder-based Large Language Models (LLMs) to produce highly clusterable embeddings, enabling the generation of topics with superior clusterability and enhanced semantic coherence. It also utilizes diffusion processes to generate content relevant to the identified topics, allowing for the efficient production of highly clustered topics and related content simultaneously. DeTiME is efficient to train and highly adaptable, making it suitable for a broad range of applications
DeTiME is a text to text generation model that can generate a text given a text prompt.
For research purposes, we recommend our DeTiME Github repository (https://github.com/amazon-science/text_generation_diffusion_llm_topic).
DeTiME is can extract the text input to 4096 dimension and reconstruct the original sentence
# Load model directly
from transformers import AutoModel, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained('google/flan-t5-large')
model = AutoModel.from_pretrained("xwjzds/detime", trust_remote_code=True)
model.eval()
text = """
Repeat: U.S. prosecutors have arrested more than 130 individuals and have seized more than $17 million in a continuing crackdown on Internet fraud and abuse.""" #make sure to add Repeat at the beginning
inputs = tokenizer(text, return_tensors="pt", padding='max_length', max_length = 512).input_ids.cuda()
am = tokenizer(text, return_tensors="pt", padding='max_length', max_length = 512).attention_mask.cuda()
outputs = model.cuda().generate(inputs, am, max_length = 512)
#Now decoder_output will output low quality text generation
The model is intended for research purposes for now. Possible research areas and tasks include
Excluded uses are described below.
The model is intended for research purposes only.
Check out https://github.com/amazon-science/text_generation_diffusion_llm_topic
BibTeX:
@inproceedings{xu-etal-2023-detime,
title = "{D}e{T}i{ME}: Diffusion-Enhanced Topic Modeling using Encoder-decoder based {LLM}",
author = "Xu, Weijie and
Hu, Wenxiang and
Wu, Fanyou and
Sengamedu, Srinivasan",
editor = "Bouamor, Houda and
Pino, Juan and
Bali, Kalika",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2023",
month = dec,
year = "2023",
address = "Singapore",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2023.findings-emnlp.606",
doi = "10.18653/v1/2023.findings-emnlp.606",
pages = "9040--9057",
abstract = "In the burgeoning field of natural language processing, Neural Topic Models (NTMs) and Large Language Models (LLMs) have emerged as areas of significant research interest. Despite this, NTMs primarily utilize contextual embeddings from LLMs, which are not optimal for clustering or capable for topic generation. Our study addresses this gap by introducing a novel framework named Diffusion-Enhanced Topic Modeling using Encoder-Decoder-based LLMs (DeTiME). DeTiME leverages Encoder-Decoder-based LLMs to produce highly clusterable embeddings that could generate topics that exhibit both superior clusterability and enhanced semantic coherence compared to existing methods. Additionally, by exploiting the power of diffusion, our framework also provides the capability to generate content relevant to the identified topics. This dual functionality allows users to efficiently produce highly clustered topics and related content simultaneously. DeTiME{'}s potential extends to generating clustered embeddings as well. Notably, our proposed framework proves to be efficient to train and exhibits high adaptability, demonstrating its potential for a wide array of applications.",
}