News for hackers. Stuff that matters.
Re:Embeddings are a good starting point for the AI curious a... by thorum on Wednesday April 17, 2024 @03:48PM (#40069314)
Can embeddings be used to capture stylistic features of text, rather than semantic? Like writing style?
Re:Embeddings are a good starting point for the AI curious a... by levocardia on Wednesday April 17, 2024 @03:56PM (#40069404)
Probably, but you might need something more sophisticated than cosine distance. For example, you might take a dataset of business letters, diary entries, and fiction stories and train some classifier on top of the embeddings of each of the three types of text, then run (embeddings --> your classifier) on new text. But at that point you might just want to ask an LLM directly with a prompt like - "Classify the style of the following text as business, personal, or fiction: $YOUR TEXT$"
Re:Embeddings are a good starting point for the AI curious a... by vladimirzaytsev on Wednesday April 17, 2024 @04:47PM (#40069900)
You may get way more accurate results from relatively small models as well as logits for each class if you ask one question per class instead.
Re:Embeddings are a good starting point for the AI curious a... by vladimirzaytsev on Wednesday April 17, 2024 @03:57PM (#40069416)
Likely not, embeddings are very crude. Embeddings of a text is just an average of "meanings" of words.

As is embeddings lack a lot of tricks that made transformers so efficient.