Re:You Should Probably Pay Attention to Tokenizers
by 7thpower on Wednesday October 23, 2024 @02:23PM
(#41927868)
This is interesting. What types of content are you using this approach on and how does it handle semi structured data? For instance, embedded tables.
Re:You Should Probably Pay Attention to Tokenizers
by SEGyges on Wednesday October 23, 2024 @01:00PM
(#41926979)
you might have better luck giving the LM the original document and having it generate its own OCR independently, then asking the llm to tiebreak between its own generation and the OCR output while the image is still in the context window until it is satisfied that it got things correct
And this is an aside, but I see folks using LLMs to do this correction in the first place. I don't think using LLMs to do correction in a multi-pass system is inherently bad but I haven't been able to get good results out of "call/response" (i.e. a prompt to clean up this text). The best results are when you're running an LLM locally and cleaning incrementally by using token probabilities to help guide you. You get some candidate words from your wordlist based on the fuzzy match of the text you do have, and candidate words predicted from the previous text and when both align -- ding! It's (obviously) not the fastest method however.