Skip to content

'quality_optimized' Produces erroneous translation #152

Description

@dloarie

I have seen numerous examples where adding 'quality_optimized' to the search string produces an erroneous translation, usually involving a possessive adjective.

Example (Italian):
Original phrase: 'Mio padre è alto.'

Translated to Spanish
With 'quality_optimized': 'Tu padre es alto.'
Without 'quality_optimized': 'Mi padre es alto'

I am mystified how this can occur.

Activity

  1. JanEbbing commented on Jan 29, 2026

    @JanEbbing
    Contributor

    I can not reproduce this, sorry:

    $ curl  -X POST https://api.deepl.com/v2/translate \
      --header "Content-Type: application/json" \
      --header "Authorization: DeepL-Auth-Key KEY" \
      --data "{
        \"text\": [\"Mio padre è alto.\"], \"target_lang\":\"ES\", \"model_type\":\"quality_optimized\", \"show_billed_characters\":true
      }"
    {"translations":[{"text":"Mi padre es alto.","detected_source_language":"IT","billed_characters":17,"model_type_used":"quality_optimized"}]}
    

    Nor on deepl.com, with/without source language, I always get "Mi padre es alto". Do you have more examples of this?

  2. dloarie commented on Jan 29, 2026

    @dloarie
    Author

    import deepl

    auth_key = "blablabla"
    deepl_client = deepl.DeepLClient(auth_key)

    def translate(text, source_lang, target_lang, model_type='quality_optimized', formality='prefer_less'):
    response = deepl_client.translate_text(
    text,
    source_lang=source_lang,
    target_lang=target_lang,
    model_type='quality_optimized',
    formality='prefer_less'
    )
    return response.text

    print("DeepL Spanish ⇄ English translator")

    italian = 'Mio padre è alto.'
    spanish = translate(italian, 'IT', 'ES')
    print(spanish)

  3. JanEbbing commented on Jan 30, 2026

    @JanEbbing
    Contributor

    Thanks, with formality = prefer_less I can reproduce. This looks like a bug in our translation models to me, I'll investigate

  4. JanEbbing commented on Feb 5, 2026

    @JanEbbing
    Contributor

    Just wanted to give an update here: This is apparently a wider issue and our research team is working on it :) Unfortunately model updates usually take a bit, as the process is more involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions