# Help Improving Abstractive Summarization

**URL:** <https://discuss.huggingface.co/t/help-improving-abstractive-summarization/6225>\
**Category:** 🤗Transformers\
**Created:** [May 18, 2021, 11:05am UTC](https://discuss.huggingface.co/t/help-improving-abstractive-summarization/6225 "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](https://discuss.huggingface.co/u/lewtun)\
**Post date:** [May 18, 2021, 1:02pm UTC](https://discuss.huggingface.co/t/help-improving-abstractive-summarization/6225/2 "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](https://discuss.huggingface.co/t/summarization-on-long-documents/920)

---

_[View the full topic](https://discuss.huggingface.co/t/help-improving-abstractive-summarization/6225)._
