# Poster 29412

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29412

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi everybody, my name is Marco and I want to talk to you about our paper Transformer Encoder Satisfiability, Complexity and Impact on Former Reasoning. I will start with a short introduction to Transformer Encoders. So it's nothing special there for those of you who are familiar with Transformers. We stick to the encoder architecture of the originally introduced Transformer.
So what's an encoder? Well, it can be seen as a neural network based model that computes a function over languages or finite words, for example, given such as finite word as we see here.
The first step that is done that the embedding part of a transformer, which is also a function, encodes this word symbol -wise into a sequence of vectors where we, however this embedding function looks, we respect for example the positions of symbols or ignore these positions and so on. And after this embedding function there is a sequence of K.
Transformer layers where each layer computes a sequence of vectors, and this works as follows. For example, the ETH layer takes as input the sequence produced by the ETH minus one layer.
And how does it compute its own output? Well, for example, the vector at position j in the sequence of vectors produced by layer i is given by a combination of the outputs of several so -called attention heads, and the attention head is the key part of a transformer or a transformer encoder. And well, I refer to our paper.
corresponding literature on potential mechanisms in general okay so in our work we were interested in the following problem namely the transformer satisfiability problem or the SAT problem as well I'll usually call it and it's quite easy to explain it's given a transformer encoder from some class of transformers so this this problem is parameterized by the class of transformer encoders we consider
And assume that this transformer works over a finite alphabet sigma, then the question we're asking is whether there is some word in the language sigma star such that the output of this transformer given this input is equal to one, but it's kind of similar to a Boolean satisfiability problem. And we are interested in this problem because it's.
A very basic form of a reasonable verification or safety property, namely, is there some kind of input that leads to some kind of output? For example, can we ensure that no input leads to an output which is equal or higher than?
The value 2, for example, right? And the satisfiability, the transformer satisfiability problem abstracts this notion. And what we try to understand in our paper is the complexity of this problem. And we established several results, which I give an overview here. For example, we showed that there are some classes of transformers which are considered in literature, especially similar to the notion of transformer encoders or transformers in general considered in the
a prominent paper attention is during complete then the satisfiability problem is undecidable and we also starting from these impossibility results from a perspective of formal reasoning for transformer encoders we showed that there are also classes for which the problem is decidable for example taking the same class
here, as we have here from the perspective of architecture, and restricting it via quantization or more in more detail, assuming that it works in a fixed-width arithmetic environment, for example, some fixed floating-point arithmetic, then the problem generally becomes decidable, but we showed that from a perspective of complexity, it's still
a very hard problem namely that it's this is not visualized here that the problem still is NX time hard which already brings me to the conclusion namely that
Verification, especially sound and complete verification of transformer encoders is not always guaranteed, right? So this is the important part. Our results imply that sound and complete verification is not guaranteed for all kind of transformers so far considered, but transformer encoders. But we also showed that they are ways to make it decidable and but as a downside, it seems that it's still
practically very hard problem. But this was the first work in this area. So there are many questions left open and I refer to our poster or to our submitted work for more details on this. Thank you.
