Maybe, if it’s created after the text is generated. Keep in mind there really is no white space to an LLM. There’s a lot of holes here. If it isn’t embedded within the text itself, it is trivially easy to strip such markings. If it is, it at least requires a human to paraphrase.
On the other hand, if that’s all it is, it would be easily detectable to disallow AI from editing human-written code while allowing it to revise its own output.
A model could hypothetically be trained to insert zero-width characters (I doubt any have though). But any other layer could also very trivially insert these codes. The inference engine could be designed to delay output streaming by however many tokens is required to embed their coding and ninja-insert them during the decode stream. A proxy between the inference engine could insert them. A harness could insert them. Hell, even the rendering javascript frontend in your browser could insert them.
Either the inference engine or proxy would be the prime target if they want to enable this on api responses as well as copy/paste from a chat interface. They could also do a combination of the above depending on final output mode.
You are definitely correct though that it’d be trivial to detect and strip by someone aware of it.
Maybe, if it’s created after the text is generated. Keep in mind there really is no white space to an LLM. There’s a lot of holes here. If it isn’t embedded within the text itself, it is trivially easy to strip such markings. If it is, it at least requires a human to paraphrase.
On the other hand, if that’s all it is, it would be easily detectable to disallow AI from editing human-written code while allowing it to revise its own output.
A model could hypothetically be trained to insert zero-width characters (I doubt any have though). But any other layer could also very trivially insert these codes. The inference engine could be designed to delay output streaming by however many tokens is required to embed their coding and ninja-insert them during the decode stream. A proxy between the inference engine could insert them. A harness could insert them. Hell, even the rendering javascript frontend in your browser could insert them.
Either the inference engine or proxy would be the prime target if they want to enable this on api responses as well as copy/paste from a chat interface. They could also do a combination of the above depending on final output mode.
You are definitely correct though that it’d be trivial to detect and strip by someone aware of it.