# Help Improving Abstractive Summarization

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-improving-abstractive-summarization%2F6225%3E%5C
**Category:** 🤗Transformers\
**Created:** [May 18, 2021, 11:05am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-improving-abstractive-summarization%2F6225 "2021-05-18T11:05:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lewtun](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lewtun/32/30995_2.png) [@lewtun](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flewtun)%5C
**Post date:** [May 18, 2021, 1:02pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-improving-abstractive-summarization%2F6225%2F2 "2021-05-18T13:02:19Z")

</div>

hey @haithembrr, your approach sounds very sensible 🙂

have you tried playing around with the parameters of the model’s `generate` function, e.g. `max_len` and trying different strategies like beam search vs sampling (see [docs](https://huggingface.co/transformers/main_classes/model.html?highlight=generate#transformers.generation_utils.GenerationMixin.generate))?

alternatively, you could have a look at the discussion in this thread to see if someone has also run into the same problem: [Summarization on long documents](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsummarization-on-long-documents%2F920)

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhelp-improving-abstractive-summarization%2F6225)._
