Batch construction and multitask learning in visual relationship - - PowerPoint PPT Presentation

batch construction and multitask learning in visual
SMART_READER_LITE
LIVE PREVIEW

Batch construction and multitask learning in visual relationship - - PowerPoint PPT Presentation

Batch construction and multitask learning in visual relationship recognition Shane Josias Willie Brink Stellenbosch University, CAIR Stellenbosch University josias@sun.ac.za wbrink@sun.ac.za 30 January 2020 1/13 Visual relationship


slide-1
SLIDE 1

Batch construction and multitask learning in visual relationship recognition

Shane Josias Stellenbosch University, CAIR josias@sun.ac.za Willie Brink Stellenbosch University wbrink@sun.ac.za 30 January 2020

1/13

slide-2
SLIDE 2

Visual relationship recognition

Task: produce a (subject, predicate, object) triplet given an image. Example:

Visual relationship / Scene graph subject: boy

  • n top

predicate:

  • f
  • bject: surfboard

2/13

slide-3
SLIDE 3

Challenges

Combinatorial: with 100 subject, 70 predicate, and 100 object labels we have 700,000 possible relationships. Data distribution: is typically long-tailed, making it difficult to learn rare relationships.

15000 15500 20 40 60 80 100 500 1000 1500 2000 5000 6000 10 20 30 40 50 60 70 1000 2000 3000 5500 6000 6500 20 40 60 80 100 500 1000 1500 2000

subject label index number of instances predicate label index

  • bject label index

3/13

slide-4
SLIDE 4

Our approach

Treat VRR as a classification problem. Input: image, cropped around a pair of objects. Output: (subject, predicate, object) triplet. Three tasks: predict the subject, predict the predicate and predict the

  • bject. Avoid predicting over 700,000 classes.

Obtain normalised scores over classes in each task. Combine scores through multiplication.

4/13

slide-5
SLIDE 5

Single task learning with standard batching

ResNet-18

  • conv. base

FC layer (2,048) FC layer (2,048) FC layer (2,048)

input image

  • utput scores
  • ver objects

ResNet-18

  • conv. base

FC layer (2,048) FC layer (2,048) FC layer (2,048)

input image

  • utput scores
  • ver predicates

ResNet-18

  • conv. base

FC layer (2,048) FC layer (2,048) FC layer (2,048)

input image

  • utput scores
  • ver subjects

5/13

slide-6
SLIDE 6

Class-selective batch construction

Select n classes from a vocabulary of N classes, uniformly at random. Sample m instances from each selected class, uniformly at random.

truck shirt sky building table person instances containing shirt instances containing building instances containing person

6/13

slide-7
SLIDE 7

Multitask learning

ResNet-18

  • conv. base

FC layer (2,048) FC layer (2,048) FC layer (2,048) FC layer (2,048) FC layer (2,048)

input image

  • utput scores
  • ver objects
  • utput scores
  • ver predicates
  • utput scores
  • ver subjects

7/13

slide-8
SLIDE 8

VRD dataset (Lu et al. ECCV 2016)

5,000 images, 37,987 visual relationships but only 15,448 unique relationships. 100 labels for both subject and objects, 70 predicate labels in five categories.

action verb spatial preposition comparative non-action verb person person motorcycle elephant person kick

  • n top of

with taller than wear ball ramp wheel person shirt

8/13

slide-9
SLIDE 9

Metrics

MPCA: mean per-class accuracy; used to measure performance on rare classes in the individual tasks. R@k: recall-at-k; percentage of times the correct label occurs in the top k predictions (if ordered by output scores). Tail R@k: R@k measured on visual relationship classes that have fewer than 1,000 samples for subject, predicate, and object labels.

9/13

slide-10
SLIDE 10

Quantitative results: individual tasks

Batch construction is performed with respect to label on x-axis (same as the task being predicted).

10 20 30 40 50 Standard Batching Batch Construction

MPCA standard batching batch construction s u b j e c t p r e d i c a t e

  • b

j e c t

  • single-task

s u b j e c t p r e d i c a t e

  • b

j e c t

  • multitask

MPCA on the test set

10 20 30 40 50 60 Standard Batching Batch Construction

R@1 standard batching batch construction s u b j e c t p r e d i c a t e

  • b

j e c t

  • single-task

s u b j e c t p r e d i c a t e

  • b

j e c t

  • multitask

R@1 on the test set

10/13

slide-11
SLIDE 11

Quantitative results: visual relationship recognition

Batch construction is performed with respect to the object labels since it performed better overall.

10 20 30 40 50 60

Standard Batching Batch Construction

R@50 single-task multitask standard batching batch construction

R@50 on the test set

5 10 15 20 25

Standard Batching Batch Construction

Tail R@50 single-task multitask standard batching batch construction

Tail R@50 on the test set

11/13

slide-12
SLIDE 12

Qualitative results

Models person, on, horse giraffe, taller than, giraffe person, on, skateboard person, feed, elephant

ST-SB

person, on, horse 12.0 giraffe, taller than, giraffe 25.1 person, wear, person 11.8 person, above, street 4.3 person, ride, horse 7.0 giraffe, in front of, giraffe 20.8 person, wear, shirt 10.5 person, on, street 4.1 person, wear, horse 5.3 giraffe, next to, giraffe 9.5 person, wear, skateboard 10.0 person, under, street 3.0 person, has, horse 5.2 giraffe, above, giraffe 7.6 person, wear, shoes 5.4 sky, above, street 1.7 person, on, person 3.1 giraffe, behind, giraffe 7.2 person, wear, pants 4.4 sky, on, street 1.6

ST-BC-O

person, on, horse 18.7 giraffe, in front of, giraffe 98.6 person, wear, skateboard 25.6 person, under, elephant 16.4 person, has, horse 11.8 giraffe, taller than, giraffe 0.4 person, on, skateboard 10.0 person, in front of, elephant 16.0 person, wear, horse 7.7 giraffe, behind, giraffe 0.4 person, has, skateboard 9.6 person, above, elephant 10.0 person, in front of, horse 4.3 giraffe, next to, giraffe 0.1 person, ride, skateboard 5.2 person, near, elephant 4.7 person, next to, person 3.7 giraffe, beside, giraffe 0.1 person, wear, shoes 3.5 person, behind, elephant 4.1

MT-SB

person, wear, horse 9.3 giraffe, taller than, giraffe 45.4 person, wear, shirt 15.5 person, on, street 4.7 person, on, horse 6.8 giraffe, in front of, giraffe 18.9 person, wear, person 9.6 person, under, street 3.9 person, wear, person 3.4 giraffe, next to, giraffe 8.6 person, wear, skateboard 6.9 person, above, street 3.4 person, behind, horse 3.1 giraffe, behind, giraffe 7.3 person, wear, shoes 6.1 person, on, person 2.4 person, has, horse 2.6 giraffe, under, giraffe 2.6 person, wear, pants 4.1 person, under, person 1.9

MT-BC-O

person, on, horse 13.2 giraffe, in front of, giraffe 92.5 person, wear, skateboard 20.0 person, in front of, elephant 7.4 person, above, horse 12.0 giraffe, taller than, giraffe 6.0 person, wear, shoes 14.0 person, near, elephant 6.9 person, behind, horse 6.3 giraffe, behind, giraffe 0.9 person, wear, helmet 12.0 person, under, elephant 5.1 person, ride, horse 5.3 giraffe, next to, giraffe 0.3 person, has, skateboard 3.8 person, on, elephant 3.4 person, has, horse 4.8 giraffe, beside, giraffe 0.07 person, wear, pants 3.7 person, above, elephant 2.4

ST-SB single-task, standard batching MT-SB multitask, standard batching ST-BC-O single-task, batch construction from object labels MT-SB-O multitask, batch construction from object labels

12/13

slide-13
SLIDE 13

Conclusion

Class-selective batch construction improves performance on the tail of the distribution, at the cost of performance on the small number of dom- inating classes.

13/13

slide-14
SLIDE 14

Conclusion

Class-selective batch construction improves performance on the tail of the distribution, at the cost of performance on the small number of dom- inating classes. Multitask learning neither improves nor impedes performance. Reduced capacity can be beneficial.

13/13

slide-15
SLIDE 15

Conclusion

Class-selective batch construction improves performance on the tail of the distribution, at the cost of performance on the small number of dom- inating classes. Multitask learning neither improves nor impedes performance. Reduced capacity can be beneficial. Predicates are difficult to model. Limitation of pretrained models?

13/13

slide-16
SLIDE 16

Conclusion

Class-selective batch construction improves performance on the tail of the distribution, at the cost of performance on the small number of dom- inating classes. Multitask learning neither improves nor impedes performance. Reduced capacity can be beneficial. Predicates are difficult to model. Limitation of pretrained models? Misclassifications are often semantically similar to groundtruth. We could use a language model to incorporate semantics.

13/13