CoolFace
Modelpublic

JayShah07/falconai-text-bullet-t5

sourceHugging Faceapache-2.0updated 5d agoView on Hugging Face
1likes499downloads
Model Card

Text-to-Bullets T5

A fine-tuned T5 encoder-decoder model for converting English prose into concise bullet points.

Model Summary

PropertyValue
ArchitectureT5 encoder-decoder
Parameters~60.5M
LanguageEnglish
TaskText-to-bullets generation
FrameworkPyTorch / Transformers
Hugging Face tasktext2text-generation

The model was fine-tuned specifically for source-to-target text transformation.

Unlike a decoder-only model, T5 separates the task into:

text
Source text
   ↓
Encoder
   ↓
Source representation
   ↓
Decoder
   ↓
Bullet points

This architecture is well suited to summarization-style tasks because the decoder generates output while cross-attending to the encoded source.


Training Results

The model was fine-tuned for seven epochs.

EpochTrain LossVal LossROUGE-1ROUGE-2ROUGE-LBERT PBERT RBERT F1Bullet FormatPred. BulletsRef. BulletsBullet ErrorCompressionRef. CompressionGenerated Tokens
10.51210.42220.80070.78500.77700.96260.93160.94571.0001.244.543.360.22140.250154.47
20.32320.29000.95440.95030.94930.99620.98420.99001.0004.134.540.450.24140.250160.86
30.26300.21730.97510.97250.97010.99760.99100.99421.0004.374.540.290.24640.250164.47
40.21720.17880.98160.97960.97740.99820.99280.99541.0004.384.540.220.24700.250164.36
50.19350.16190.98630.98450.98280.99840.99430.99631.0004.424.540.180.24810.250164.99
60.19000.15630.98630.98450.98280.99840.99430.99631.0004.424.540.180.24810.250164.99
70.18710.15550.98570.98370.98230.99840.99410.99621.0004.424.540.180.24790.250164.83

Training observations

The largest improvement happened between epochs 1 and 2.

  • ROUGE-L increased from 0.7770 → 0.9493
  • Mean bullet-count error decreased from 3.36 → 0.45
  • Performance largely plateaued around epochs 5–6
  • Bullet-format compliance remained 100% in the reported validation evaluation
These are training-time validation results and should not be directly compared with later held-out evaluations unless the same split and generation settings are used.

Later 500-Example Evaluation

A later FP32 evaluation on 500 examples produced:

MetricValue
ROUGE-10.6041
ROUGE-20.5330
ROUGE-L0.5603
BERTScore F10.8826
Bullet Format1.000
Median Latency0.895 s
P95 Latency1.947 s
Throughput97.28 tokens/s

Comparison with Qwen3 0.6B

MetricQwen3 0.6BFine-Tuned T5
Approx. Parameters~600M~60.5M
ArchitectureDecoder-onlyEncoder-decoder
Task SpecializedNoYes
ROUGE-10.64940.6041
ROUGE-20.47020.5330
ROUGE-L0.54630.5603
Bullet Format0.99991.0000

The T5 model is roughly an order of magnitude smaller by parameter count.

In the reported evaluations, Qwen retained the higher ROUGE-1 score, while the fine-tuned T5 produced higher ROUGE-2 and ROUGE-L.

These measurements were collected at different stages of the experiment, so they should be treated as experimental context rather than a perfectly controlled head-to-head benchmark.

The key takeaway is that a much smaller task-specific encoder-decoder model can be highly competitive with a larger general-purpose decoder model on a narrow text-transformation task.


Usage

Install dependencies:

bash
pip install torch transformers sentencepiece

Load and run the model:

python
import torch
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

MODEL_ID = "JayShah07/falconai-text-bullet-t5"

tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForSeq2SeqLM.from_pretrained(MODEL_ID).eval()

text = """
The Solar System consists of the Sun and the objects gravitationally bound
to it, including eight planets, dwarf planets, moons, asteroids and comets.
It formed approximately 4.6 billion years ago. Mercury, Venus, Earth and
Mars are terrestrial planets, while Jupiter and Saturn are gas giants and
Uranus and Neptune are ice giants.
""".strip()

inputs = tokenizer(
    text,
    return_tensors="pt",
    truncation=True,
)

with torch.inference_mode():
    output_ids = model.generate(
        **inputs,
        max_new_tokens=256,
        do_sample=False,
        num_beams=1,
    )

output = tokenizer.decode(
    output_ids[0],
    skip_special_tokens=True,
)

print(output)

Example Output Style

text
- The Solar System contains the Sun, eight planets, dwarf planets, moons, asteroids and comets.
- It formed approximately 4.6 billion years ago.
- Mercury, Venus, Earth and Mars are terrestrial planets.
- Jupiter and Saturn are gas giants, while Uranus and Neptune are ice giants.

Exact wording and bullet segmentation may vary.


Intended Use

This model is intended for:

  • converting paragraphs into bullet points
  • restructuring reports and articles
  • summarization-style text transformation
  • extracting key information from English prose

Limitations

The model may omit details from dense text, merge related facts, or produce imperfect summaries on text outside its training distribution.

Generated outputs should be reviewed before high-stakes use.


Author

Developed by Jay Shah as an experiment in task-specific encoder-decoder fine-tuning.